Jump to content

Seal/Unseal a door


Salk

Recommended Posts

Hello!

How do I go about making a door in a specific area sealed and unsealed? In my specific case, I want to make door0719 and door0719b sealed if the global "Baldurian" is 0 and unseal them if the global is greater (the area is central BG - AR7700 in BGT).

 

Is it enough I set the Lock Difficulty to 100 and then append AR7700.BCS? Would this work?

 

COPY_EXISTING ~AR7700.ARE~ ~override~
 WRITE_LONG 0x9b20 100
 WRITE_LONG 0x9be8 100


<<<<<<<<...\inlined\#gar7700.baf
IF
OnCreation()
Global("Baldurian","GLOBAL",1)
Global("FeloniussOpen","AR7700",0)
THEN
RESPONSE #100
Unlock("DOOR0719")
Unlock("DOOR0719b")
SetGlobal("FeloniussOpen","AR7700",1)
Continue()
END
>>>>>>>>


EXTEND_TOP ~AR7700.BCS~ ~...\inlined\#gar7700.baf~

 

If there is a mistake or space for improvements, I'd like to hear of it.

 

Thanks!

Link to comment

if the global "Baldurian" is 0 and unseal them if the global is greater --- If there is a mistake or space for improvements, I'd like to hear of it.

Well, this:

Global("Baldurian","GLOBAL",1)

 

Should of course be:

GlobalGT("Baldurian","GLOBAL",0)

But you probably knew that. :p

 

Ouh, and why the OnCreation() ? It's not like you need that, there could be bunch of more things going on before your script portion is launched and it might then been too late. Even with the EXTEND_TOP as your mod might not be the last mod to be installed.

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...