seems simple - passing vars
Posted: Sun Oct 25, 2015 8:41 pm
So I am trying to write a simple.. well in theory, macro. The idea is I want to be able to pick up an item and have it search for said item on my other toons that are logged in.
I get the item name and ID just find and can echo it .. no problems there.
Here is where I seem to just be getting my butt kicked.
Passing that ${itemName} to the others via BCAA command always comes back NULL for all the others. It would seem it is looking for that variable name locally rather then parsing it out to what its value is before sending the command.
Does that makes sense? How do you pass vars to other chars?
/varset ItemName ${Cursor}
/noparse /bcaa //bc ${ItemName}
in the Cmd window
Toon 0 "correct name
Rest toons
NULL
Any tips?
I get the item name and ID just find and can echo it .. no problems there.
Here is where I seem to just be getting my butt kicked.
Passing that ${itemName} to the others via BCAA command always comes back NULL for all the others. It would seem it is looking for that variable name locally rather then parsing it out to what its value is before sending the command.
Does that makes sense? How do you pass vars to other chars?
/varset ItemName ${Cursor}
/noparse /bcaa //bc ${ItemName}
in the Cmd window
Toon 0 "correct name
Rest toons
NULL
Any tips?