Author Topic: Help me with VCE. Bot leveling events.  (Read 730 times)

I have been expirimenting with VCE cause I've just started to understand it, I tried making a bot that you kill and it gives Exp. When your Exp reaches a certain amount it will add a Lvl variable. But the thing is I tried making it so when you level up you get less Exp from the bot when killed. The thing is, when you reach enough Exp you get a "Level up!" message. After I get to the amount of Exp needed for level 1 it changes the Exp amount cause I leveled up but it keeps leveling me up even after. I can't get it so that it levels up when you get 150 exp and 250 exp, not when you have 150 or over. I know I should have used the == not >= so it wont keep leveling up but if I didn't I don't know how to make it so you level up when you get 250. Cause since you get less Exp when you level up, you wont get exactly 250 so the == wont work. But if I use >= it wont work either cause you keep leveling up. Im not a pro at these events so can someone tell me what I did wrong and tell me how to fix it? I got a screeny of the events.



instead of 3, 4, do 3 4.
That'll use events 3-4.
instead of 6, 7, 8, 9 (etc)

instead of 3, 4, do 3 4.
That'll use events 3-4.
instead of 6, 7, 8, 9 (etc)


This.

Also, try out some print codes.

Event 1: <color:FFFF00>+10 Exp!
Event 4: <font:impact:36><color:00FF00>Level Up!
Event 8: <color:FFFF00>+8 Exp!

ALSO, I SEE NO EVENT THAT SUBTRACTS EXPERIENCE ONCE YOU LEVEL UP D:

i could write out the events to make it level you up after 50, 150, 250, 350, 450, and so on incrimenting by 100 :D

ALSO, I SEE NO EVENT THAT SUBTRACTS EXPERIENCE ONCE YOU LEVEL UP D:
onBotKilled>Killer(Client)>VCE_ifVariable[Lvl] == [1]
onVariableTrue>client>VCE_modVariable[Exp] Add [8]

So if they have 1 level variable, it will give 8 instead of 10.

Code: [Select]
0. +10 Exp
1. Say +10 Exp!
2. Check if EXP >= 150 (do 3 4)
3. - ifTrue - +1 Level
4. - ifTrue - Say Level up!
5. If Level = 1 (Do 6 7 8)
6. - ifTrue - +8 Exp
7. if Exp >= 250 (do 3 4)
8. - ifTrue - Say +8 Exp!

On line 5, the event do do line 7 doesn't do anything. Line 7 isn't a onVariableTrue / onVariableFalse event.

For the EXP checks, you check twice whenever a bot is killed. If the player has >= 150 exp, and if the player has >= 250 exp. If the player has anywhere from 150-249 exp, the player will level up once whenenever any exp is gained. If it's above 249, then the player will gain two levels for each increment of exp.

onBotKilled>Killer(Client)>VCE_ifVariable[Lvl] == [1]
onVariableTrue>client>VCE_modVariable[Exp] Add [8]

So if they have 1 level variable, it will give 8 instead of 10.

no like, it says when you get 150 exp, it gives you a level right? You need to make it subtract 150 EXP so that it doesn't add levels over and over.

no like, it says when you get 150 exp, it gives you a level right? You need to make it subtract 150 EXP so that it doesn't add levels over and over.

Wait nevermind i reread itawietjawirujhyaiwerjaiwrj yiawjratijwr awrga ryhkj