Garrulous Glaahk Groovejet Posted August 2, 2004 Share Posted August 2, 2004 I want that after certain event the location of a character in a town is changed. For example, there is a townperson that is jailed and after you proove he is innocent he returns to his home. How do I make this happen in the editor? I was thinking that the best would be to make the second character belong to a hidden group and put a script on the init town state that after certain flag is set, erase the first one and makes the second one appear. Link to comment Share on other sites More sharing options...
Magnificent Ornk Kelandon Posted August 2, 2004 Share Posted August 2, 2004 That's probably the best way to do it. The other way that comes to mind is to use relocate_character, but then you may have trouble with the character thinking that its starting location is elsewhere and trying to return to it. You'd have to give it a special script in order for that to work, so your best bet is probably exactly what you described. EDIT: Bah, the call is relocate_character, not relocate_char. Link to comment Share on other sites More sharing options...
Garrulous Glaahk Isaac Posted August 3, 2004 Share Posted August 3, 2004 Or if you want to get into complicated creature scripts, you could make the character actually walk back to his home, rather than "teleporting". (Unless he's a powerful wizard, of course ) Link to comment Share on other sites More sharing options...
Well-Actually War Trall Archmagus Micael Posted August 4, 2004 Share Posted August 4, 2004 For Isaacs, you'll probably want to use the RELOCATE_CHARACTER(character number,x location, y location) call. It's somewhere in the scripts. (cut scenes section (that's for teleporting and such. For anything else... SORRY!) - Archmagi Micael Link to comment Share on other sites More sharing options...
Magnificent Ornk Kelandon Posted August 4, 2004 Share Posted August 4, 2004 Nice job saying exactly what I just said, Micael. Link to comment Share on other sites More sharing options...
Recommended Posts