Larian Banner: Baldur's Gate Patch 9
Previous Thread
Next Thread
Print Thread
#564513 20/03/15 12:14 AM
Joined: Oct 2014
B
Burgee Offline OP
enthusiast
OP Offline
enthusiast
B
Joined: Oct 2014
You might already know this, but I'll post it anyhow. In Larian's combat tutorial, they set a wolf off stage, and had it appear at a trigger.

I just figured out (and maybe im slow) that you can have an off stage character appear at itself. Saves you from placing and naming a trigger. Just place the monster where you want it to spawn, and use CharacterAppearAtCharacter, targeting itself.

Joined: Jun 2013
old hand
Offline
old hand
Joined: Jun 2013
Cool. I'll add another one to the list.

If you add the Greevers_Little_Helpers goal file(or just the code) to your mod there's a handy statement in it called global event memory.

Code
//REGION Global Event Memory
IF
GlobalEventSet(_String)
THEN
DB_GlobalEvent(_String);

IF
GlobalEventCleared(_String)
THEN
NOT DB_GlobalEvent(_String);
//END_REGION


This generates a handy database of your flags; it outputs as DB_GlobalEvent("globaleventname")

I'm using this for implementing choices and consequences in certain areas.

Last edited by SniperHF; 20/03/15 05:38 AM.
Joined: Oct 2014
B
Burgee Offline OP
enthusiast
OP Offline
enthusiast
B
Joined: Oct 2014
Learned a new one:

IF
CharacterIsKilledByCharacter(_Monster, _Player)

does NOT fire if the monster is killed by poison / burning / any other world damage that doesn't come from a direct sword or spell from a player.

This stumped me for f*cking ever. I couldn't figure out why a script was only firing sometimes.

Last edited by Burgee; 25/03/15 01:17 AM.

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.5