In my game there will be certain parts where the player will take control of an NPC. Just for added realism I wanted to make sure that the player's name would change along with the map icon. So I set up a global for storing the Hero's name (gb_hero_name), and make sure that within the main.cet the global gb_hero_name will be set to the value 'Name'.
Then I made the event to change the player icon and player name (using the attribute wizard I choose 'Player Name' and have it set to '&&gb;_hero_name'). All seems well and good.
Then i start up the game to test it all out and switching to the NPC is flawless - the icon changes and the name changes - as it should. But when I switch back to the hero the name becomes literally '&&gb;_hero_name' not whatever the player sets it to in the begining.
Can anybody help me? Did I screw up somewhere? Or is this a bug?
P.S. A similar system could be set up for a sort of party system where the player would switch characters via a map button or keydown - I think this method of making a party has been discussed before....so I won't blab anymore about it.
------------------
(url="http://"http://jankostar.net/sanko")my Page of Garbage(/url)
(This message has been edited by sanko (edited 09-06-2002).)