gitjas / brages_redemption Goto Github PK
View Code? Open in Web Editor NEWBrage NPC for Baldur's Gate
Brage NPC for Baldur's Gate
In my game Laryssa, cousin of Brage, spawned double.
I found and killed Borda before I found and rescued Brage.
In may case the culprit was in this section of the area script, which was extended by q13_4800.baf:
/* [Borda is still alive and has to appear a second time.] Laryssa spawns outside temple in Nashkel after Nalin looked at the sword */
IF
Global("C#q13_LarissaSpawn","MYAREA",0)
OR(2)
Global("C#q13Brage_FakeMerchant","GLOBAL",0)
Global("C#q13Brage_FakeMerchant","GLOBAL",1)
!Dead("Brage")
GlobalGT("C#q13Brage_NalinVouch","GLOBAL",1)
OR(2)
GlobalLT("C#Q13_BragesSwordQuest","GLOBAL",4)
Global("C#Q13_BragesSwordQuest","GLOBAL",6)
THEN
RESPONSE #100
SetGlobal("C#q13_LarissaSpawn","MYAREA",1)
CreateCreature("c#q13lar",[2450.1198],13)
IncrementGlobal("C#q13Brage_FakeMerchant","GLOBAL",2)
Continue()
END
/* in case innocence was proven with third letter out of Tazok's tent (PC didn't need Larissa to find the merchant */
IF
Global("C#q13_LarissaSpawn","MYAREA",0)
Dead("BORDA")
!Dead("Brage")
GlobalGT("C#q13Brage_NalinVouch","GLOBAL",1)
OR(2)
GlobalLT("C#Q13_BragesSwordQuest","GLOBAL",4)
Global("C#Q13_BragesSwordQuest","GLOBAL",6)
THEN
RESPONSE #100
SetGlobal("C#q13_LarissaSpawn","MYAREA",1)
CreateCreature("c#q13lar",[2450.1198],13)
Continue()
END
One of the two sections might miss conditions, so that they don't come true at the same evaluation cycle.
If not, the same functionality w/o double spawning can be reached with only one section like this:
/* [Borda is still alive and has to appear a second time.] Laryssa spawns outside temple in Nashkel after Nalin looked at the sword */
/* OR */
/* in case innocence was proven with third letter out of Tazok's tent (PC didn't need Larissa to find the merchant */
IF
Global("C#q13_LarissaSpawn","MYAREA",0)
OR(3)
Dead("BORDA")
Global("C#q13Brage_FakeMerchant","GLOBAL",0)
Global("C#q13Brage_FakeMerchant","GLOBAL",1)
!Dead("Brage")
GlobalGT("C#q13Brage_NalinVouch","GLOBAL",1)
OR(2)
GlobalLT("C#Q13_BragesSwordQuest","GLOBAL",4)
Global("C#Q13_BragesSwordQuest","GLOBAL",6)
THEN
RESPONSE #100
SetGlobal("C#q13_LarissaSpawn","MYAREA",1)
CreateCreature("c#q13lar",[2450.1198],13)
IncrementGlobal("C#q13Brage_FakeMerchant","GLOBAL",2)
Continue()
END
This worked in my game.
However, the esieast solution might be to just remove the continue() in the first section...
does not install:
brage_bg1ub_vial.d missing // in first line
brage_bg1ub.tra should probably brage_bg1ub_vial.tra
potential encoding issues in tra/german (utf8 should be ansi):
brage_ajantis_sod.tra
npcbanter_sod.tra
brage_i4e_sod.tra
BRAGE_bg1npc.TRA
brage_bg1ub(_vial).tra
brage_bgqe_bitchqueen.tra
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.