Trying to make an NPC mod with Weidu
elminster
Member, Developer Posts: 16,317
Nothing fancy. At the moment I'm just trying to figure out how to write up the dialogue. If someone could please confirm if this is the right format and make any suggestions I'd appreciate it. In theory this is just the inital meeting dialogue options.
-----------------------------------------------------
BEGIN k9yeorg
IF ~NumTimesTalkedTo(0)~ FirstMeeting
SAY ~ ! why are you pestering me? I do not know you nor frankly do I want to know you. I can smell your weakness from here. ~
IF ~~ THEN REPLY ~I am looking to form a powerful group of the realms best warriors, mages, and rogues. My goals are my own but if you join it I promise riches and infamy. Will you join? ~ + WillYeorgJoin
+ ~Alignment(Player1,MASK_GOOD)~ + ~Look, even the blindest braggart in this room could sense your astuteness with the dark arts. My foster father was just killed protecting me from a party lead by a being of pure evil more powerful than either of us. I need to set aside whatever qualms you have with working with me for the time being in order to help me kill this man. ~ + GoodJoinYeorg
++ ~My apologies, I didn't mean to disturb you. ~ EXIT
END
+ ~~ THEN BEGIN WillYeorgJoin
SAY ~ Hmm…maybe you aren't as weak as I first suspected. You may yet serve my purposes! Very well I will join your party. ~ DO ~ SetGlobal("YeorgJoins","LOCALS",1)
JoinParty()~EXIT
END
+ ~~ THEN BEGIN GoodJoinYeorg
SAY ~ I neither know of this man nor care. You even asking me for help is yet another sign of my nose being right about you. You are a weakling. In any case as long as his eyes are fixed on you they aren't concerned with my activities. So bugger off. ~ EXIT
END
-----------------------------------------------------
BEGIN k9yeorg
IF ~NumTimesTalkedTo(0)~ FirstMeeting
SAY ~ ! why are you pestering me? I do not know you nor frankly do I want to know you. I can smell your weakness from here. ~
IF ~~ THEN REPLY ~I am looking to form a powerful group of the realms best warriors, mages, and rogues. My goals are my own but if you join it I promise riches and infamy. Will you join? ~ + WillYeorgJoin
+ ~Alignment(Player1,MASK_GOOD)~ + ~Look, even the blindest braggart in this room could sense your astuteness with the dark arts. My foster father was just killed protecting me from a party lead by a being of pure evil more powerful than either of us. I need to set aside whatever qualms you have with working with me for the time being in order to help me kill this man. ~ + GoodJoinYeorg
++ ~My apologies, I didn't mean to disturb you. ~ EXIT
END
+ ~~ THEN BEGIN WillYeorgJoin
SAY ~ Hmm…maybe you aren't as weak as I first suspected. You may yet serve my purposes! Very well I will join your party. ~ DO ~ SetGlobal("YeorgJoins","LOCALS",1)
JoinParty()~EXIT
END
+ ~~ THEN BEGIN GoodJoinYeorg
SAY ~ I neither know of this man nor care. You even asking me for help is yet another sign of my nose being right about you. You are a weakling. In any case as long as his eyes are fixed on you they aren't concerned with my activities. So bugger off. ~ EXIT
END
0
Comments
BEGIN k9yeorg IF ~NumTimesTalkedTo(0)~ THEN BEGIN FirstMeeting SAY ~<PRO_SIRMAAM>! why are you pestering me? I do not know you nor frankly do I want to know you. I can smell your weakness from here.~ ++ ~I am looking to form a powerful group of the realms best warriors, mages, and rogues. My goals are my own but if you join it I promise riches and infamy. Will you join?~ + WillYeorgJoin + ~Alignment(Player1,MASK_GOOD)~ + ~Look, even the blindest braggart in this room could sense your astuteness with the dark arts. My foster father was just killed protecting me from a party lead by a being of pure evil more powerful than either of us. I need to set aside whatever qualms you have with working with me for the time being in order to help me kill this man.~ + GoodJoinYeorg ++ ~My apologies, I didn't mean to disturb you.~ EXIT END IF ~~ THEN BEGIN WillYeorgJoin SAY ~Hmm…maybe you aren't as weak as I first suspected. You may yet serve my purposes! Very well I will join your party.~ IF ~~ DO ~SetGlobal("YeorgJoins","LOCALS",1) JoinParty()~ EXIT END IF ~~ THEN BEGIN GoodJoinYeorg SAY ~I neither know of this man nor care. You even asking me for help is yet another sign of my nose being right about you. You are a weakling. In any case as long as his eyes are fixed on you they aren't concerned with my activities. So bugger off.~ IF ~~ EXIT END
In any case I've examined the changes you made. Thanks for the help.
For example, I need a conjurer.
what's the correct one?
Kit(Player1,MAGESCHOOL_CONJURER) Kit(Player1,0x0080) Kit(Player1,0080)
my dialogue check looks like this
IF ~Kit(player1,0080)~ THEN REPLY @121
but it's not working now. Thanks for your help
fixed now