Creating Exits

guzmere
13 Oct 2012, 19:14Hello everybody hope you are all ok. Just a curiosity question I have just used a create exit command for the first time, of which I am pleased that it was very easy to understand ( thanks to Alex for making this so) however underneath it shows reference to
[ type "optional" and id "optional" ] I know that this is not detrimental to the game and I don't have to fill it in but as they say that curiosity killed the cat. Ahem sorry about that, but if any one can explain it to me I would be grateful, Ta! Terry

[ type "optional" and id "optional" ] I know that this is not detrimental to the game and I don't have to fill it in but as they say that curiosity killed the cat. Ahem sorry about that, but if any one can explain it to me I would be grateful, Ta! Terry





jaynabonne
13 Oct 2012, 20:37You specify an id if you wish to access the exit again in scripts. If you don't specify an id, one will be generated for you (every object has a unique name/id), and it would be a bit tricky to actually determine what it is. So if you're happy to just create an exit and then leave it from then on, you can leave the id alone. (If you do want to specify your own id, you can use GetUniqueElementName to generate a unique name - be sure to save it for later use!)
The type is the type of exit to create. These are types like "northdirection", "southdirection", "northwestdirection", "indirection", etc. If you specify a type, then you get all the attributes specified in that type, like alt name, alias, etc.
Hope that helps!
The type is the type of exit to create. These are types like "northdirection", "southdirection", "northwestdirection", "indirection", etc. If you specify a type, then you get all the attributes specified in that type, like alt name, alias, etc.
Hope that helps!


guzmere
14 Oct 2012, 09:28Hi jaynabonne thanks for the explanation (although it hasn't sunk totally in my head at the moment,) but I'm one of those people that I forget all about it and then suddenly like a lightening bolt I get a eureka moment. And after hitting my head with the palm of my hand and maybe in the street as well, so I get some funny looks from people it suddenly dawns on me.Thanks for that, I sort of understand your meaning, but I just wanted to create the exit and leave it at that. Many thanks Terry




