PDA

View Full Version : RPG level system code


WarrOrange
01-16-2004, 09:21 PM
dude i know this is simple code, but ive had a long week of FINALS.. sooooo dont make fun of me! LOL! Whats wrong with this here script?

If (("race" = Human))
"ata" = 32 + 3 * _root.lvl
and "def" = 45 + 5 * _root.lvl
and "mag" = 12 + 2 * _root.lvl
and "magdef" = 30 + 4 * _root.lvl

wow.... i cant belive i cant get this to work but hey its just one of those days... lol help me out (im gona go get some coffee :beer: ... or beer LOL!)

Marz
01-16-2004, 11:17 PM
Hmmm...


if(race = "Human")
{
ata = 32 + 3 * _root.lvl;
def = 45 + 5 * _root.lvl;
mag = 12 + 2 * _root.lvl;
magdef = 30 + 4 * _root.lvl;
}


??? I dunno... The code is entirely too fragmented in your example.. Is this what you are trying to convey?

SeiferTim
01-17-2004, 01:08 AM
I may be wrong, but wouldn't you want to say:

If (race == "Human")
{
ata = (32 + 3 * _root.lvl);
def = (45 + 5 * _root.lvl);
mag = (12 + 2 * _root.lvl);
magdef = (30 + 4 * _root.lvl);
}

Marz
01-17-2004, 01:12 AM
I may be wrong, but wouldn't you want to say:


If (race == "Human")
{
ata = (32 + 3 * _root.lvl);
def = (45 + 5 * _root.lvl);
mag = (12 + 2 * _root.lvl);
magdef = (30 + 4 * _root.lvl);
}



Not really.. That wouldn't dop much to change anything... But he might possibly want to do.

[AS]
if (race == "Human")
{
ata = (32 + 3) * _root.lvl;
def = (45 + 5) * _root.lvl;
mag = (12 + 2) * _root.lvl;
magdef = (30 + 4) * _root.lvl;
}

WarrOrange
01-17-2004, 10:26 AM
WTF i cant see any of the replies you typed.... can someone just PM me what they said?!

WarrOrange
01-17-2004, 10:33 AM
nvm i can see it now.. lol it was something in my footer

WarrOrange
01-17-2004, 10:37 AM
Ya thanks you 2! it was Mars's 2nd post that was the right one but thanks for the help!

Marz
01-17-2004, 03:18 PM
No problem bro. :)