Skip to content

no skeletons in forest // persistent value error

I tried adding a skeleton to every forest square that could hold more actors (I've since added tons of actor trees, I'll return to skeletons / undead stuff later in the game).

In the skeleton init script I tried to load them ONLY when forestQuests var = 6 & encounterYes = 1, and to auto-trigger a combat encounter when they appeared. The idea was that, after rescuing girl from woods, skeletons start showing up everywhere to block her escape back to town.

However, during next game test I discovered that they loaded when forestQuests var = 0. They showed up on every forest scene, but without triggering the auto-encounter.

I recoded the init script several times and even added an interact debug where the skeleton read out several of the pertinent global variables. To no avail, no matter what I did in the init script the damn things kept popping up (sometimes they waited until encounterYes = 1, but other times not).

Realizing something was broken in a way I could not fix, I used the delete key as a final debug, lol.

As a final note to this, there is a skeleton at the village entrance who only appears when ForestQuests = 6. This has been working fine since early days of the game. That's why I thought it would be fun to have them take over the forest.