Jump to content


Photo

Yet more "can't get things to work" whinings!


  • Please log in to reply
2 replies to this topic

#1 Sir Kalthorine

Sir Kalthorine

    Order of Radiant Ugliness

  • Modder
  • 2188 posts

Posted 19 November 2002 - 02:00 PM

Yup, its me AGAIN!! ;D

Just one major bashing-head-against-wall moment this time, plus a couple of minor queries:

...................................................................

MAJOR ISSUE (to little me, anyway!)

In the Chrysta.CRE file present in the override directory immediately before she joins the party, the following variables are set:

Override script.......CHJOIN.BCS
Class script............None
Race script.............None
General script........None
Default script.........None
...
Dialog....................CHRYSTA.DLG

Her joining the party is controlled by the CHJOIN.BCS script, which begins with:
IF
    See([PC])
    Range(Nearest([PC]),10)
    Global("ChrystaSpoken","GLOBAL",0) 
THEN
    RESPONSE#100
        StartDialogueNoSet(Nearest([PC]))
        SetGlobal("ChrystaSpoken","GLOBAL",1) 
        ApplySpellRES("SPTITLE",Myself)
        ApplySpellRES("SPCHRini",Myself)
        ChangeAIScript("Chrysta",6)
        SetDialog("Chrysta")
END

As I understand it, this should set the "GENERAL" script to CHRYSTA.BCS (GENERAL script having the ID 6 from the SCRLEVEL.IDS file) and the dialog to CHRYSTA.DLG. And yet, when I examine her entries as an NPC for a savegame AFTER joining, I find:

Override script......CHJOIN.BCS
Class script...........DEFAULT.BCS
Race script............None
General script.......None
Default script........DPLAYER3.BCS
...
Dialog...................MULTIG.DLG

Does anyone have any idea what I am doing wrong THIS time? :-\

.....................................................

MINOR ISSUES
  • The Chrysta.CRE file, before it is installed using a WeiDU .tp2 file "COPY" command, has death variable set to "chrysta". As soon as it is copied over to the override file it becomes "none". Where has it gone? ???
  • And what IS so important about this death variable thingy anyway? I have read in a number of NPC-making tutorials how it must be set and get the feeling it is something pretty important - but I can't find anywhere that explains to me what it actually is or what its role is in the game or why it is so important? Anyone care to help me out here?

KACH_TS.jpg Chrysta... could helping her to uncover her past threaten your own future?

"Pity the land in need of Heroes."- Bertolt Brecht
"A little madness, now and then, is relished by the wisest men." - Willy Wonka


#2 -Gebhard Blucher-

-Gebhard Blucher-
  • Guest

Posted 28 November 2002 - 08:44 PM

Have you tried adding these actions:
ChangeAIScript("Chrysta",6)
SetDialog("Chrysta")
...to the .dlg upon joining?

Also, and it really shouldn't matter, but I've always used...
ChangeAIScript("BlahBlah",GENERAL)
...and not the number value. (Though, like I said, it really shouldn't matter, but it might be worth a shot.)

Another way would be to change script and default dlg immediately /after/ joining the party.

Something about having custom NPCs gaining 'MultiG.dlg' sounds familiar, but I can't remember exactly what...

#3 Dyara

Dyara
  • Member
  • 262 posts

Posted 28 November 2002 - 11:22 PM

Something about having custom NPCs gaining 'MultiG.dlg' sounds familiar, but I can't remember exactly what...

Itīs the 'Export Allowed' flag. Remove it and everything should work fine.