SOLVED: Variable stops working randomly?!

Post Reply
Saeryn
Posts: 9
Joined: Sun Feb 12, 2012 11:19 am

SOLVED: Variable stops working randomly?!

Post by Saeryn »

So I realized the Variable I have named pack isn't working.

Created a variable in the form of...

pack = ("BackpackXXXXXX") whereas X is Numberic ID of the Item

I save it and get this message in the debug console...

LUA: code compiled without errors. OK

Then try to run an Alias to check to see if it is working by echoing the value within the variable...

Name: CheckPack
Pattern: ^PackID$
Value: echo("Pack ID is: " .. pack)

In the debug console I get...

Alias name=CheckPack(^PackID$) matched.
Alias: capture group #1 = <PackID>
LUA: ERROR running script CheckPack (Alias25) ERROR:[string "function Alias25()..."]:2: attempt to
concatenate global 'pack' (a nil value)

This happened once and then correct itself somehow id est began working again, now I can't get it to work again and have no clue what I'm doing wrong...

To me it seems as if the variable pack isnt being assigned the value correctly and thereby reporting back a value of nil which the trigger's/alias' can't seem to compute but.... why?

EDIT:

And now it is working again after I edited the assignment to echo("Pack ID: " .. pack) then deleted it and made it a separate alias, which didn't work at first their before the edit of the assignment alias.... >.-

EDIT 02:

Evidently it was due to the brackets. >.-

Post Reply