Page 1 of 1

How do i get a variable from the Global RoM to the Rombot?

Posted: Wed Feb 22, 2012 4:16 pm
by Romplayer
I need to call up some variables from an addon that stores it into open file SaveVariables.lua. These are Global variables accessable by RoM but not Global to the RoM bot. Can i use the igf: frame to get the variables? If so how?

would i = igf:variable('GetText()') work? if so even if it a table?

Re: How do i get a variable from the Global RoM to the Rombo

Posted: Wed Feb 22, 2012 7:23 pm
by lisa
you just need to use RoMScript

example

Code: Select all

if RoMScript("madman.Time") >= 1 then
madman.Time is an addon global variable.

Re: How do i get a variable from the Global RoM to the Rombo

Posted: Wed Feb 22, 2012 8:02 pm
by Romplayer
i can't find the madman addon can u link it for me?

Re: How do i get a variable from the Global RoM to the Rombo

Posted: Wed Feb 22, 2012 8:51 pm
by lisa
You won't find it on curse as it is mine.

forum search got this
http://www.solarstrike.net/phpBB3/viewt ... 098#p26098

Re: How do i get a variable from the Global RoM to the Rombo

Posted: Wed Feb 22, 2012 11:24 pm
by rock5
Just note that you can't normally get tables with RoMScript, only single values.