How do I say, take 8 MP from Link at a given point in a script?
I've messed with the Link->MP function for a while, but to no avail.
How do I say, take 8 MP from Link at a given point in a script?
I've messed with the Link->MP function for a while, but to no avail.
Not sure what you're doing wrong. That's the right variable.
To reduce the player's MP by x, you just do:
Link->MP = Link->MP - x;
or something similar.
My syntax and such is terrible, I'm not sure of how to write basic functions and things like that. Thanks.
EDIT: works fine now, thanks