How do I write a plotscript that adds a permanent +1 to a hero's stat?
I know about the Get Hero Stat and Set Hero Stat commands but I don't know how to Set Hero Stat to its current value +1.
This has to be done with plotscript (instead of using an attack) due to some specific reasons that are too hard to explain.
Any advice?
Plotscripting: raising stats
Moderators: Bob the Hamster, marionline, SDHawk
- Willy Elektrix
- Liquid Metal Slime
- Posts: 910
- Joined: Sun Aug 15, 2010 11:30 pm
- DukeofDellot
- Red Slime
- Posts: 74
- Joined: Wed Apr 27, 2011 10:44 pm
Set Hero Stat to "Get Hero Stat (whatever) +1"... Just make sure the "maximum stat" is triggered instead of "current stat".
An example script can be found here. It assumes that an item is calling the script, though a menu, NPC, or text box could also utilize it.
... I bet you figure this out before you read this.
An example script can be found here. It assumes that an item is calling the script, though a menu, NPC, or text box could also utilize it.
... I bet you figure this out before you read this.
- NinjaOverdrive
- Slime Knight
- Posts: 105
- Joined: Sat Apr 16, 2011 6:27 am
- Location: Honestly, I got no clue...Margaritaville sounds nice....
If that doesn't help you, try this page.
Last edited by NinjaOverdrive on Wed May 18, 2011 7:49 am, edited 1 time in total.
- Willy Elektrix
- Liquid Metal Slime
- Posts: 910
- Joined: Sun Aug 15, 2010 11:30 pm