PDA

View Full Version : Separate "New Death" scripts?


The Magic Hat
08-27-2005, 03:37 AM
I know you can apply custom scripts to character profiles under the Adv. tab, under Combat like "Normal Damage", "Critical", "Defense", and etc. I also know there is also a "New Death" script that triggers when a character loses all his/her HP. Is there a way you can apply different "New Death" scripts to individual characters? I want to add an SFX like "Cry Female" and "Cry Male" so there'd be something like a scream or something when someone dies, but I'd like it to be gender specific if at all possible.

Sorry if this has been answered before, but I didn't notice anything like this in the Tips and Tricks thread.

thetruecoolness
08-27-2005, 04:06 AM
Well though I had never though of doing this, yes this is possible and quite easy if you use that script.

So all you need to do is in the script branch of the [New Death] script where [Temp Flag 0] is Off (this means the flag [Side] is off meaning the party is currently up so a party member is dying, Temp Flag 0 is being set in the script [Current Side]), put in these lines

Member Info: Load // the [Member Number] is already set to the dying character here
Script Branch: Condition: Input [Sex] = 'Male'
- SFX [Scream Male]
Script: Condition End
Script Branch: Condition: Input [Sex] = 'Female'
- SFX [Scream Female]
Script: Condition End

(if you are unfamiliar with programming // indicates a comment by me on the code and is not part of the script)
I actually tested this so it does work, though if you have any problems with it just ask again. So you don't need seperate death scripts, unless you just want to seperate them (it actually take a bit more memory, and trouble to make seperate ones, though sometimes seperating these things make your scripts more easy to organize).

The Magic Hat
08-27-2005, 04:31 AM
Wow. That worked beautifully! Took me a while to figure out a few things like how to work the "Input" commands, but it worked. Thanks a lot.