ID:163711
 
I made where a player talks to a certain NPC, the verb, Talk, would disappear, but I want it gone forever (not just until the world ends, for life). How do I do that?
*off the topic*
um can u tell me how to make an NPC talk?
DadGun wrote:
I made where a player talks to a certain NPC, the verb, Talk, would disappear, but I want it gone forever (not just until the world ends, for life). How do I do that?

you could use a var have the verb check if the var is 1 or 0, if its 1 hide the verb you might want to disable the verb altogether, if 0 show verb, also have to make the var save in the users save file and load when they come back on.
In response to Dimone Jr
Dimone Jr wrote:
*off the topic*
um can u tell me how to make an NPC talk?
mob
NPC
icon='mob.dmi'
icon_state="NPC"
verb
Talk()
set src in oview(1) //if the player is 1 square away show the talk verb
usr<<"Hi [usr] i am an npc" //outputs to the user e.g "Hi Swift i am an npc"
In response to Swift19
Meh, doesn't work.
The best way to accomplish this behavior for NPCs is to just keep the Talk verb around, but don't let the player use it.

mob/var/talked_to_bob=0

npc
parent_type=/obj
bob
verb/talk()
if(!usr.talked_to_bob)
usr.talked_to_bob=1
usr<<"Hi! I'm Bob!"
else usr<<"You already spoke with me! I told you, I'm Bob!"


-- Data