Author Topic: Multiple Variables HELP?  (Read 2613 times)

Put
10 15
In the last box on event 9.

Put
10 15
In the last box on event 9.

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.

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.

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.

I followed your instructions GeneralSkar, but now it won't give me my items when I click my var links. Here are me events.

Crap, I messed up the events. Give me a minute...

Edit:
[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] [6 7]
[4]OnVariableFalse>Client>IfVariable[Baxe]>=[1] [5 5]
[5]OnVariableTrue>Client[or player where ever the gold variable is stored]>IfVariable[gold]>=[25] [7 8]
[6]OnVariableTrue>Player>additem>Scimitar
[7]OnVariableTrue>Client[or player where ever the gold variable is stored]>ModVariable[gold][Subtract][10]
[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]

Ok, that should work.
« Last Edit: January 29, 2011, 02:51:30 PM by GenaralSkar »


Let me try
Edit: Scimitar works great. Battle Axe still won't work. I can't get the item when I click it though I have enough "gold"
Here are my events after correcting them.
« Last Edit: January 29, 2011, 03:03:23 PM by namone »

In event 4 change Baxe to baxe, In event 3 change gold to Gold, and event 5 is wrong.

Have to make sure all variables are spelled the same.

In event 4 change Baxe to baxe, In event 3 change gold to Gold, and event 5 is wrong.

Have to make sure all variables are spelled the same.
Did that still battle axe doesn't work.

I may be wrong, but i think that if you change the onVariableUpdate > client > blah on line 1 and the other one to self as a target it should work. Im on my phone, so i cant know for sure, but its worth a try.

EDIT: wait, maybe not. Copy the events from the battle axe for the scimitar. Hard to explane on a phone..
« Last Edit: January 29, 2011, 05:48:16 PM by boodals 2 »

This is kinda annoying. In event 5, change the last box from [7 8] to [8 9]

ASLjifds vhlfffffffekf;l gi'ezbnuj"I

THIS GOES IN HELP SECTION!!!!!!! READ!!!!!!!

ALL, I repeat, ALL boxes at the end of the IF statments need to have numbers in them, or else they will execute all onVariableTrue/False events.

This could be the main reason of the undesired results.

Yeah well I don't know how to script so your not helping.

Learn how to.
derp