Author Topic: Need help with VCE/Multiple Variables.  (Read 952 times)

Okay so I want to make a Medieval RPG but I want to make it so after you do a "task" or "quest" you cant do it again. I want to make it so when you complete the task it gives you a variable, so then when you go to the task post and click "complete" it checks for if you accualy did the task, BUT I want to make it so if you DID do the task it gives you ANOTHER variable so You cant do it again.

This would be easy if I had Multiple Variables.. But i dont have the link for the dL... Please help:) Thanks

Well, try this. (Let "1" be yes for variable one and two.)

OnActivate (Or how you wish this to execute): self: if value : <var:player:firstvariablename> or <var:client:firstvariablename> = 1
On Variable False - allow the quest

On variable true: player or client: mod variable: secondvariablename - set - 1.

Would this suffice your need?


I kind of get it but kind of don't. I need to Make it like:
OnActivate>Player>check_VCE>Quest1Complete=1
VariableTrue>Player>Mod_VCE>Money>add>20

But I need it to check 2 variables. If The task is completed or if it isnt, and if the player has already done the task.


You could make it like this:
0 onActivate --> Client -->ifVar [quest done] == 1    [1 2]
1 onVariableTrue --> Client --> Centerprint  ["you have already done this mission]
2 onVariableFalse --> Client ifVar [quest completed] == 1 [3 7]
3 on VariableTrue --> Client --> Centerprint ["good work, you have completed the quest!"]
4 onVariableTrue --> Client -->modVar [money] --> add [200]
5 onVariableTrue --> Client -->modVar [quest done] --> set [1]
6 onVariableFalse --> Client --> centerprint ["discription for quest here"]
7 onVariableFalse --> Client -->modVar [quest completed] --> set


i think something like this would work, not tested though :D
Hope I could help.

You could make it like this:
0 onActivate --> Client -->ifVar [quest done] == 1    [1 2]
1 onVariableTrue --> Client --> Centerprint  ["you have already done this mission]
2 onVariableFalse --> Client ifVar [quest completed] == 1 [3 7]
3 on VariableTrue --> Client --> Centerprint ["good work, you have completed the quest!"]
4 onVariableTrue --> Client -->modVar [money] --> add [200]
5 onVariableTrue --> Client -->modVar [quest done] --> set [1]
6 onVariableFalse --> Client --> centerprint ["discription for quest here"]
7 onVariableFalse --> Client -->modVar [quest completed] --> set


i think something like this would work, not tested though :D
Hope I could help.

Thanks, Ill try that out