Making A NPC dissapear with a GB

How do I do this???

------------------

Quote

Originally posted by Trunks:
How do I do this???

Mr. Trunks,

I assume by "GB" you are referring to a global?

If so, it depends entirely on the set up to your question. For example:

  • If you want to have an NPC that normally loads on a screen to disappear after certain conditions are met(ie, he stands around waiting for you to retrieve his hat for him, and once you give it to him he leaves and thus won't load anymore) then you just need to have a conditional in the local event of the map's location. Ie, when the map is loaded the local events are called. Within this event have a conditional that checks the global(s) that will determine if the conditions are met yet. If they are not met then call an NPC Control event to load the NPC in the spot where you want him. If the conditions are met then do not do this action.

  • If you have an NPC that you want to remove that is already on the screen, then you can do so with the NPC Control event object, by specifying it to either "Delete" or "Kill" the NPC in question. If you choose to delete the NPC it is simply removed from the screen. If you choose to kill it, then it will be removed but with the death "fade out." Both achieve the same results, they just differ in how the NPC is removed(with or without the death fade). Note however, that if you use an NPC Control to remove an NPC on the screen that it will remove the last placed NPC of the same you specify. Thus if you are trying to remove 1 of several NPCs of the same type you will be unable to specify the exact NPC unless the event is called from the NPC itself(and even then I'm not sure if this will work correctly).

If neither of these work for you, please post a lengthier discussion on your problem and its set-up.

------------------
(url="http://"http://stark.evula.net/pogwalkthrough.htm")PoG Walkthrough and Compendium(/url) | (url="http://"http://stark.evula.net/plugins/dev_tools.htm")PoG Dev Tools(/url) | (url="http://"http://stark.evula.net/plugins/spells_expander.htm")Spells Expander(/url)
(url="http://"http://stark.evula.net")Stark.evula.net(/url) now on (url="http://"http://www.evula.net")EVula.net(/url)