Save-Point
How do you make a call script? - Printable Version

+- Save-Point (https://www.save-point.org)
+-- Forum: Games Development (https://www.save-point.org/forum-4.html)
+--- Forum: Code Support (https://www.save-point.org/forum-20.html)
+--- Thread: How do you make a call script? (/thread-3385.html)



How do you make a call script? - firestalker5 - 04-21-2011

I'm trying to write my own script again and I can't remember how to do this part... and it'e the most important part. I can figure most everything else just have no clue how to do this.

I want to make a script that HAS to be called by using Call Script in order to work. I made one before but it's been a while I can't really remember how it goes.

Basically the script was an elemental damage modifier. The one that comes default basically, but it was designed to be "Called". I made a skill that's only purpose is to call a common event. The common event does all the work. When the animation done a variable selects a random number and then using that number, Deal Damage damages the enemies. Since a variable and Deal Damage is UNABLE to determine elemental affinity I created [with a lot of help from Trickster] this script to be called after the variable is set and it'll deal the damage accordingly to each of the members of the enemy troop that are still alive. A different random number for each of them.

Man if only I can remember how it goes...

So basically if anyone can help me out with how to make a call script I would be much obliged.