Full Version : another incorrect syntax
xmlspawner >>Q&A >>another incorrect syntax


<< Prev | Next >>

aph- 07-14-2006
So - when I want to make a trigger condition that depends on whether Mount some PlayerMobile's has Str>150 and Label1=Cursed, I have to do it like this in spawn entry:

1. IF/{GETONTRIGMOB,Mount.serial},Str>150 & {GETONTRIGMOB,Mount.serial},Label1=Cursed/3
1. GOTO/1
3. SET,... etc..

and props:
PlayerTrigProp- Mounted=True
min/max 0 etc..

but this condition doesn't work, my finding for any similar condition was unccessful :/
error -> GETONTRIGMOB,Mount.serial,label1 :

ArteGordon- 07-14-2006
try it like this

IF/GET,{GETONTRIGMOB,Mount.serial},Str>150 & GET,{GETONTRIGMOB,Mount.serial},Label1=Cursed/3

The GET keyword will accept a serial number as the target, and then allow you to get properties from it. So you substitutute that serial number using GETONTRIGMOB,mount,serial

aph- 07-14-2006
QUOTE (ArteGordon @ July 14, 2006 06:28 pm)
try it like this

IF/GET,{GETONTRIGMOB,Mount.serial},Str>150 & GET,{GETONTRIGMOB,Mount.serial},Label1=Cursed/3

The GET keyword will accept a serial number as the target, and then allow you to get properties from it. So you substitutute that serial number using GETONTRIGMOB,mount,serial

ok it works nice, only the label condition has to be Label1="Cursed"

.. btw is possible to put on GETONCARRIED condition ( item carried by mount )
thx

ArteGordon- 07-14-2006
QUOTE (aph @ July 14, 2006 02:26 pm)
QUOTE (ArteGordon @ July 14, 2006 06:28 pm)
try it like this

IF/GET,{GETONTRIGMOB,Mount.serial},Str>150 & GET,{GETONTRIGMOB,Mount.serial},Label1=Cursed/3

The GET keyword will accept a serial number as the target, and then allow you to get properties from it. So you substitutute that serial number using GETONTRIGMOB,mount,serial

ok it works nice, only the label condition has to be Label1="Cursed"

.. btw is possible to put on GETONCARRIED condition ( item carried by mount )
thx

to access things in a mobs pack you have to temporarily set the TriggerMob property to that mob, and then keywords like GETONCARRIED will refer to things that they are carrying.

See this post
http://xmlspawner.15.forumer.com/index.php?showtopic=506