Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using Variable
#1
Hello Guys!

I'd like to create some a little bit more complicated script.
The only problem is the fact I can't use variables properly.

What do I want to do?

Create variable called TEST. It's value returns 0 or 1.
The value of this variable is able to be changed by some easy macro.
If macro says something like !TEST!:=0 or !TEST!:=1 the variable saves it's value.

So now I can use it in my Full Check Label. If !TEST!==1 go label X and If !TEST!==0 go label Y.

Hope You can help me Boys! I will thank for sure Smile
Reply
#2
First mistake, to give value to variable, you don't use ! !

Example

Gold:=Misc.ItemCountEx(3031)

Would put quantity of gold coins into variable.

Which further you can use in comparison with ! !

!Gold!>=150

Just read documentations, everything is explained.

Also check out my macros, link in my signature.
Reply
#3
Thank You but I'm not sure If I understand it well.
So am I able to create variable that tells me If I'm beeing attacked by player?
Could You help me a little bit more?
Reply
#4
(06-16-2017, 02:51 PM)Pepe94 Wrote: Thank You but I'm not sure If I understand it well.
So am I able to create variable that tells me If I'm beeing attacked by player?
Could You help me a little bit more?



For this u have settings in 'Protector' tab
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)