Little Help for a Little New Modder
limalama45
Member Posts: 32
Hey
I am in the process of making my first NPC mod that starts in BGEE and goes through into BG2EE (always wanted to do it and finally decided to sit down and start it). I am following a few guides that are really helpful! But I have become a little stuck!
I have made my NPC and he joins the party all fine (bar a few changes that I need to make) no problem and all works as a NPC. Now I want a romance to happen so I have started writing this and done the first dialogue with the script to test if it works. However it seems the first talk triggers, as he will walk towards CHARNAME put no dialogue comes up.
I wondered if someone could take a look at my dialogue and script file for it to see what I am doing wrong?
Any help is much appreciated.
Thanks
I am in the process of making my first NPC mod that starts in BGEE and goes through into BG2EE (always wanted to do it and finally decided to sit down and start it). I am following a few guides that are really helpful! But I have become a little stuck!
I have made my NPC and he joins the party all fine (bar a few changes that I need to make) no problem and all works as a NPC. Now I want a romance to happen so I have started writing this and done the first dialogue with the script to test if it works. However it seems the first talk triggers, as he will walk towards CHARNAME put no dialogue comes up.
I wondered if someone could take a look at my dialogue and script file for it to see what I am doing wrong?
Any help is much appreciated.
Thanks
// 1. Poor Neira
IF ~Global("#LLETRomanceTalks","GLOBAL",1) RealGlobalTimerExpired("#LLETRomanceTalksTimer","GLOBAL")~ ##F1
SAY ~Poor Neira. Such a shame really...~
IF ~~ THEN
REPLY ~You knew my attacker?!~
GOTO LT1.1
END
IF ~~ THEN
BEGIN LT.1.1
SAY ~Oh yes...she was a marvel. A bit of a fantaic but still the way she killed would even put me to shame.~
IF ~~ THEN
REPLY ~So you are in league with those that hunt me?~
GOTO LT1.2
IF ~~ THEN
REPLY ~Well you have obviously beat her on that point now. Being that she is dead.~
GOTO LT1.3
END
IF ~~ THEN
BEGIN LT1.2
SAY ~Well well well... aren't you the clever one. But not so much in league anymore am I see you persuaded me other wise mmmm~
IF ~~ THEN
REPLY ~So who is your former employer?~
GOTO LT1.4
IF ~~ THEN
REPLY ~That I did and more the better for me hey. So what made you change your mind?~
GOTO LT1.5
IF ~~ THEN
REPLY ~You admit it then! I want nothing more to do with you!~
GOTO LT1.6
END
IF ~~ THEN
BEGIN LT1.3
SAY ~Very true . Aren't you the witty one.~
IF ~~ THEN
REPLY ~Yes... so you are in league with those that hunt me then?~
GOTO LT1.2
END
IF ~~ THEN
BEGIN LT1.4
SAY ~Oh , now that be too easy and I don't make things easy. Just know I won't be stabbing you the back yet...~
IF ~~ DO ~SetGlobal("#LLETRomanceTalks","GLOBAL",2) RealSetGlobalTimer("#LLETRomanceTalksTimer","GLOBAL",3600)~ EXIT
END
IF ~~ THEN
BEGIN LT1.5
SAY ~Just be safe in knowing that I changed my mind.~
IF ~~ THEN
REPLY ~If you won't tell me that, at least tell me who your former employer was?~
GOTO LT1.4
END
IF ~~ THEN
BEGIN LT1.6
SAY ~*Sigh* Oh that is such a shame. I guess I will just have to collect my original bounty.~
IF ~~ THEN
DO ~Enemy()~
EXIT
// 2. Next Talk
IF ~Global("#LLETRomanceTalks","GLOBAL",3) RealGlobalTimerExpired("#LLETRomanceTalksTimer","GLOBAL")~ ##F2
SAY ~Blah! Blah Blah!~
IF ~~ DO ~SetGlobal("#LLETRomanceTalks","GLOBAL",4) RealSetGlobalTimer("#LLETRomanceTalksTimer","GLOBAL",3600)~ EXIT
END
IF ~Global("#LLETRomanceTalks","GLOBAL",1) RealGlobalTimerExpired("#LLETRomanceTalksTimer","GLOBAL")~ ##F1
SAY ~Poor Neira. Such a shame really...~
IF ~~ THEN
REPLY ~You knew my attacker?!~
GOTO LT1.1
END
IF ~~ THEN
BEGIN LT.1.1
SAY ~Oh yes...she was a marvel. A bit of a fantaic but still the way she killed would even put me to shame.~
IF ~~ THEN
REPLY ~So you are in league with those that hunt me?~
GOTO LT1.2
IF ~~ THEN
REPLY ~Well you have obviously beat her on that point now. Being that she is dead.~
GOTO LT1.3
END
IF ~~ THEN
BEGIN LT1.2
SAY ~Well well well... aren't you the clever one. But not so much in league anymore am I see you persuaded me other wise mmmm~
IF ~~ THEN
REPLY ~So who is your former employer?~
GOTO LT1.4
IF ~~ THEN
REPLY ~That I did and more the better for me hey. So what made you change your mind?~
GOTO LT1.5
IF ~~ THEN
REPLY ~You admit it then! I want nothing more to do with you!~
GOTO LT1.6
END
IF ~~ THEN
BEGIN LT1.3
SAY ~Very true . Aren't you the witty one.~
IF ~~ THEN
REPLY ~Yes... so you are in league with those that hunt me then?~
GOTO LT1.2
END
IF ~~ THEN
BEGIN LT1.4
SAY ~Oh , now that be too easy and I don't make things easy. Just know I won't be stabbing you the back yet...~
IF ~~ DO ~SetGlobal("#LLETRomanceTalks","GLOBAL",2) RealSetGlobalTimer("#LLETRomanceTalksTimer","GLOBAL",3600)~ EXIT
END
IF ~~ THEN
BEGIN LT1.5
SAY ~Just be safe in knowing that I changed my mind.~
IF ~~ THEN
REPLY ~If you won't tell me that, at least tell me who your former employer was?~
GOTO LT1.4
END
IF ~~ THEN
BEGIN LT1.6
SAY ~*Sigh* Oh that is such a shame. I guess I will just have to collect my original bounty.~
IF ~~ THEN
DO ~Enemy()~
EXIT
// 2. Next Talk
IF ~Global("#LLETRomanceTalks","GLOBAL",3) RealGlobalTimerExpired("#LLETRomanceTalksTimer","GLOBAL")~ ##F2
SAY ~Blah! Blah Blah!~
IF ~~ DO ~SetGlobal("#LLETRomanceTalks","GLOBAL",4) RealSetGlobalTimer("#LLETRomanceTalksTimer","GLOBAL",3600)~ EXIT
END
IF
See([PC])
NumTimesTalkedTo(0)
THEN
RESPONSE #100
Dialogue([PC])
END
IF
Global("#LSpawnLetan", "GLOBAL", 0)
THEN
RESPONSE #100
SetGlobal("#LSpawnLetan", "GLOBAL", 1)
CreateCreature("#LLET", [3326.2528], 14)
Continue()
END
// Dialogues
IF
InParty(Myself)
Global("#LLETRomanceCheck","GLOBAL",0)
Global("#LLETRomance","GLOBAL",0)
Global("#LLETRomanceTalks","GLOBAL",0)
OR(6)
Race(Player1,ELF)
Race(Player1,DWARF)
Race(Player1,HALFLING)
Race(Player1,HALF_ELF)
Race(Player1,HALFORC)
Race(Player1,GNOME)
THEN
RESPONSE #100
RealSetGlobalTimer("#LLETRomanceTalksTimer","GLOBAL",1000)
SetGlobal("#LLETRomanceTalks","GLOBAL",1)
SetGlobal("#LLETRomanceCheck","GLOBAL",1)
SetGlobal("#LLETRomance","GLOBAL",1)
END
IF
InParty(Myself)
Global("#LLETRomanceCheck","GLOBAL",0)
THEN
RESPONSE #100
SetGlobal("#LLETRomanceCheck","GLOBAL",1)
END
IF
InParty(Myself)
See(Player1)
!StateCheck("Letan",CD_STATE_NOTVALID)
!StateCheck(Player1,CD_STATE_NOTVALID)
RealGlobalTimerExpired("#LLETRomanceTalksTimer","GLOBAL")
CombatCounter(0)
!See([ENEMY])
OR(8)
Global("#LLETRomanceTalks","GLOBAL",1)
Global("#LLETRomanceTalks","GLOBAL",3)
Global("#LLETRomanceTalks","GLOBAL",5)
Global("#LLETRomanceTalks","GLOBAL",7)
Global("#LLETRomanceTalks","GLOBAL",9)
Global("#LLETRomanceTalks","GLOBAL",11)
Global("#LLETRomanceTalks","GLOBAL",13)
Global("#LLETRomanceTalks","GLOBAL",15)
THEN
RESPONSE #100
MoveToObject(Player1)
Dialogue(Player1)
END
IF
InParty(Myself)
See(Player1)
RealGlobalTimerExpired("#LLETRomanceTalksTimer","GLOBAL")
OR(5)
Global("#LLETRomanceTalks","GLOBAL",2)
Global("#LLETRomanceTalks","GLOBAL",6)
Global("#LLETRomanceTalks","GLOBAL",8)
Global("#LLETRomanceTalks","GLOBAL",12)
Global("#LLETRomanceTalks","GLOBAL",14)
THEN
RESPONSE #100
IncrementGlobal("#LLETRomanceTalks","GLOBAL",1)
END
See([PC])
NumTimesTalkedTo(0)
THEN
RESPONSE #100
Dialogue([PC])
END
IF
Global("#LSpawnLetan", "GLOBAL", 0)
THEN
RESPONSE #100
SetGlobal("#LSpawnLetan", "GLOBAL", 1)
CreateCreature("#LLET", [3326.2528], 14)
Continue()
END
// Dialogues
IF
InParty(Myself)
Global("#LLETRomanceCheck","GLOBAL",0)
Global("#LLETRomance","GLOBAL",0)
Global("#LLETRomanceTalks","GLOBAL",0)
OR(6)
Race(Player1,ELF)
Race(Player1,DWARF)
Race(Player1,HALFLING)
Race(Player1,HALF_ELF)
Race(Player1,HALFORC)
Race(Player1,GNOME)
THEN
RESPONSE #100
RealSetGlobalTimer("#LLETRomanceTalksTimer","GLOBAL",1000)
SetGlobal("#LLETRomanceTalks","GLOBAL",1)
SetGlobal("#LLETRomanceCheck","GLOBAL",1)
SetGlobal("#LLETRomance","GLOBAL",1)
END
IF
InParty(Myself)
Global("#LLETRomanceCheck","GLOBAL",0)
THEN
RESPONSE #100
SetGlobal("#LLETRomanceCheck","GLOBAL",1)
END
IF
InParty(Myself)
See(Player1)
!StateCheck("Letan",CD_STATE_NOTVALID)
!StateCheck(Player1,CD_STATE_NOTVALID)
RealGlobalTimerExpired("#LLETRomanceTalksTimer","GLOBAL")
CombatCounter(0)
!See([ENEMY])
OR(8)
Global("#LLETRomanceTalks","GLOBAL",1)
Global("#LLETRomanceTalks","GLOBAL",3)
Global("#LLETRomanceTalks","GLOBAL",5)
Global("#LLETRomanceTalks","GLOBAL",7)
Global("#LLETRomanceTalks","GLOBAL",9)
Global("#LLETRomanceTalks","GLOBAL",11)
Global("#LLETRomanceTalks","GLOBAL",13)
Global("#LLETRomanceTalks","GLOBAL",15)
THEN
RESPONSE #100
MoveToObject(Player1)
Dialogue(Player1)
END
IF
InParty(Myself)
See(Player1)
RealGlobalTimerExpired("#LLETRomanceTalksTimer","GLOBAL")
OR(5)
Global("#LLETRomanceTalks","GLOBAL",2)
Global("#LLETRomanceTalks","GLOBAL",6)
Global("#LLETRomanceTalks","GLOBAL",8)
Global("#LLETRomanceTalks","GLOBAL",12)
Global("#LLETRomanceTalks","GLOBAL",14)
THEN
RESPONSE #100
IncrementGlobal("#LLETRomanceTalks","GLOBAL",1)
END
0
Comments