Jump to content


Photo

No otho at Thunder hammer


  • Please log in to reply
6 replies to this topic

#1 mildImp

mildImp
  • Member
  • 242 posts

Posted 05 November 2004 - 04:11 PM

So I got the neckless and returned it to the elf at the juggler. He gave me the letter and told me to go see Otho at the Thunder Hammer Smithy. But, no Otho to be found.

I checked the area script, heres what I have:

IF
GlobalGT("Chapter","GLOBAL",4)
Global("OthoSpawn","GLOBAL",0)
THEN
RESPONSE #100
CreateCreature("DSOTHO",[493.279],0) // Otho Truehammer
SetGlobal("OthoSpawn","GLOBAL",1)
END

IF
Global("FindTearlac","GLOBAL",1)
Global("OthoSpawn","GLOBAL",2)
THEN
RESPONSE #100
CreateCreature("DSOTHO",[373.279],0) // Otho Truehammer
SetGlobal("OthoSpawn","GLOBAL",3)
END


The Chapter global for my game is set to "6", but I have no OthoSpawn global set. Do globals work like local or area variables in that they are initialized to 0 if they do not exist? Anyway I did text searches on BCS and DLG files and could not find any place where this global is set.

[EDIT]
I used Clua to set the OthoSpawn global and varified that it was set to 0, but still no Otho when I enter AR6701. I can clua otho in with out a problem, but can't explain why the script doesnt work.

Edited by mildImp, 05 November 2004 - 04:54 PM.


#2 mildImp

mildImp
  • Member
  • 242 posts

Posted 05 November 2004 - 08:29 PM

I clua'd in otho to continue. Got the quest of the forest dragon and went to Nashkel. A boy approached me and told me that someone was in the Nashkel Inn that wanted to talk to me. However, when I enter, theres no one there.

Here is my script for 3701:

IF
Global("FindRelic","GLOBAL",1)
Global("JeremySpawn","GLOBAL",0)
Global("DragonDead","GLOBAL",0)
!Exists("DSJeremy")
!Dead("DSJeremy") // Jeremy
THEN
RESPONSE #100
CreateCreature("DSJEREMY",[406.414],0) // Jeremy
SetGlobal("JeremySpawn","GLOBAL",1)
END

IF
Global("BP_BG1NPC3701","GLOBAL",0)
Global("TalkedBlane","GLOBAL",1)
Global("ConchoSpawn","AR3701",0)
LevelLT(Player1,6)
THEN
RESPONSE #100
SetGlobal("ConchoSpawn","AR3701",1)
SetGlobal("BP_BG1NPC3701","GLOBAL",1)
CreateCreature("DSConch5",[741.304],0) // Conchobhair Strongblade
END

IF
Global("BP_BG1NPC3701","GLOBAL",0)
Global("TalkedBlane","GLOBAL",1)
Global("DSConchoSpawn","AR3701",0)
LevelGT(Player1,5)
THEN
RESPONSE #100
SetGlobal("DSConchoSpawn","AR3701",1)
SetGlobal("BP_BG1NPC3701","GLOBAL",1)
CreateCreature("DSConch7",[741.304],0) // Conchobhair Strongblade
END

As far as I can tell the last condition should evaluate true and DSConch7 should be spawned. The TalkedBlane global is set to 1, and BP_BG1NPC3701 and DSConchoSpawn do not exist when queried from the clua console in AR3701.

Could this be an ordering issue in the conditional block or perhaps the way globals vs locals work? I have to believe that the non-spawn of otho and concho have something in common.

Edited by mildImp, 05 November 2004 - 10:28 PM.


#3 mildImp

mildImp
  • Member
  • 242 posts

Posted 06 November 2004 - 05:52 AM

I think I know whats going on here. It relates back to comments made in the pinned "Links" thread about .are files that were not linking to their area scripts in the last revision. What I didnt appriciate until now was the linkage between previously visited areas and the Baldur.sav file. Going to do some more testing, but think I get it now. <_<

BTW, any suggestions on the easiest way to update the baldur.sav with the updates in the last revision, with respect to script linkages?

#4 Sir BillyBob

Sir BillyBob
  • Modder
  • 5315 posts

Posted 06 November 2004 - 08:58 AM

I assume that you can delete an ARE file out of the SAV file. Not sure though, I haven't ever tried it. If that works, you should be able to test all of those areas again.

The only bug still with the inn in Nashkell is that Concho will show up and stay there. In one game, I talked to Jeremy, walked out the door, killed the dragon, and when I came back, Concho wanted to join me to kill the dragon. So I need to remove him if the dragon is already gone.

Tired of Bhaal? Try some classics mods instead:
Classic Adventures
Official Classic Adventures Website


#5 mildImp

mildImp
  • Member
  • 242 posts

Posted 06 November 2004 - 09:46 AM

OK, so that was the issue. I added the script reference to the area in my baldur.sav and shazam....otho. So here is my next question Billy Bob, do you have any idea which areas you fixed this type of problem on? And if so, can you give me a list? :D

No...seriously, can you?

#6 Sir BillyBob

Sir BillyBob
  • Modder
  • 5315 posts

Posted 06 November 2004 - 09:53 AM

I don't remember them all but, it should be:

AR3701
AR3704
AR3705
AR4403
AR4405
AR6701
AR6704
AR6707

The rest I think are just scripts to add items to containers. An easy way to see if your game is setup correctly is to look in the DSotSC\BAF\Area folder and match those BCS files with their areas (using DLTCEP or NI). If an area still doesn't show an area script assigned to it, change that ARE file to point to the correct script.

Tired of Bhaal? Try some classics mods instead:
Classic Adventures
Official Classic Adventures Website


#7 mildImp

mildImp
  • Member
  • 242 posts

Posted 06 November 2004 - 10:55 AM

Thanks....im back on track. :)