Full Version : How to use a Spawner to Spawn & Link a lever
xmlspawner >>Q&A >>How to use a Spawner to Spawn & Link a lever


<< Prev | Next >>

Ordi- 01-15-2008
Greetings,

Long time lurker first time poster.
First off love XMLSpawner best thing ever, until recently I have really only used it for basic stuff like spawning things and have not done alot with quests, puzzles and the like..


Down to the issue:
I am looking to use a xmlspawner/Crystal2.gif to spawn 6 xmlspawner/lever2.gif's 5 of those do not need anything added as basically they will do nothing anyway or I may choose to change that once/if you can assit me..

I have two spawns in the spawner that will spawn the xmlspawner/lever2.gif
5x that just spawn simplelever
1x that I am trying to spawn a simple lever and link it and applie a property.

The lever is basically to be spawned and linked to a xmlspawner/Crystal2.gif that will trigger a sequential spawn and a series of events, that part I have working..

This issue is with spawning and linking a lever..
Currently I have something along the lines of

#WAYPOINT,WayPointName,0 ; simplelever/ (This is where I am getting stuck)

I need to set the Target1Item & Target1ItemProperty but can not figure out how to spawn the lever with the serial to link the item and apply the /Running/true property to the target spawner.
Everything I have tried seems to direct me to Target1Item being Invalid sad.gif

The idea is a player enters a room and is locked in and must find the right lever to proceed,
I do say I will booby trap one just to make it interesting smile.gif

Thanks in advance for your assistance.

Vladimir- 01-15-2008
Yea I think that will be a bit hard without first know the (as yet unspawned) lever's serial? But surely there is an easier way to do that? How about if you simply add the levers and set them up the way you want them, then get the spawners instead to toggle whether or not the levers are visible? Not exactly sure if thats what you are wanting to do...

Ordi- 01-16-2008
The idea is so that the lever that is to be used is always randomised as it would despawn and respawn ever couple hours.

Ok I think maybe I said it wrong.
Another example

I have a spawner (a) that has a squential spawn on it.
I want another spawner (cool.gif to spawn 6x levers but 1x of the entry's on Spawner (cool.gif's list is syntax I need to have it attach to spawner (a) and when used put it into a running state..

The spawner it is pointing to's serial = 0x40081596 (actually i think I was putting it in wrong will go test)
The action I am looking to do is put that spawner into a /Running/true state.

Thanks for the reply smile.gif


*Update and solution so others can see if they dont work it out.. lol
I used ".get serial" to get the serial number from the target spawner/item

The code I used to get it working was:
CODE
#WAYPOINT,WayPointName,0; simplelever/Target1Item/0x4001234/

Still stuck on parsing "/Running/true" to the spawned lever sad.gif
I think its due to the /

Thanks again for your help!

Ordi- 01-17-2008
Tralling again through the forums I stumbled on this post:
http://xmlspawner.15.forumer.com/index.php?showtopic=448&hl=

Held exactly what I needed, the @ operator to pass the string to the lever..

Heres what I ended up with and it works perfectly..
CODE
#WAYPOINT,WayPointName,0; simplelever/Target1Item/0x4001234/Target1Property/@/Running/true


Thank you everyone who dropped by to have a look at my problem anyway biggrin.gif
And thanks again for the reply.