Skip to content

to do: lumberjack chops trees

As the game progresses, lumberjack in forest chops down trees.

There are a finite number of choppable trees in the lumberjack camp. The lumberjack starts at a certain one at beginning of game, as game progresses we want him to chop a path that will open path to a new scene / new part of forest.

Simplest way to do this is to add a counter to the lumberjack init script and store to local variable. when counter reaches 5 (or 10, 10 is probably better), current tree is chopped and he moves on to the next. Will need to add a global var to tick off trees (1 = first tree down, 2 = second tree down, etc) so the tree init scripts will hide tree at a certain number = or >).

I'm setting aside global var 81 as the lumberjackTreeCounter.

After 3 trees, a path has been cleared to a new area of the forest and will trigger a new quest. Lumberjack should either move back to original position, or maybe be captured / killed at start of new quest.