I'm not heavily familiar with how the campaign scripts run since I'm still playing and trying to avoid spoiling myself.

But generally something like _God is undefined unless you define it. So you either need to pull that information from a database or from an event.

Example:
IF
GlobalFlagSet("Flag1")
THEN
CharacterDie(_Player,1);

The problem with the above is _Player is undefined. So it has no way to pick which character to kill. Therefore it does nothing and your build fails.


Correct Example:
IF
GlobalFlagSet("Flag1")
AND
DB_IsPlayer(_Player) //this DB contains all players (and companions)
THEN
CharacterDie(_Player,1);

^That will kill your entire party, where the first example will do nothing.

As an example to show you how I mean "_Player" being undefined. you could write the above script as:
Correct Example:
IF
GlobalFlagSet("Flag1")
AND
DB_IsPlayer(_NOTAPLAYERPlayer)
THEN
CharacterDie(_NOTAPLAYERPlayer,1);

Eventhough it's called "_NOTAPLAYER" it's still going to pull the players from the database. _Player or _Anything is entirely abstract and for your benefit.


For how the specifics of that homestead event work, I'd need more information like what file it's in, preferably with a flag/event name I could control+F for.


Last edited by SniperHF; 01/10/17 03:15 AM.