Read-only archive of the Armageddon Games Forums Archive (2000–2026) · About this archive

Take MP from Link

2 replies · 1,239 views · Started 26 September 2007

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