|
Post by Mehmet Can on Jan 28, 2004 15:02:47 GMT -5
this is hard to do and i need this for my [pokemon type game im making
|
|
|
Post by hamalnamal on Jan 28, 2004 19:34:28 GMT -5
make a varible and make it so that each wild pokemon at each level increases the varible exp a certain amount and than in the step event for the pokemon say pikachu, make it so that when varible exp is > say 50 than increase varible level +1, attack +3, Defence +4, agility +2 ect. and do that for every level.
|
|
|
Post by megamushroom on Feb 28, 2004 18:18:51 GMT -5
dont forget relativity: defence +=1 and so on
|
|
megabrain
User
Teslagon - Gaming is the first option
Posts: 13
|
Post by megabrain on Feb 29, 2004 7:00:11 GMT -5
If using this(as hamanal said): if (exp > 50) then { lvl += 1; attack += 3; defence += 4; agility += 2; } would increase the lvl and stats infinity.. instead, use this: create or initializing event: exp = (whatever); lvl_up = 100; then when you "kill/beat" a pokemón, add this: exp += (whatever); if (exp > lvl_up) then { lvl_up += 100+(lvl_up/2); lvl += 1; attack += 3; defence += 4; agility += 2; } That would work quite good after all... (hmm this topic might be one week old, but hey, I don want my acc to be deleted :
|
|
|
Post by AltiusBimm on Feb 29, 2004 15:25:28 GMT -5
My complements, megabrain. That's an outstanding little bit of code. There needs to be more of that plain-talk code in the world.
|
|
|
Post by megamushroom on Feb 29, 2004 17:27:48 GMT -5
or you could just put exit after it
|
|
rpggamer
User
Yes I like DBZ... You got a problem?
Posts: 12
|
Post by rpggamer on Dec 20, 2005 11:57:32 GMT -5
If using this(as hamanal said): if (exp > 50) then { lvl += 1; attack += 3; defence += 4; agility += 2; } would increase the lvl and stats infinity.. instead, use this: create or initializing event: exp = (whatever); lvl_up = 100; then when you "kill/beat" a pokemón, add this: exp += (whatever); if (exp > lvl_up) then { lvl_up += 100+(lvl_up/2); lvl += 1; attack += 3; defence += 4; agility += 2; } That would work quite good after all... (hmm this topic might be one week old, but hey, I don want my acc to be deleted : or just add one line so that it looks like this : if (exp > 50) then { exp-=50 lvl += 1; attack += 3; defence += 4; agility += 2; } (i used relativity so u keep any extra that goes over 50)
|
|
|
Post by evilish on Jan 17, 2006 6:38:51 GMT -5
That would mean that for every 50exp you gained a level, and it wouldn't go any higher then that(unless you changed 50 to the next levels exp needed, then changed it somewhere in that code)
Of course, it would be better if you had a formula for your exp needed, much better then entering random amounts for each level
- Evilish
|
|