Freedom Reborn Archive

Freedom Force Forums => Scripting Forum => Topic started by: The Hitman on February 02, 2008, 10:15:06 AM

Title: Midas Touch?
Post by: The Hitman on February 02, 2008, 10:15:06 AM
Hey guys, I didn't know wheter to put this in Herofiles of Scripting, so if it's in the wrong place, oops.

I'm working on a character that can turn anything he touches into gold. What I was wondering is if there were:

1.) an attribute I could give the guy that, when he picks up a lamppost, car, boulder, trashcan, or any other wieldable object, the skin is swapped for another, modified (in this case, kitbashed gold- colored) skin; and

2.) a state swap that would give melee hits a % chance of stopping (almost like "freeze" state), and swap for a male_basic or female_basic gold character, probably determined by the use of male_ or female_ at the beginning of the folder name for the mesh.

If anyone has any insight on this, I'd really appreciate the help, and thanks for your time.
Title: Re: Midas Touch?
Post by: Epimethee on February 02, 2008, 11:24:39 AM
1. The closest would be to customize the Transmutator attribute.

2. The Transmute power swap would fit the bill, with minimal customization:

a) Create a male and female-based static objects in FFEdit named "ffx_midas_female" and "ffx_midas_male" (cf. the ffx.elem_metal for example).

b) Add the following (not tested!) function to ffx.py after the "def getTransmutedionysian(target)" block:
#special function for midas touch's transmutations
def getTransmutemidas(target):
    gender=getGender(target)
    if gender==FFX_GENDER_FEMALE:
        return 'ffx_midas_female'
    return 'ffx_midas_male' # for simplicity's sake, all non-female voiceID types are going to use the male version of the golden statue.


c) In ffxdefault.py, under the "FFX_COMMON_OBJECTS=[" header, add a line for "midas" after the "dionysian" one:
FFX_COMMON_OBJECTS=[
["ffx_green_barricade"],
["ffx_green_burger"],
["ffx_green_car"],
["ffx_green_streetlight"],
["ffx_iron_barricade"],
["ffx_iron_weight"],
["ffx_titanium_bat"],
["ffx_icepatch"],
["ffx_marbles"],
["elemental"],
["bizarre"],
["urban"],
["dionysian"],
["midas"],
["ffx_elem_stone"],
["ffx_elem_metal"],
["ffx_elem_ice"],
["ffx_elem_wood"],
["ffx_elem_plastic"],
]


d) Run the FFX Control Center to select the "midas" customization option for the character's Transmute type.

Don't forget to backup every file beforehand.
Title: Re: Midas Touch?
Post by: yell0w_lantern on February 02, 2008, 05:29:41 PM
Is transmuter working properly now? I seem to recall several glitches like the target not transmuting or the transmute object appearing but the target not disappearing.
Title: Re: Midas Touch?
Post by: Epimethee on February 02, 2008, 05:57:30 PM
If the Transmutator attribute was buggy, I doubt it has been fixed; personally, I can't remember any report of issues on it. Could you (or someone else) test it so we'll add it to the to-do list? Thanks.