Plotscripting: raising stats

Make games! Discuss those games here.

Moderators: Bob the Hamster, marionline, SDHawk

Post Reply
User avatar
Willy Elektrix
Liquid Metal Slime
Posts: 910
Joined: Sun Aug 15, 2010 11:30 pm

Plotscripting: raising stats

Post by Willy Elektrix »

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?
User avatar
DukeofDellot
Red Slime
Posts: 74
Joined: Wed Apr 27, 2011 10:44 pm

Post by DukeofDellot »

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.
User avatar
NinjaOverdrive
Slime Knight
Posts: 105
Joined: Sat Apr 16, 2011 6:27 am
Location: Honestly, I got no clue...Margaritaville sounds nice....

Post by NinjaOverdrive »

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.
User avatar
Willy Elektrix
Liquid Metal Slime
Posts: 910
Joined: Sun Aug 15, 2010 11:30 pm

Post by Willy Elektrix »

Worked like a charm. Thanks to both of you.
Post Reply