Author Topic: Quests(VCE)  (Read 909 times)

I just need to know how to make a damn quest... I got some variables down(resources, shops, and xp).
All I need is for when you click on a bot it says something like go get me 10 Oak logs and when you come back you get something like 5 Gold and subtracts the 10 Logs. Then you can't do that quest anymore.
If anyone could help, it would be great.

Code: [Select]
0 OnBotActivate > Client > VCE_IfVariable [Quest_NPC1] == [  ] [1 2]
1 OnVariableFalse > Client > VCE_ModVariable [Quest_NPC1] Set [1]
2 OnVariableFalse > Client > ChatMessage [<color:ffff00>Imalovingnpc<color:ffffff>: Here's some loving text get me 10 Wood]
3 OnBotActivate > Client > VCE_IfVariable [Quest_NPC1] == [1] [4 4]
4 OnVariableTrue > Player > VCE_IfVariable [Wood] == [10] [5 8]
5 OnVariableFalse > Client > ChatMessage [<color:ffff00>Imalovingnpc<color:ffffff>: You miserable forget, you need 10 wood, you only have <var:pl:Wood> Wood]
6 OnVariableTrue > Client > ChatMessage [<color:ffff00>Imalovingnpc<color:ffffff>: Perfect, Take your gold and GET THE forget OUT]
7 OnVariableTrue > Client > VCE_ModVariable [Quest_NPC1] Set [2]
8 OnVariableTrue > Client > VCE_ModVariable [Gold] Add [25]
9 OnBotActivate > Client > VCE_IfVariable [Quest_NPC1] == [2] [10 10]
10 OnVariableTrue > Client > ChatMessage [<color:ffff00>Imalovingnpc<color:ffffff>: Thanks again for the wood you son of a bitch loving friend]

Atleast, that's how i do it. Adding more parts to a quest is self explanatory.

OH don't forget to add OnVariableTrue > Player > VCE_ModVariable [Wood] Subtract [10] at the part when you have 10 wood.

Thank you very much  :cookie: for you

One quick question, on line 0 is there supposed to be a 1 in the empty box?

No, Because if it was 1, you'd need to have a button to set that variable to 1, then you'd have to click it.
Keep it empty.