The Black Wyrm Lair Forums
The Black Wyrm's Lair Terms of Use Help Search Members Calendar

Welcome Guest ( Log In | Register )

> Two ToB coding questions, P (kickoutfile) and Fate Spirit summoning
Moongaze
post Jul 14 2008, 01:07 PM
Post #1





Forum Member
Posts: 467
Joined: 23-February 05
From: My den




Greets,
I've been modding and I ran into two problems.
The first has to do with the kickout dialogue file (P file). The kicking out works fine in SoA, but in its ToB file (which I adapted), the character gets kicked out, yet doesn't give a reaction + options (such as Minsc: "Boo needs to know. Did you want us to remain with the group?" - choose yes and he joins again, choose no and he leaves). The character is kicked out, doesn't initiate dialogue and when I click on the character, the dreaded "has nothing to say" appears, probably because the kicked-out GLOBALs weren't set. I've been looking through the code, but I've not found anything out of the ordinary myself. Perhaps one of you will see what I have not.

And no, these are not the real dialogues. The mod installed fine and without errors, as well.

CODE
BEGIN MGBGA25P

IF ~Global("MGBGAJoined","LOCALS",1)~ THEN BEGIN MGBGAKickToB
SAY ~(Leave him behind?)~
++ ~(NO!)~ DO ~JoinParty()~ EXIT
++ ~(Leave him behind.)~ GOTO MGBGAKick2ToB
END

IF ~~ THEN BEGIN MGBGAKick2ToB
SAY ~(He leaves you and stays here.)~
IF ~~ THEN DO ~SetGlobal("MGBGAJoined","LOCALS",0)
SetGlobal("MGBGAKickedOut","LOCALS",1)~
EXIT
END



IF ~Global("MGBGAJoined","LOCALS",0)
Global("MGBGAKickedOut","LOCALS",1)~ THEN BEGIN MGBGARejoinToB
SAY ~(Team up?)~
++ ~(Yes, team up.)~ GOTO MGBGARejoin2ToB
++ ~(Leave him be.)~ GOTO MGBGARejoinNotToB
END

IF ~~ THEN BEGIN MGBGARejoin2ToB
SAY ~(He rejoins.)~
IF ~~ THEN DO ~SetGlobal("MGBGAJoined","LOCALS",1)
JoinParty()~ EXIT
END

IF ~~ THEN BEGIN MGBGARejoinNotToB
SAY ~(He stays.)~
IF ~~ THEN EXIT
END



Secondly, I seem to be puzzled as to how the developers and modmakers alike can have their character initiate conversation with the PC directly after being summoned to the pocket plane by the Fate Spirit. I can summon my characters easily, yet they will stand there until I click on them and initiate conversation myself. How can I make it fire automatically after being summoned? Here is what I have in Wikaede Revisited v4.1, which has this problem (and thus, every mod based on it as well):

MGWIKA25.baf
CODE
IF
  Global("MGWikaedeSummoned","GLOBAL",1)
THEN
RESPONSE #100
  StartDialogueNoSet([PC])
  Wait(1)
END


MGWIKA25J (at the bottom of the file, below Volo interjection)
CODE
EXTEND_TOP FATESP 6 #9
IF ~!Dead("Wikaede")
    !InMyArea("Wikaede")
    Global("MGWikaedeSummoned","GLOBAL",0)~
THEN
  REPLY ~Bring me Wikaede, Priest of Helm.~
    DO ~CreateVisualEffect("SPPORTAL",[1999.1218])
     Wait(2)
     CreateCreature("MGWIKA25",[1999.1218],0)
     SetGlobal("MGWikaedeSummoned","GLOBAL",1)~
     GOTO 8
END


CODE
BEGIN MGWIK25

IF ~NumTimesTalkedTo(0)
Global("MGWikaedeSummoned","GLOBAL",1)~ THEN BEGIN MGWikaSummonPP
SAY ~What? It seems I have been summoned to a plane of sorts. What is the reason for your summoning, <CHARNAME>?~
++ ~It's a long story, Wikaede. Regardless, I need your help. ~ GOTO MGWikaSummonPP2
END

IF ~~ THEN BEGIN MGWikaSummonPP2
SAY ~I see. If you require my assistance, you shall have it.~
++ ~Thank you.~ GOTO MGWikaJoinPP
++ ~Could you wait over there, please?~ GOTO MGWikaLeavePP
END

IF ~~ THEN BEGIN MGWikaJoinPP
SAY ~It is my duty and my pleasure.~
IF ~~ THEN DO ~SetGlobal("MGWikaedeJoined","LOCALS",1)JoinParty()~
EXIT
END

IF ~~ THEN BEGIN MGWikaLeavePP
SAY ~It shall be as you say.~
IF ~~ THEN DO ~SetGlobal("MGWikaedeLeavePP","GLOBAL",1)~
EXIT
END

IF ~Global("MGWikaedeLeavePP","GLOBAL",1)~ THEN BEGIN MGWikaPP
SAY ~Am I to travel with you, or is there some other reason for your presence here, <CHARNAME>?~
++ ~There's nothing, Wikaede. I was just checking on you.~ GOTO MGWikaLeavePP2
++ ~Yes, please travel with me.~ GOTO MGWikaJoinPP2
END

IF ~~ THEN BEGIN MGWikaJoinPP2
SAY ~Then I will come along.~
IF ~~ THEN DO ~SetGlobal("MGWikaedeJoined","LOCALS",1)JoinParty()~
EXIT
END

IF ~~ THEN BEGIN MGWikaLeavePP2
SAY ~Ahh. I am doing well. Thank you for your concern. Do not hestitate to ask for my assistance, should you need it.~
IF ~~ THEN EXIT
END


This post has been edited by Moongaze: Jul 14 2008, 01:09 PM


--------------------
-Transition into darkness-
Go to the top of the page
 
Quote Post
 
Start new topic
Replies
Moongaze
post Jul 14 2008, 03:18 PM
Post #2





Forum Member
Posts: 467
Joined: 23-February 05
From: My den




CODE
2DA V1.0
multig
          POST_DIALOG_FILE JOIN_DIALOG_FILE DREAM_SCRIPT_FILE 25POST_DIALOG_FILE 25JOIN_DIALOG_FILE 25DREAM_SCRIPT_FILE   25OVERRIDE_SCRIPT_FILE
AERIE        AERIEP             AERIEJ            AERIED         AERIE25P           AERIE25J              AERIE25D              aeri25    
ANOMEN       ANOMENP            ANOMENJ           ANOMEND        ANOME25P           ANOME25J              ANOME25D              anom25    
CERND        CERNDP             CERNDJ            CERNDD         CERND25P           CERND25J              CERNDD                cern25    
EDWIN        EDWINP             EDWINJ            EDWIND         EDWIN25P           EDWIN25J              EDWIND                edwi25    
HAERDALIS    HAERDAP            HAERDAJ           HAERDAD        HAERD25P           HAERD25J              HAERDAD               haer25    
IMOEN        IMOENP             IMOENJ            IMOEND         IMOENP             IMOENJ                IMOEND                imoe25    
IMOEN2       IMOEN2P            IMOEN2J           IMOEN2D        IMOEN25P           IMOEN25J              IMOEN2D               imoe25    
JAHEIRA      JAHEIRAP           JAHEIRAJ          JAHEIRAD       JAHEI25P           JAHEI25J              JAHEI25D              jahe25  
JAN          JANP               JANJ              JAND           JAN25P             JAN25J                JAND                  jan25      
KELDORN      KELDORP            KELDORJ           KELDORD        KELDO25P           KELDO25J              KELDORD               keld25    
KORGAN       KORGANP            KORGANJ           KORGAND        KORGA25P           KORGA25J              KORGAND               korg25    
MAZZY        MAZZYP             MAZZYJ            MAZZYD         MAZZY25P           MAZZY25J              MAZZYD                mazz25    
MINSC        MINSCP             MINSCJ            MINSCD         MINSC25P           MINSC25J              MINSCD                mins25    
NALIA        NALIAP             NALIAJ            NALIAD         NALIA25P           NALIA25J              NALIAD                nali25    
VALYGAR      VALYGARP           VALYGARJ          VALYGARD       VALYG25P           VALYG25J              VALYGARD              valy25  
VICONIA      VICONIP            VICONIJ           VICOND         VICON25P           VICON25J              VICON25D              vico25    
YOSHIMO      YOSHP              YOSHJ             YOSHD          YOSHP              YOSHJ                 YOSHD                 yosh25      
TTXAN        TTXANP             TTXANJ            TTXAND         TTXANP             TTXANJ                TTXAND                ***    
TTBRAN       TTBRANP            TTBRANJ           TTBRAND        TTBRANP            TTBRANJ               TTBRAND               ***    
TTIMOEN      TTIMOENP           TTIMOENJ          TTIMOEND       TTIMOENP           TTIMOENJ              TTIMOEND              ***  
TTJAHEIR     TTJAHEIP           TTJAHEIJ          TTJAHEID       TTJAHEIP           TTJAHEIJ              TTJAHEID              ***  
TTMINSC      TTMINSCP           TTMINSCJ          TTMINSCD       TTMINSCP           TTMINSCJ              TTMINSCD              ***  
SAREVOK      SAREV25P           SAREV25J          SAREV25D       SAREV25P           SAREV25J              SAREV25D              ***  
IDIOT01      IDIOTP             IDIOTP            ***            IDIOTP             IDIOTP                ***                   ***



CODE
APPEND ~pdialog.2da~
~Krhxyth MGBGAP MGBGAJ MGBGAD MGBGA MGBGA25P MGBGA25J MGBGA25D MGBGA25~
UNLESS ~Krhxyth~

APPEND ~interdia.2da~
~Krhxyth BMGBGA BMGBGA25~
UNLESS ~Krhxyth~


There we go.


--------------------
-Transition into darkness-
Go to the top of the page
 
Quote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:



- Lo-Fi Version Time is now: 29th August 2025 - 10:58 AM