Varset woes

Need some help with that macro you're working on or aren't quite sure how to get your macro to do something? Ask here!

Moderator: MacroQuest Developers

bob_the_builder
a hill giant
a hill giant
Posts: 275
Joined: Tue Jul 22, 2003 1:22 pm

Varset woes

Post by bob_the_builder » Wed Apr 21, 2004 9:39 pm

I did not see any posted changes to varset but I am having the following issues:

(just my test.mac)

Code: Select all

| test.mac
Sub Main
   /declare SpellName global
   /varset SpellName ${Me.Gem[@Param0]}
   /echo @SpellName
   /echo ${Me.Gem[@Param0]}

/return
If I send this "/mac test 1" and my spell in gem slot 1 is "Minor Healing" I get the following output:

Minor
Minor Healing

I would assume that my issue is with varset not taking the full spaced name. Any one able to illaberate on my issues?

Bob
Last edited by bob_the_builder on Wed Apr 21, 2004 9:52 pm, edited 1 time in total.

ml2517
a grimling bloodguard
a grimling bloodguard
Posts: 1216
Joined: Wed Nov 12, 2003 1:12 am

Post by ml2517 » Wed Apr 21, 2004 9:44 pm

That is the way it has always been. Change:

/varset SpellName ${Me.Gem[@Param0]}

to

/varset SpellName "${Me.Gem[@Param0]}"

bob_the_builder
a hill giant
a hill giant
Posts: 275
Joined: Tue Jul 22, 2003 1:22 pm

Post by bob_the_builder » Thu Apr 29, 2004 8:52 pm

You don't need quotes now for the /varset

Code: Select all

| test.mac 
Sub Main 
   /declare SpellName
   /varset SpellName ${Me.Gem[${Param0}]} 
   /echo ${SpellName}
   /echo ${Me.Gem[${Param0}]} 

/return 
If I send this "/mac test 1" and my spell in gem slot 1 is "Minor Healing" I get the following output:

Minor Healing
Minor Healing

Bob_is_happy