Zmulan
08-01-2011, 18:11
Yep, as the title says.
More variables = more cool scripts.
Currently we can perfom any action we want with exiva > so the only limit for more advanced scripts is that we dont have the variables we need..
Let's do some brainstorming, this is what I can think of right now:
$walkable:XYZ$ - returns 1 if its possible to walk on that sqm, 0 if it's blocking.
$floorchange:XYZ$ -returns 1 if its a stair, ladder, hole etc.
$monsterPos:ID$ - either this could return the whole coordinates or its position in relation of the own character (X+1, Y+3, Z=0 etc) This could be useful for keepDistance scripts and exori if surrounded etc.
$monstersArund$ - this could take use of the above variable. It will simply check every creature on battlelist and return how many of them is standing around you. Could perhaps even be customized to determine how far away monsters should be counted - $monstersAround:4$ = 4sqm away.
And as for commands I would really love to see this feature:
exiva loadScript demons.txt
which could even be used inside a script.
also, it would be nice if we could allow scripts to run even while being offline.
This way we could allow scripts to bot a few hours on different characters.
Example, switchChar.txt
IfTrue ($charactername$#string=#Noobchar) Goto $nlineoflabel:loadNoob$
IfTrue ($charactername$#string=#Mainchar) Goto $nlineoflabel:loadMain$
gotoScriptLine 0
:loadNoob
exiva loadScript rats.txt
:loadMain
loadScript demons.txt
and then, in those 2 scripts we could use $played$ or $expgained$ or whatever we prefer
rats txt could look something like:
setMeleeKill and all the other stuff
move XYZ
#if we gained 2k exp switch to the mainchar
IfTrue ($expgained$#number>#2000) Goto $nlineoflabel:switchChar$
gotoScriptLine 0
:switchChar
move XYZ safe spot.
#check statusbit make sure we can logout.
exiva logout
exiva login Mainchar
exiva loadScript switchChar.txt
I had a lot of great ideas but lost them as soon as I started writing here.. Ill edit later :)
I realized now that the switchChar.txt was very unnecessary but at least I proved my point.
More variables = more cool scripts.
Currently we can perfom any action we want with exiva > so the only limit for more advanced scripts is that we dont have the variables we need..
Let's do some brainstorming, this is what I can think of right now:
$walkable:XYZ$ - returns 1 if its possible to walk on that sqm, 0 if it's blocking.
$floorchange:XYZ$ -returns 1 if its a stair, ladder, hole etc.
$monsterPos:ID$ - either this could return the whole coordinates or its position in relation of the own character (X+1, Y+3, Z=0 etc) This could be useful for keepDistance scripts and exori if surrounded etc.
$monstersArund$ - this could take use of the above variable. It will simply check every creature on battlelist and return how many of them is standing around you. Could perhaps even be customized to determine how far away monsters should be counted - $monstersAround:4$ = 4sqm away.
And as for commands I would really love to see this feature:
exiva loadScript demons.txt
which could even be used inside a script.
also, it would be nice if we could allow scripts to run even while being offline.
This way we could allow scripts to bot a few hours on different characters.
Example, switchChar.txt
IfTrue ($charactername$#string=#Noobchar) Goto $nlineoflabel:loadNoob$
IfTrue ($charactername$#string=#Mainchar) Goto $nlineoflabel:loadMain$
gotoScriptLine 0
:loadNoob
exiva loadScript rats.txt
:loadMain
loadScript demons.txt
and then, in those 2 scripts we could use $played$ or $expgained$ or whatever we prefer
rats txt could look something like:
setMeleeKill and all the other stuff
move XYZ
#if we gained 2k exp switch to the mainchar
IfTrue ($expgained$#number>#2000) Goto $nlineoflabel:switchChar$
gotoScriptLine 0
:switchChar
move XYZ safe spot.
#check statusbit make sure we can logout.
exiva logout
exiva login Mainchar
exiva loadScript switchChar.txt
I had a lot of great ideas but lost them as soon as I started writing here.. Ill edit later :)
I realized now that the switchChar.txt was very unnecessary but at least I proved my point.