Please login or register.

Login with email, password and session length
 

News:

Happy Holidays!


Author Topic: Assimilator into Matter Eating and Other Sundries  (Read 78 times)

Offline BentonGrey

  • Titans
  • Hero Member
  • Posts: 15273
    • The Greylands
Assimilator into Matter Eating and Other Sundries
« on: June 06, 2019, 03:54:52 AM »
Howdy guys, I am trying to figure out how to properly portray Matter Eater Lad, and I cam across the FFX attribute Assimilator, which lets you consume parts of objects to get new powers and weapons.  I'm wondering if there's anyone with the know-how to take that attribute and tweak it into something that just gives you health or energy for 'eating' objects.
« Last Edit: June 10, 2019, 02:03:08 AM by BentonGrey »
God Bless
"If God came down upon me and gave me a wish again, I'd wish to be like Aquaman, 'cause Aquaman can take the pain..." -Ballad of Aquaman
Check out my DC voicepacks at my yahoo group.
https://groups.yahoo.com/neo/groups/bentongrey
https://groups.yahoo.com/neo/groups/bentongrey2

Offline Epimethee

  • Patron god of afterthought
  • Hero Member
  • Posts: 2799
  • Currently in suspended animation
    • FFX add-on for FFvsTTR
Re: Assimilator into Matter Eating
« Reply #1 on: June 09, 2019, 04:43:08 PM »
Since Assimilator is built to affect a different target, it might be easier to customize Transmutator instead. For example (caveat emptor: not tested, I don't have access to a PC and I haven't played with these in a looong time), in ffx.py (back up first!) you could add a OnTransmuteToHealth function to add 10 hp, say, right between the lines for def OnHarmlessGas2(event): and def OnFlashGas(target,char):

Code: [Select]
def OnTransmuteToHealth(target,char):
    Trigger_Damage(char,-10)
    OnTransmute(target,char,'OnHarmlessGas2')

(If you want a different FX instead of the effect_ffx_pheremones, you'd have to replace OnHarmlessGas2 by a new call to a copy of the function with a different name and a different FX.)

In ffxtransmutes.py, under the transmutables=( list, you would have to add a line before the final closing parenthesis:
Code: [Select]
('CUSTOM_EAT','solid','OnTransmuteToHealth'),
('solid' could be replace by any of the other available types, of course.)

Finally, you'll need to add the CUSTOM_EAT entry to strings.txt and compile the file.

This could be made more sophisticated, to check for the object's HP and give corresponding health or for eating objects bite by bite. However, as I'm unable to use trial and error, I can't be of much help.
FFX add-on for FFvsTTR at ffx.freedomforceforever.com

Offline Epimethee

  • Patron god of afterthought
  • Hero Member
  • Posts: 2799
  • Currently in suspended animation
    • FFX add-on for FFvsTTR
Re: Assimilator into Matter Eating
« Reply #2 on: June 09, 2019, 04:52:42 PM »
To also increase both health and energy, you could probably use this:
Code: [Select]
def OnTransmuteToHealth(target,char):
    Trigger_Damage(char,-10)
    currentEnergy = Object_GetAttr(char, 'energyPoints')
    FFX_SetEnergy(char,currentEnergy+10)
    OnTransmute(target,char,'OnHarmlessGas2')

FFX add-on for FFvsTTR at ffx.freedomforceforever.com

Offline BentonGrey

  • Titans
  • Hero Member
  • Posts: 15273
    • The Greylands
Re: Assimilator into Matter Eating
« Reply #3 on: June 09, 2019, 07:14:27 PM »
Epi, you are awesome!  I will have to test these out soon, but (so far as I can tell in my great ignorance) they seem pretty perfect!  Thanks man!
God Bless
"If God came down upon me and gave me a wish again, I'd wish to be like Aquaman, 'cause Aquaman can take the pain..." -Ballad of Aquaman
Check out my DC voicepacks at my yahoo group.
https://groups.yahoo.com/neo/groups/bentongrey
https://groups.yahoo.com/neo/groups/bentongrey2

Offline BentonGrey

  • Titans
  • Hero Member
  • Posts: 15273
    • The Greylands
Re: Assimilator into Matter Eating and Other Sundries
« Reply #4 on: June 20, 2019, 03:54:45 AM »
Alright, here's a new one.  Would/could anyone tweak the Mimic attribute to copy powers/stats and not appearance? 
God Bless
"If God came down upon me and gave me a wish again, I'd wish to be like Aquaman, 'cause Aquaman can take the pain..." -Ballad of Aquaman
Check out my DC voicepacks at my yahoo group.
https://groups.yahoo.com/neo/groups/bentongrey
https://groups.yahoo.com/neo/groups/bentongrey2

Offline Epimethee

  • Patron god of afterthought
  • Hero Member
  • Posts: 2799
  • Currently in suspended animation
    • FFX add-on for FFvsTTR
Re: Assimilator into Matter Eating and Other Sundries
« Reply #5 on: June 21, 2019, 10:59:17 PM »
Copying stats should be  easy. Copying powers without using the mesh, on the other handů basically impossible IIRC, plus animations are not standardized, so it wouldn't be reliable anyway. The only way it could be made to work would be for a specific campaign with a set Mimic and specific targets. You'd basically create a copy of every character and powers to use with the mimic's mesh and keyframes. I think Dr.Mike did this in The Strangers with Devil Doll.
FFX add-on for FFvsTTR at ffx.freedomforceforever.com