
Putting it all together
#61
Posted 24 September 2007 - 08:27 PM
This is the added state, to make it easier to find:
IF ~~ THEN BEGIN T1DarRetHelpBye
SAY ~Tempest has to fill in something clever for this state.~
IF ~~ THEN EXIT
END
"Imagination is given to man to console him for what he is not; a sense of humor, for what he is." - Oscar Wilde
berelinde's mods
TolkienAcrossTheWater website
TolkienAcrossTheWater Forum
#62
Posted 24 September 2007 - 08:28 PM
CHAIN
IF ~NumTimesTalkedTo(0) InParty("Aerie") !Dead("Aerie")~ THEN ~T1DAR T1AeriePartyIntro
~Excuse me, but what is another Avariel doing in Athkatla? You don?t appear to be a warrior.~
== ~AERIEJ~ ~Avariel? another Avariel? You know of my people? And there is another in the city? Please, tell me!~
"The righteous need not cower before the drumbeat of human progress. Though the song of yesterday fades into the challenge of tomorrow, God still watches and judges us. Evil lurks in the datalinks as it lurked in the streets of yesterday, but it was never the streets that were evil." - Sister Miriam Godwinson, Sid Meier's Alpha Centauri
#63
Posted 24 September 2007 - 08:29 PM
"Imagination is given to man to console him for what he is not; a sense of humor, for what he is." - Oscar Wilde
berelinde's mods
TolkienAcrossTheWater website
TolkienAcrossTheWater Forum
#64
Posted 24 September 2007 - 08:31 PM
"The righteous need not cower before the drumbeat of human progress. Though the song of yesterday fades into the challenge of tomorrow, God still watches and judges us. Evil lurks in the datalinks as it lurked in the streets of yesterday, but it was never the streets that were evil." - Sister Miriam Godwinson, Sid Meier's Alpha Centauri
#65
Posted 24 September 2007 - 08:34 PM
"Imagination is given to man to console him for what he is not; a sense of humor, for what he is." - Oscar Wilde
berelinde's mods
TolkienAcrossTheWater website
TolkienAcrossTheWater Forum
#66
Posted 24 September 2007 - 08:41 PM
#67
Posted 24 September 2007 - 08:41 PM
IF
Global("T1DarMatch","GLOBAL",1)
OR (3) Global("T1DarRomanceActive","GLOBAL",1) Global("T1DarRomanceActive","GLOBAL",2) Global("T1DarRomanceActive","GLOBAL",4) Global("T1DarRomanceActive","GLOBAL",5)
Global("T1DarLovetalk","GLOBAL",1)
RealGlobalTimerExpired("T1DarRomance","GLOBAL")
!AreaType(DUNGEON)
!StateCheck(Player1,STATE_SLEEPING)
!StateCheck(Player1,STATE_SILENCED)
!StateCheck(Player1,STATE_STUNNED)
InParty(Myself)
See(Player1)
!StateCheck(Myself,STATE_SLEEPING)
!StateCheck(Myself,STATE_SILENCED)
!StateCheck(Myself,STATE_STUNNED)
!Dead(Myself)
CombatCounter(0)
!See([ENEMY])
THEN
RESPONSE #100
IncrementGlobal("T1DarLovetalk","GLOBAL",1)
END
In both of these, Weidu says there are errors at column 130-problem is, there is no column 130 for these lines. It then says:
Type mismatch in "Name" argument of [Dead].
Expecting type "string". Recovering.
And in the second script block, Weidu has a problem with this line:
!StateCheck(Myself,STATE_SILENCED)
It says [Global] not found in ACTION.IDS.
And with that, I'm calling it a night on all this.
"The righteous need not cower before the drumbeat of human progress. Though the song of yesterday fades into the challenge of tomorrow, God still watches and judges us. Evil lurks in the datalinks as it lurked in the streets of yesterday, but it was never the streets that were evil." - Sister Miriam Godwinson, Sid Meier's Alpha Centauri
#68
Posted 24 September 2007 - 08:47 PM
- Liam
Modding Projects
Complete:
Arath NPC - Nephele NPC - Xulaye NPC - Iylos NPC - Ninde NPC - Darian NPC - Yeslick NPC - Adrian NPC - Dace NPC - Valerie NPC - Isra NPC
Viconia Friendship - Mazzy Friendship - Imoen Friendship - Yoshimo Friendship - Sarevok Friendship - Neera Expansion
IEP Extended Banter
Sarevok Romance
Haer'Dalis Romance
In Progress:
Khadion NPC - Delainy NPC - Sarine NPC
#69
Posted 24 September 2007 - 09:54 PM
Kivan returns home, too, but he's still got a P-file. Keep in mind that there are any number of reasons an NPC can be kicked out, and not all of them involve actually being kicked out. The other day, I was playing BG2, and Minsc was petrified by one of the halfling mages in the planar sphere. I happened to have a "stone to flesh" scroll to de-stone him, but he stood there all blue-circled, and gave his rejoining speech when I re-recruited him.
Did you have any plans in case Darian was petrified?
It's also worth noting that his "fine, I'm leaving then" dialogue would have to be in his P-file too, unless you really want him to leave without even saying something. [EDIT]Which I guess you've already figured out, but for anyone else watching and blinking... O.o
Edited by Azkyroth, 24 September 2007 - 09:57 PM.
"Tyranny is a quiet thing at first, a prim and proper lady pursing her lips and shaking her head disapprovingly, asking, well what were you doing (wearing that dress, walking home at that hour, expressing those inappropriate thoughts) anyway? It's subtle and insidious, disguised as reasonable precautions which become more and more oppressive over time, until our lives are defined by the things we must avoid. She's easy enough to agree with, after all, she's only trying to help -- and yet she's one of the most dangerous influences we face, because if she prevails, it puts the raping, robbing, axe-wielding madmen of the world in complete control. Eventually they'll barely need to wield a thing, all they'll have to do is leer menacingly and we fall all over ourselves trying to placate them." -godlizard
#70
Posted 25 September 2007 - 03:29 AM
You don't need a !Dead(Myself), because dead characters don't run script. You don't need !StateCheck(Object,STATE_CHARMED), for the same reason. Yet CD_STATE_NOTVALID conveniently covers both of those conditions.
I strongly recommend swapping out all those state checks for
!StateCheck(Myself,CD_STATE_NOTVALID)
!StateCheck(Player1,CD_STATE_NOTVALID)
You'll have to patch that into the state.ids, so put this at the top of the tp2, right after
BEGIN ~Darian, Talon of Myrrhavin~
APPEND ~state.ids~ ~0x80101FEF CD_STATE_NOTVALID~ UNLESS ~CD_STATE_NOTVALID~
"Imagination is given to man to console him for what he is not; a sense of humor, for what he is." - Oscar Wilde
berelinde's mods
TolkienAcrossTheWater website
TolkienAcrossTheWater Forum
#71
Posted 25 September 2007 - 03:56 AM
OR (3) Global("T1DarRomanceActive","GLOBAL",1) Global("T1DarRomanceActive","GLOBAL",2) Global("T1DarRomanceActive","GLOBAL",4) Global("T1DarRomanceActive","GLOBAL",5)
You have OR(3) with 4 conditions. I'd change that to OR(4).
Edit: for script speed optimization purposes, you might want to move that line further down the script, right before the THEN. With OR() blocks, every condition has to be evaluated before moving on to the next trigger. So it can slow things down marginally. If you have too many instances where OR() blocks run every pass through the script, it will slow things down perceptibly.
Edited by berelinde, 25 September 2007 - 03:58 AM.
"Imagination is given to man to console him for what he is not; a sense of humor, for what he is." - Oscar Wilde
berelinde's mods
TolkienAcrossTheWater website
TolkienAcrossTheWater Forum
#72
Posted 25 September 2007 - 04:08 AM
theacefes: You have to be realistic as well, you can't just be Swedish!
#73
Posted 25 September 2007 - 05:07 AM

Choo, most of Darian's lovetalks are actually part of his friendship as well-the only romance-only dialogues that are reserved specifically for the romance track are a couple of talks at the end and his four floating scenes.
"The righteous need not cower before the drumbeat of human progress. Though the song of yesterday fades into the challenge of tomorrow, God still watches and judges us. Evil lurks in the datalinks as it lurked in the streets of yesterday, but it was never the streets that were evil." - Sister Miriam Godwinson, Sid Meier's Alpha Centauri
#74
Posted 25 September 2007 - 05:14 AM
theacefes: You have to be realistic as well, you can't just be Swedish!
#75
Posted 25 September 2007 - 05:16 AM
"Imagination is given to man to console him for what he is not; a sense of humor, for what he is." - Oscar Wilde
berelinde's mods
TolkienAcrossTheWater website
TolkienAcrossTheWater Forum
#76
Posted 25 September 2007 - 05:39 AM
"The righteous need not cower before the drumbeat of human progress. Though the song of yesterday fades into the challenge of tomorrow, God still watches and judges us. Evil lurks in the datalinks as it lurked in the streets of yesterday, but it was never the streets that were evil." - Sister Miriam Godwinson, Sid Meier's Alpha Centauri
#77
Posted 25 September 2007 - 06:08 AM
CD_STATE_INVALID
CD_STATE_NOTVALID, just in case. And take two lines from BG1 NPC/Romantic Encounters for your .tp2, while you're at it.
IWD NPC, Xan, The Sellswords, Back to Brynnlaw, Assassinations, Dungeon Crawl, Reunion, Branwen, Coran, Tiax, Xan BG1 Friendship
BG1 NPC, Romantic Encounters
#78
Posted 25 September 2007 - 07:20 AM
"The righteous need not cower before the drumbeat of human progress. Though the song of yesterday fades into the challenge of tomorrow, God still watches and judges us. Evil lurks in the datalinks as it lurked in the streets of yesterday, but it was never the streets that were evil." - Sister Miriam Godwinson, Sid Meier's Alpha Centauri
#79
Posted 25 September 2007 - 07:26 AM

IWD NPC, Xan, The Sellswords, Back to Brynnlaw, Assassinations, Dungeon Crawl, Reunion, Branwen, Coran, Tiax, Xan BG1 Friendship
BG1 NPC, Romantic Encounters
#80
Posted 25 September 2007 - 07:35 AM
APPEND ~state.ids~ ~0x80101FEF CD_STATE_NOTVALID~ UNLESS ~CD_STATE_NOTVALID~
That came from BG1 NPC, and it's posted above. He probably already got it.
"Imagination is given to man to console him for what he is not; a sense of humor, for what he is." - Oscar Wilde
berelinde's mods
TolkienAcrossTheWater website
TolkienAcrossTheWater Forum