if( get_property( sidequestArenaCompleted ) == "hippy" )
{
code to be executed
}
1) There is a wiki. It is here. Another way to learn stuff is to use ashref and also to read and disseminate a variety of scripts on the forums. If you have a Mr. A and have plenty of time on your hands, dj_d's acsend.ash suite is very useful for seeing a range of techniques in action (especially as some of its contents come from other authors with varying styles). If you use any scripts already, look at them and try to find out how they work. See if you can make bits of them better - it's a great learning tool!
2) To check arena status, use get_property( sidequestArenaCompleted ); It returns a string.
Code:if( get_property( sidequestArenaCompleted ) == "hippy" ) { code to be executed }
Your second query... not sure what you are looking for there. Is it a combat action you want?
if (get_property("demonName2") != "") cli_execute("summon 2");
Code:if (get_property("demonName2") != "") cli_execute("summon 2");
Type "demons" in the CLI to see which number you want to be using.
if (get_property("demonName2") != "")
{
#summon greed demon - buy only those things needed - candles will be in inventory the second run
if ((item_amount($item["scroll of ancient forbidden unspeakable evil"]) == 0))
{
cli_execute("if inkwell == 0; buy inkwell");
cli_execute("if tattered scrap == 0; buy tattered scrap");
cli_execute("if quill pen == 0; buy quill pen");
cli_execute("if thin black candle < 3; buy 3 thin black candle");
}
cli_execute("summon Preternatural Greed");
}
Mafia certainly will handle acquisition of all summoning supplies. All you need is...
Code:if(!to_boolean(get_property("demonSummoned")) && get_property("demonName2") != "") cli_execute("summon 2");