|
Development Forum |
 |
| 
Malkin
     Manager

|
4/5/2012 | 1 |
I'd like to make a piece of code, that when put in an install script, tries to install first in the C3 norn meso, then if that's not available, the grendel jungle, then if *that's* not available, the ettin desert, then if *that's* not available, the aquatic terrarium, and then if that's not available, the bottom of the DS meso.
Is my syntax correct, or will this throw far too many errors at me?
setv va00 rand 1200 1600
setv va01 300
doif tmvt va00 va01 eq 1
mvto va00 va01
else
setv va00 rand 1500 1700
setv va01 2000
doif tmvt va00 va01 eq 1
mvto va00 va01
else
setv va00 rand 5200 5400
setv va01 450
doif tmvt va00 va01 eq 1
mvto va00 va01
else
setv va00 rand 4700 4900
setv va01 1900
doif tmvt va00 va01 eq 1
mvto va00 va01
else
mvsf rand 748 1550 9547
endi |
My TCR Norns |

Annex

|
4/5/2012 | |
With the addition of three ENDI tags on the end, I don't see why this wouldn't work. Although I think MVSF may only work on creatures, though I may be wrong.
(This is assuming all your coordinates are valid, I didn't check them!) |

Malkin
     Manager

|
4/5/2012 | |
Thanks! It's working perfectly with the additional ENDIs! 
My TCR Norns |

Geek2Nurse
 

|
4/5/2012 | |
MVSF *seems* to work with other types of agents, although as a rank beginner I could be deluding myself. I can say with certainty, though, that it doesn't *complain* about being used with non-creature agents. 
---
Optimist: the glass is half full.
Pessimist: the glass is half empty.
Engineer: the glass is twice as big as it needs to be. |

Horstj
 
|
4/8/2012 | |
As far as I know MVSF workes with anything (well not sure about creatures), but can result in the agent being moved far away from the intended location. |
|