Page 1 of 1

leveling up

PostPosted: Wed Jun 06, 2007 11:25 pm
by Fabiomafia1298
can someone make me a demo on how to make a character level up? i can think up of half the process so far, but cant think of the rest. all i can think of is making two text acters, one with 0 and one with the xp requirement. ad then i can add a trigger for certain enemys to add that much to the 0. but how can i get the damage to a weapons increased when the 0 passes the requirement?

Re: leveling up

PostPosted: Thu Jun 07, 2007 12:09 am
by Asurai
Fabiomafia1298 wrote:can someone make me a demo on how to make a character level up? i can think up of half the process so far, but cant think of the rest. all i can think of is making two text acters, one with 0 and one with the xp requirement. ad then i can add a trigger for certain enemys to add that much to the 0. but how can i get the damage to a weapons increased when the 0 passes the requirement?

in the action where daamge is given instead of
damage=whatever formula
put
if (variable==1) /where variable is the level
{
damage=whatever formula+1
}
an example of a damage action
if (variable==0)
{
damage=round(rand(10))
}
if (variable==1)
{
damage=round(rand(10)+1)
}

PostPosted: Thu Jun 07, 2007 2:26 am
by Fabiomafia1298
aight thanks