The forums have permanently moved to forum.kirupa.com. This forum will be kept around in read-only mode for archival purposes. To learn how to continue using your existing account on the new forums, check out this thread.

# Thread: RPG level system code

1. ## RPG level system code

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 ... or beer LOL!)

2. 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?

3. I may be wrong, but wouldn't you want to say:
Code:
```If (race == "Human")
{
ata = (32 + 3 * _root.lvl);
def = (45 + 5 * _root.lvl);
mag = (12 + 2 * _root.lvl);
magdef = (30 + 4 * _root.lvl);
}```

4. 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;
}

5. WTF i cant see any of the replies you typed.... can someone just PM me what they said?!

6. nvm i can see it now.. lol it was something in my footer

7. Ya thanks you 2! it was Mars's 2nd post that was the right one but thanks for the help!

8. No problem bro.

#### Thread Information

##### Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•
 About kirupa.com