Original Post
I''m starting to design my scripting system (which is not an embedded language) but I need to get a good idea of what it needs to do and what kind of general usage would be common.
Basically I''m trying to compile a big list of possible actions and how they would be done in a scripting system so I can make sure i''ve covered everything. So far I''ve got:
Triggers:
Player enters area
Player leaves area
Player talks/performs action
Player dies
Timer
Object visible
Object destroyed/dies
Item pickup
Item drop
Item in area
Item removed from area
Actions:
Player death
Player gains item/stat up
Object death
Level complete/fail
Door opens/closes, Lift starts/stops, Light on/off etc. (physical stuff)
NPC talk/performs action
Item spawn
Item destroy
Other trigers armed/disarmed
Processing:
Simple boolean logic, AND, OR, NOT, XOR
Conditionals
Arithmatic + - * /
Anyone anything else to add? I''m trying to think of a good way to manage event passing between triggers, processing and actions. At first it appears that you can get away with simple on/off boolean messages, but that shorts out more interesting behaviour like adjusting NPC reations depending on previous behaviour (ie analog scales).
[S-Type] [V-Script]