Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


New Premium Module: Tyrants of the Moonsea! Read More
Attention, new and old users! Please read the new rules of conduct for the forums, and we hope you enjoy your stay!


chimericchimeric Member Posts: 1,163
edited June 2017 in General Modding
Curiously, if this is a creature script, it runs every time a saved game is loaded. In other words, write something with a non-permanent function like a token that would be emptied on reload, and OnCreation() will charge up the function automatically and so, in effect, make it permanent. This is true for override-level scripts, in any event. If you know, then I did not - I thought it was truly one-time.

But since, with tokens, you would first have to set the value of tokens themselves before putting that in any strings - and who would do it? would you alter the override script of the party? and other creatures can't be guaranteed to follow the party around - you can go to baldur.bcs for it:



On reload, this will change the main default tag to another string, if you want someone else to be the hero of the story. SetName() by itself does not change the value of < CHARNAME> . Or you could fill a custom tag this way, and then creatures whose scripts refer to that token will take that input, because their own scripts load after baldur.bcs.

Post edited by chimeric on


  • PaulaMigratePaulaMigrate Member Posts: 1,201
    edited June 2017
    OnCreation() returns true if the script is processed for the first time in a session. The event depends on who owns the scriptt (area, creature, game). For creatures it fires on creature creation or on reload. If you want a one-time event you need to add another local that increments. Hierachy level of the script is of no matter here.

Sign In or Register to comment.