Blockland Forums > General Discussion
Multiple Variables HELP?
Snaily:
Put
10 15
In the last box on event 9.
namone:
--- Quote from: Snaily on January 29, 2011, 12:42:10 PM ---Put
10 15
In the last box on event 9.
--- End quote ---
Nope didn't work. Just gave me a battle axe and a scimitar when I hit scimitar and it gave me the same when I hit battle axe.
namone:
People okay I seriously need help it won't work! >:( stupid variables and there hardness lol. I am hosting an internet server pass word is 123 it is called don't join...Anyone that wants to help me figure it out join and work on the event in the black smith shop. The event is in the invisible block at the feet of the standard bot in the blacksmith shop. Please also feel free to post a comment.
GenaralSkar:
Wait wait wait, I just realized you are doing VarLinks are wrong.
Correct use:
[0]OnActivate>Client>ChatMessage>[<varlink:Scimitar_scimitar:1> - 10 Gold]
[1]OnActivate>Client>ChatMessave>[<varlink:Battle Axe_baxe:1> - 25 Gold]
[2]OnVariableUpdate>Client>IfVariable>[scimitar]>=[1] [3 4]
[3]OnVariableTrue>Client[or player where ever the gold variable is stored]>IfVariable[gold]>=[10] [5 5]
[4]OnVariableFalse>Client>IfVariable[Baxe]>=[1] [7 7]
[5]OnVariableTrue>Client[or player where ever the gold variable is stored]>IfVariable[gold]>=[10] [6 7]
[6]OnVariableTrue>Player>additem>Scimitar
[7]OnVariableTrue>Client[or player where ever the gold variable is stored]>ModVariable[gold][Subtract][10] [8 9]
[8]OnVariableTrue>Player>additem>Battle Axe
[9]OnVariableTrue>Client[or player where ever the gold variable is stored]>ModVariable[gold][Subtract][25]
[10][33]OnVariableUpdate>Client>ModVariable>[baxe][Set][0]
[11][33]OnVariableUpdate>Client>ModVariable>[scimitar][Set][0]
That should work.
namone:
I followed your instructions GeneralSkar, but now it won't give me my items when I click my var links. Here are me events.