Comparing Global Ints

Started by Akumayo, Sat 22/05/2004 20:17:41

Previous topic - Next topic

Akumayo

When using Global Ints as stats in an RPG game, say that HERO's attack power is 40 SetGlobalInt(2,40);
And the MONSTER's h.p. is 50 SetGlobalInt(23,50);
How do I make HERO's attack power be minused from MONSTER's h.p.????
"Power is not a means - it is an end."

strazer

SetGlobalInt(23, GetGlobalInt(23)-GetGlobalInt(2));

should do it?

Akumayo

THANK YOU SO MUCH, NOW I CAN MAKE MY RPG!!!
"Power is not a means - it is an end."

SMF spam blocked by CleanTalk