Rhonwyn NPC
#21
Posted 03 November 2008 - 06:16 AM
Thanks for the support, people, the mage script is working now fine. (and he's killing my low level test party ^^)
#22
Posted 04 November 2008 - 12:36 AM
#23
Posted 07 November 2008 - 04:24 PM
I'm making some progress with the romance talks btw. I have 10 talks so far, some of them shorter, others longer. Probably I will rewrite the first 1-2 talks, but I'm satisfied with the others so far. I plan to have 20-25, though I don't know the exact numbers yet...
I've also recorded a simple sample of music on guitar, just to show you what kind of mood I'm looking for. It's Rhonwyn's sad theme. It's nothing special, but theme songs are not supposed to be very outstanding anyway, I guess.
Attached Files
Edited by witya, 07 November 2008 - 04:25 PM.
#24
Posted 07 November 2008 - 04:31 PM
Icen
#25
Posted 07 November 2008 - 04:44 PM
#26
Posted 08 November 2008 - 08:40 AM
These two are .bcs extensions that are set up to fire after the party has rested:
/* lullibye talk for male */ IF %BGT_VAR% PartyRested() Global("P#Lulm","GLOBAL",0) Alignment("coran",CHAOTIC_GOOD) Global("P#CoranHasBaby","GLOBAL",1) Gender(Player1,MALE) InParty(Myself) CombatCounter(0) !See([ENEMY]) InMyArea(Player1) !StateCheck(Player1,CD_STATE_NOTVALID) !StateCheck(Myself,CD_STATE_NOTVALID) THEN RESPONSE #100 SetGlobal("P#Lulm","GLOBAL",1) END
/* Dynaheir-Branwen talk 1 */ IF %BGT_VAR% PartyRested() RealGlobalTimerExpired("X#DreamTalk","GLOBAL") InParty("minsc") InParty("branwen") Global("X#DYBR1","GLOBAL",0) InParty(Myself) !StateCheck("branwen",CD_STATE_NOTVALID) !StateCheck(Myself,CD_STATE_NOTVALID) !StateCheck("minsc",CD_STATE_NOTVALID) CombatCounter(0) !See([ENEMY]) THEN RESPONSE #100 SetGlobal("X#DYBR1","GLOBAL",1) END
For the "talks before bed", try using the dreamscript to trigger the talk:
this one is for Dynaheir and PC to have a talk fire outside, looking up at the stars, and the block is added to the dream script which runs at the beginning of resting, rather than the standard .bcs.
IF %BGT_VAR% RealGlobalTimerExpired("X#DYLoveTalkTime","GLOBAL") RealGlobalTimerExpired("X#DreamTalk","GLOBAL") ReputationGT(Player1,11) !Global("X#DynaheirRomanceInactive","GLOBAL",1) Global("X#DynaheirRomanceActive","GLOBAL",2) !Global("X#DynaheirBhaalLoop","GLOBAL",1) AreaType(OUTDOOR) TimeOfDay(NIGHT) Global("X#DYLoveTalk","GLOBAL",35) !AreaType(DUNGEON) InParty(Myself) !StateCheck(Player1,CD_STATE_NOTVALID) !StateCheck(Myself,CD_STATE_NOTVALID) THEN RESPONSE #100 RealSetGlobalTimer("X#DreamTalk","GLOBAL",180) SetGlobal("X#DYLoveTalk","GLOBAL",36) PlaySong(0) PlaySound("dyrom2") StartDialogueNoSet(Player1) END
Edited by cmorgan, 08 November 2008 - 08:41 AM.
#27
Posted 08 November 2008 - 02:49 PM
At some point during most romances, a dialogue fires off the dream script (the one that runs when the player hits the "rest party" button). They talk, the party sleeps (you'll have to include the action RestParty() or the party won't rest, though), and then the party wakes up. The first script blocks to fire will likely not be the ones that have the PartyRested() trigger, so they'll get missed, that pass. If you wanted to ensure that a dialogue fires as soon as the party wakes after a particular night talk, just leave the PartyRested() trigger out. It will still fire as soon as the party wakes.
Sequence:
1 Night talk, ends with RestParty() action
2 party rests
3 morning-after talk fires, no PartyRested() trigger
Edited by berelinde, 08 November 2008 - 02:50 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
#28
Posted 09 November 2008 - 10:17 AM
So, basicly, I fire off the before-rest talk from the dream script. At the end of this talk I set the variable for the next talk and add the RestParty() action. And if I understand it well, I don't have to reset the timer in the talk fired off by the dreamscript, just in the after-rest talk.
#29
Posted 09 November 2008 - 02:22 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
#30
Posted 09 November 2008 - 05:49 PM
Everything is fine, except for one minor flaw. Before the before-rest talk starts, the game pauses. I'm testing this in the Copper Coronet, I talk with Bernard, click on the rest button and the game pauses. When I unpause, the talk actually starts and after that, everything works out just fine.
This is the dreamscripts code:
[codebox]IF
InParty(Myself)
RealGlobalTimerExpired("W1RhonLoveTalksTimer","GLOBAL")
Global("W1RhonLoveTalk","GLOBAL",16)
Global("W1RhonwynMusic","GLOBAL",1)
THEN
RESPONSE #100
SetGlobal("W1RhonLoveTalk","GLOBAL",17)
StartDialogueNoSet(Player1)
END
IF
InParty(Myself)
RealGlobalTimerExpired("W1RhonLoveTalksTimer","GLOBAL")
Global("W1RhonLoveTalk","GLOBAL",16)
Global("W1RhonwynMusic","GLOBAL",0)
THEN
RESPONSE #100
SetGlobal("W1RhonLoveTalk","GLOBAL",20)
RealSetGlobalTimer("W1RhonLoveTalksTimer","GLOBAL",10)
END[/codebox]
Edited by witya, 09 November 2008 - 05:51 PM.
#31
Posted 20 November 2008 - 04:37 AM
After that, I think all I've written will go through a serious quality-checking, as I'm like a dwarf irl, and don't like to give people stuff that I'm not satisfied with. ^^ I'd say, the release of the first version of this mod will be somewhere at the end of 2009 february, or somewhere in march-april.
Edited by witya, 20 November 2008 - 04:39 AM.
#32
Posted 12 December 2008 - 12:07 PM
#33 -Death Folder-
Posted 17 December 2008 - 11:47 PM
#34
Posted 18 December 2008 - 09:30 AM