Page 1 of 1

Problem with getting a variable from Main call.

Posted: Tue Aug 17, 2004 8:21 pm
by Dadelot
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?

Posted: Tue Aug 17, 2004 8:31 pm
by blueninja
/varset Kitter ${Param0}

Posted: Wed Aug 18, 2004 12:07 am
by dont_know_at_all
Why are you creating a character type? I don't think that is what you want...

Posted: Wed Aug 18, 2004 5:32 am
by Dadelot
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!

Recommended Hints For Selecting Green Energy

Posted: Wed Mar 01, 2023 8:14 am
by FrankJScott
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

Useful Interior Design Advice

Posted: Thu Aug 10, 2023 10:59 pm
by FrankJScott
Why don't you Google it! before you post

Best Product Site

Posted: Sat Aug 19, 2023 2:03 am
by FrankJScott
Why don't you Google it! before you post