Skip to content

Tree Of Life Dialog

karnagekarnage Member Posts: 92
edited December 2013 in General Modding
Okay, I've put Vondo aside for the moment; a Paladin is such a strict class in codes of honor, etc. that to code a Paladin and make him act like a Paladin is a task for anyone, especially one of my experience level.

I have coded and implemented a new character, Hugh. He seems to be acting the way I want him to act, replete with dialog, EscapeAreaMove, etc. etc; thanks to you guys' help.

But, there are a couple things every character needs for BGII: Soa .... Tree of Life Script, and script for the battles with Irenicus, both on the tree (after the parasites are killed) and in Hell.

I did some surfing and found a couple examples, but not 100% sure what to make of them.

Here is one:
------------------------------------------------------------------------------------
INTERJECT PLAYER1 33 M#AmberTreeOfLifeRomance2
== PLAYER1 IF ~Global("M#AmberRomanceActive","GLOBAL",2)
Global("M#AmberMatch","GLOBAL",3)~
THEN ~Amber, the wilful tiefling that you encountered in Athkatla, has grown very close with , your ever faithful companion. Her affection for him is obvious, but will that bond be strong enough for Amber to follow you to the desperate battle against Irenicus?~
END
++ ~Are you ready, Amber? I need to be sure that I can trust you to stay by my side.~ EXTERN M#AMBERJ AmberTreeOfLifeD
++ ~You should not be here, Amber. This is not your fight, but mine alone.~ EXTERN M#AMBERJ AmberTreeOfLifeE
++ ~This is too dangerous, Amber. I don't want you risking you newfound happiness with for this.~ EXTERN M#AMBERJ AmberTreeOfLifeI

INTERJECT PLAYER1 33 M#AmberTreeOfLifeFriendship
== PLAYER1 IF ~Global("M#AmberFriend","GLOBAL",1)~
THEN ~Amber, the wilful tiefling you encountered in Athkatla has grown to be your trusted ally and a dear friend. The compassion she has shown has helped you survive the pain and emptiness caused by Irenicus stealing your soul. Together you have seen many battles, but is she willing to follow you now, in the face of almost certain death?~
END
++ ~Are you ready, Amber? I need to be sure that I can trust you to stay by my side.~ EXTERN M#AMBERJ AmberTreeOfLifeG
++ ~You should not be here, Amber. This is not your fight, but mine alone.~ EXTERN M#AMBERJ AmberTreeOfLifeH
++ ~This is too dangerous, I don't want you risking yourself for my sake.~ EXTERN M#AMBERJ AmberTreeOfLifeJ

INTERJECT PLAYER1 33 M#AmberTreeOfLife
== PLAYER1 IF ~!Global("M#AmberFriend","GLOBAL",1)
!Global("M#AmberRomanceActive","GLOBAL",2)~
THEN ~Amber, the wilful tiefling you encountered in Athkatla has earned her place at your side many times over. Together you have seen many battles, but is she willing to follow you now, in the face of almost certain death?~
END
++ ~Are you ready, Amber? I need to be sure that I can trust you to stay by my side.~ EXTERN M#AMBERJ AmberTreeOfLifeA
++ ~You should not be here, Amber. This is not your fight, but mine alone.~ EXTERN M#AMBERJ AmberTreeOfLifeN
++ ~This is too dangerous even for someone as capable as you, Amber.~ EXTERN M#AMBERJ AmberTreeOfLifeK


All of those could use a InParty("m#amber") though you'll probably want the whole big load of checks as well:

See("M#Amber")
!StateCheck("M#Amber",STATE_SLEEPING)
!StateCheck("M#Amber",STATE_HELPLESS)
!StateCheck("M#Amber",STATE_STUNNED)
!StateCheck("M#Amber",STATE_SILENCED)
InParty("m#amber")
!Dead("m#amber")

============= Another ===================

//Tree of Life
INTERJECT PLAYER1 33 GH#I#TreeofLife
== PLAYER1 IF ~IsValidForPartyDialog("G#Harvey")~ THEN ~Harvey, the enigmatic sorceror who travels with you; he is still as much a mystery as the day you first met him. Is he willing to fight and probably die in the coming battle?~
END
++ ~This isn't your fight, Harvey. It's mine. There's no need for you to risk your life...~ EXTERN HARVEYJ 22#RiskLife
++ ~Harvey, you don't have to fight Irenicus if you don't want. He is very powerful. Maybe even more powerful than you...~ EXTERN HARVEYJ 22#MorePowerful
++ ~Irenicus is a powerful mage. I'm going to need a more powerful sorceror to defeat him. You up for it?~ EXTERN HARVEYJ 22#UpForIt

APPEND HARVEYJ
IF ~~ THEN BEGIN 22#RiskLife
SAY ~No , I'm staying. I want to see how tough this bastard really is. And besides could I risk my life even if I wanted to?~ COPY_TRANS PLAYER1 33
END

IF ~~ THEN BEGIN 22#MorePowerful
SAY ~Oh come on! I am so much more powerful that this bastard, and I'm going to prove it. Lead on !~ COPY_TRANS PLAYER1 33
END

IF ~~ THEN BEGIN 22#UpForIt
SAY ~Hell yeah! I'm going to teach this bastard a thing or two about spellcasting. We'll take him down!~ COPY_TRANS PLAYER1 33
END
END

==================== SO, will this work? =========================


//Tree of Life


INTERJECT PLAYER1 33 GH#I#TreeofLife
== PLAYER1 IF ~IsValidForPartyDialog("zkwHugh")~ THEN ~Hugh Smeed, the slow talking, quiet, loyal soldier you found on the streets in the slums of Amn. He quickly vowed to see you through your quest to the end. Maybe he vowed too quickly; through all of your travels Hugh remains a complete stranger.~
END
++ ~Vow or no vow, this isn't your fight, Hugh. It's mine. I hold your vow fulfilled. There's no need for you to risk your life further...~ EXTERN zkwHughJ 22#RiskLife
++ ~Hugh, you don't have to fight Irenicus if you don't want. I release you from your vow. He is very powerful.~ EXTERN zkwhughJ 22#MorePowerful
++ ~Well, Hugh, this is it. You vowed to see my quest through to the end, and the end of the quest lies here. Are you ready?~ EXTERN zkwhughJ 22#UpForIt

APPEND zkwHughJ
IF ~~ THEN BEGIN 22#RiskLife
SAY ~No, huh-uh. Hugh Smeed never backs down from a fight.~ COPY_TRANS PLAYER1 33
END

IF ~~ THEN BEGIN 22#MorePowerful
SAY ~You can't release me from my vow. You didn't give it. Hugh Smeed is ready!~ COPY_TRANS PLAYER1 33
END

IF ~~ THEN BEGIN 22#UpForIt
SAY ~(chuckle) I will smile on his corpse!~ COPY_TRANS PLAYER1 33
END
Sign In or Register to comment.