BrittzXD / silvertree

Automatically exported from code.google.com/p/silvertree
GNU General Public License v3.0
1 stars 1 forks source link

Suggestion: two kinds of temporary variables #35

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I would find it useful to have two kinds of temporary variables:

1. event-local variables: var.local
These are only defined within a single event.

2. scenario or map-local variables: var.tmp
These will be forgotten on a exiting the map.

Use-case for 2:
- using some variables to synchronize or coordinate events within one
scenario (variables that are essentially reset any time the map is
re-entered), example: the bandits in the fort will notice some party
actions and become more alarmed
- trigger variables that are used to identify the progress of a larger
encounter. example: get today's password of an 'informant' and use that to
pass by the guards.

It would be better IMO not to polute the savefiles too much which such
variables, and exiting the map is in many cases a good automatic "hook" for
resetting such variables.

Original issue reported on code.google.com by Rhuv...@googlemail.com on 18 Oct 2007 at 5:13