Kyshakk Koan Kennedy Posted March 19, 2004 Share Posted March 19, 2004 Is there any way to get the character number of something created with the place_monster call? It would be nice if the call returned the chracter number of the newly created creature so designers could then do something to the newly spawned creature. Link to comment Share on other sites More sharing options...
Kyshakk Koan Boots Posted March 19, 2004 Share Posted March 19, 2004 For clarity: by "spawned," you mean "placed," right? (another call, spawn_creature, activates a creature with a specified character number at a specified spawning point). There's always char_on_spot: you could call that after the place call and identify the placed creature. Seems unduly clunky, though -- my kind of coding! -- so better wait for responses from beta-testers or those who actually know what they're doing. Link to comment Share on other sites More sharing options...
Magnificent Ornk Drakefyre Posted March 19, 2004 Share Posted March 19, 2004 If you want to get that character number, the best thing to do is pre-place a character in an encounter and then set the encounter to visible when the triggering action occurs. Link to comment Share on other sites More sharing options...
Kyshakk Koan Kennedy Posted March 20, 2004 Author Share Posted March 20, 2004 > For clarity: by "spawned," you mean "placed," right? (another call, spawn_creature, activates a creature with a specified character number at a specified spawning point). Yes, I meant placed. The reason I am asking is because I want to make a special ability that will create a specified monster whenever the player uses it, but I don't want it to be hostile to the party. I suppose the char_on_spot function could be used, but it would be nicer if the place_monster call would just return the character number of the monster it places. Link to comment Share on other sites More sharing options...
Magnificent Ornk Drakefyre Posted March 20, 2004 Share Posted March 20, 2004 You could just create a copy of the monster that starts out friendly and create that monster instead of the hostile version (unless all placed monsters are hostile, in which case ...) Link to comment Share on other sites More sharing options...
Well-Actually War Trall Spidweb Posted March 20, 2004 Share Posted March 20, 2004 There are many things I wanted to do, but I couldn't, becaused the engine was built a certain way and it would have taken a bit of work. This is number one on the list. :-( There are ways around this. 1. Make the creature with spawn_creature. 2. Make the creature type you are making with place_monster have a default script made by you, and make that default script do what you want it to do. Link to comment Share on other sites More sharing options...
Recommended Posts