Post new topic    
Slime Knight
Send private message
Usable once NPCs that don't disappear 
 PostWed Jul 03, 2013 3:11 am
Send private message Reply with quote
Hi,

So there is a point in my game where you take an item from a incapacitated NPC. I was wanting to make him usable once so you only get the item once, but not have him disappear after use. I know that this can be done with scripting, but it seems like one of those things that would be handy to just be able to do in CUSTOM.

Or maybe there is a way and I am just not seeing it...
Metal King Slime
Send private message
 
 PostWed Jul 03, 2013 3:36 am
Send private message Reply with quote
Use tags. Don't set it to be usable once, instead when you activate the NPC the first time, have it pop up a textbox that will give you the item. Also have that textbox set a tag to ON. In that same textbox, set it so that if that tag is ON, it'll show a different text box, one that says something like, "There's nothing on the NPC."
Being from the third world, I reserve the right to speak in the third person.

Using Editor version wip 20170527 gfx_sdl+fb music_sdl
Metal Slime
Send private message
 
 PostWed Jul 03, 2013 3:37 am
Send private message Reply with quote
A fairly easy method would be to have two NPCs with the same graphic. One of them is the "one-time use" NPC that does what you want, while the other does nothing. Put the "one-timer" on top of the "do-nothing" so that the first time the player selects it, he/she gets the item. Afterwards, nothing. But graphically, the NPC doesn't appear to have changed.
I am Srime
Slime Knight
Send private message
 
 PostWed Jul 03, 2013 5:07 am
Send private message Reply with quote
These are both pretty easy to use. Thanks.
Display posts from previous: