rgdelta Posted January 26, 2006 Share Posted January 26, 2006 I was wondering is it possible in TSL in the game itself to modify the tag or name of a placeable or creature. For example if I spawn a creature do some stuff and want to change it's name or tag after some dialog in game is that possible? Or is it only possible in the utp files or by spawning a new one with another UTP with the modifed name or tag? Link to comment Share on other sites More sharing options...
stoffe Posted January 26, 2006 Share Posted January 26, 2006 I was wondering is it possible in TSL in the game itself to modify the tag or name of a placeable or creature. For example if I spawn a creature do some stuff and want to change it's name or tag after some dialog in game is that possible? Or is it only possible in the utp files or by spawning a new one with another UTP with the modifed name or tag? You cannot change the Tag of an object through scripting. There is no way around this. (If you need an object to change tag, you'll have to create two templates for it with different tags and then destroy the object and create a new one from the second template.) While you cannot directly change the name of a creature (the one displayed when you select them etc) through scripting, you can make it appear changed by using custom tokens. If you set the name of the creature to a token, like "<CUSTOM2000>", then you can use the SetCustomToken() function to set what should appear as the name, like... SetCustomToken(2000, "Handmaiden"); DelayCommand(10.0, SetCustomToken(2000, "Brianna")); ...which would first make the creature's name show as "Handmaiden", and after 10 seconds make their name appear as "Brianna". Note however that custom tokens are set on a "per module" basis and not game wide, so if you do this to a party member or puppet you must re-set the token every time you enter a new area. Link to comment Share on other sites More sharing options...
rgdelta Posted January 26, 2006 Author Share Posted January 26, 2006 Ok thanks Stoffe I did not think the tag could be changed but did not know about custom tokens so the custom tokens will work for names but not tag k thanks for the info. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.