![]() |
The Black Wyrm's Lair Terms of Use |
![]() ![]() ![]() ![]() |
![]() |
![]()
Post
#1
|
|
![]() Master of energies ![]() Council Member Posts: 3325 Joined: 9-July 04 From: Magyarország ![]() |
In my BG1 mod, the party is AR3300. Then as a result of a dialogue, it gets teleported via LeaveAreaLUA to BW0506. (BW0506 isn't an indoor area of AR3300, it has no travel regions at all, by the way.)
There is a battle in BW0506, and you have to kill both main villains to be able to leave the area. When this happens (their Death Variables are one), you can use a wardstone (give it to a guardian), who will teleport you back to AR2300 with LeaveAreaLUA. In AR2300, a cutscene script with a dialogue should start (which is also triggered by Dead() functions, so if you have killed both of the villains). My problem: the script of AR3300 (Beregost) is still running in BW0506 (which is a hall), because AS SOON AS the second villain dies, the cutscene (basically a dialogue) in AR3300 is triggered, of course in a black screen. When it ends, the screen returns to BW0506. (So the wardstone isn't used; the party doesn't have to be teleported to the new area to trigger the cutscene in THAT area). I added BW0506 to mastarea.2da, so its script is running on the top. But AR3300 is also in mastarea.2da, as an area of the original game. This may not be related with the script problem, but I thought it would help (it didn't). What can the problem be? How can I entirely "leave" an area, so its script won't run anymore? I could solve it (I could set a global variable when the wardstone is used, and use this as a trigger for the cutscene), but I want to sort out the original problem; I would like to know how those area scripts work, because it seems I am not familiar with them -------------------- Mental harmony dispels the darkness.
|
|
|
![]() |
![]()
Post
#2
|
|
![]() Master of energies ![]() Council Member Posts: 3325 Joined: 9-July 04 From: Magyarország ![]() |
Another area (BW0502), using the TIS of AR2300, is also in mastarea.2da. There, I haven't got such problems.
I checked the row of BW0506 in mastarea.2da, it has no typos. But the game might still not consider BW0506 as a master area: Having no better idea, I set all outdoor/day&night/WEATHER flags for BW0506. Rain sounds appear, but no graphics. As the winner of the first BWL Technical Contest also pointed out, for weather effects, the area must be in mastarea.2da. BW0502 is also in mastarea.2da, and there the weather HAS effects. Although BW0506 is an indoor area in graphic respect, but if it's in mastarea.2da and all weather/outdoor flags are enabled, the rain should have graphic effects as well, shouldn't it?! -------------------- Mental harmony dispels the darkness.
|
|
|
![]() ![]() |
![]() |
Lo-Fi Version | Time is now: 29th August 2025 - 10:57 AM |