Problem with getting a variable from Main call.

Need help with a macro you are writing? Ask here!

Moderator: MacroQuest Developers

Dadelot
orc pawn
orc pawn
Posts: 14
Joined: Sun Aug 15, 2004 6:49 pm

Problem with getting a variable from Main call.

Post by Dadelot » Tue Aug 17, 2004 8:21 pm

Hey all,
I have a problem with passing a variable from the command line (i.e while launching the macro). Here is my code

Code: Select all

Sub Main
/declare Kitter character outer
/varset ${Kitter.Name} Param0
/echo Leader is ${Param0}
If I do this and run my macro with /macro pof test I get:
[MQ2] Leader is
I tried doing a /varset ${Kitter.Name} ${Param0}
but if I run my macro with /macro pof test I get:
/varset failed, variable 'test' not found
Any idea how I can do that please?

User avatar
blueninja
a grimling bloodguard
a grimling bloodguard
Posts: 541
Joined: Thu Aug 28, 2003 7:03 am
Location: Göteborg, Sweden

Post by blueninja » Tue Aug 17, 2004 8:31 pm

/varset Kitter ${Param0}

User avatar
dont_know_at_all
Developer
Developer
Posts: 5450
Joined: Sun Dec 01, 2002 4:15 am
Location: Florida, USA
Contact:

Post by dont_know_at_all » Wed Aug 18, 2004 12:07 am

Why are you creating a character type? I don't think that is what you want...

Dadelot
orc pawn
orc pawn
Posts: 14
Joined: Sun Aug 15, 2004 6:49 pm

Post by Dadelot » Wed Aug 18, 2004 5:32 am

You are right dont_know_at_all, I made a character type because I thought that would be necessary for what I want to do (take the name of a kitter through the macro call, get his target and help him nuke it down) but obviously a simple string and /assist is quite enough.

Thanks for the answer blueninja, going to try it out!

FrankJScott
naggy
naggy
Posts: 2326
Joined: Sun Feb 19, 2023 7:11 am

Recommended Hints For Selecting Green Energy

Post by FrankJScott » Wed Mar 01, 2023 8:14 am

For the lady inquiring about new wind technology, grid connected solar system, sunpower sunvault, geothermal ac, geothermal hvac cost, tesla powerwall 3 2020, solar equipment, tesla solar roof v3, home made wind turbine, solar station, oxygen not included solar panel setup, I highly recommend this top rated solar power url not to mention china wind turbine, small scale hydro, the use of mppt, utl solar panel price, free solar panels for home use, largest wind turbine manufacturers, pumped hydro storage cost per kwh, best flexible solar panels, mono perc, ivanpah solar electric generating system, hot water geothermal system, bladeless wind generator, impulse water turbine, solar panel price, ferc hydropower, look at this top wind energy forum as well as off grid electricity options, 40 watt solar panel, awea wind, solar energy upsc, grand inga dam, 5 kw wind turbine, mini solar cell, wind generator price, vortex bladeless price, eolic turbine, nilgiri hydropower, hydroelectric power plant turbine, sunpower solar panels, loom solar near me, diy vertical wind turbine, try this top geothermal energy blog for 3kw solar inverter, niagara falls hydroelectric, plug in solar, wind turbine power, best solar companies, best portable solar panels for rv, solar installation company, two types of wind turbines, solar renewable energy, home made wind turbine, geothermal pump system, . See More Good Ideas For Selecting Green Energy e3c8dec

FrankJScott
naggy
naggy
Posts: 2326
Joined: Sun Feb 19, 2023 7:11 am

Useful Interior Design Advice

Post by FrankJScott » Thu Aug 10, 2023 10:59 pm

Why don't you Google it! before you post

FrankJScott
naggy
naggy
Posts: 2326
Joined: Sun Feb 19, 2023 7:11 am

Best Product Site

Post by FrankJScott » Sat Aug 19, 2023 2:03 am

Why don't you Google it! before you post