Full Version : Attachment triggering
xmlspawner >>Q&A >>Attachment triggering


<< Prev | Next >>

DazedAndConfused- 07-03-2008
I am having an issue getting a spawner to trigger properly on an attachment. I use the following to assign the attachment:

SETONTRIGMOB/ATTACH/xmldata,miqt,1,1440

The string I am using to check for the attachment is:

IF/GETONTRIGMOB,[ATTACHMENT,xmldata,miqt,name]=”miqt”/30

This is erroring on the spawner. If anyone has any ideas on my mistake, I would appreciate it. Also I would just assume do the check in the NoTriggerOnCarried property. Any ideas what the proper syntax would be there?

Lichtblitz- 07-04-2008
QUOTE (DazedAndConfused @ July 03, 2008 08:46 pm)
I am having an issue getting a spawner to trigger properly on an attachment.  I use the following to assign the attachment:

SETONTRIGMOB/ATTACH/xmldata,miqt,1,1440

The string I am using to check for the attachment is:

IF/GETONTRIGMOB,[ATTACHMENT,xmldata,miqt,name]=”miqt”/30

This is erroring on the spawner.  If anyone has any ideas on my mistake, I would appreciate it.  Also I would just assume do the check in the NoTriggerOnCarried property.  Any ideas what the proper syntax would be there?


QUOTE
Attachment Thread
- spawner triggering can be made dependent upon attachments on the triggering mob by using the "ATTACHMENT,name,type" string in the TriggerOnCarried or NoTriggerOnCarried properties.
This will make triggering dependent on attachments on the mob, or an attachment on an item equipped by the mob, or an attachment on an item in the top level of the mobs backpack (see attachtest1.xml for an example).

In your case for NoTrigOnCarried it would be ATTACHMENT,miqt,xmldata. Note the different order!

Your IF command seems to be correct. If you still need it to be fixed, please post your complete Spawner here as the problem may derive from another entry as well.

DazedAndConfused- 07-05-2008
Thank you so much!

That fix worked well!