How to let an attribute value trigger something

wayer
13 Nov 2011, 12:23
Hi,
I am creating my first adventure so this will be a noob question:

I have created a timer that will increase an integer attribute called "aliens" with +1 after every minute and show it for the user as a status attribute. Exactly as described here: http://quest5.net/wiki/Using_timers_and_turn_scripts

I would like to print a message "Aliens blabla reached 10, you are dead" and finish the game the "aliens" attribute reached 10.

I guess I can create another timer that will trigger after 10 minutes and then print the message and finish the game, but is there a way to let the "aliens" attribute value trigger the print and finish actions instead?

Alex
13 Nov 2011, 16:32
Create a script attribute called "changedaliens" and it will be triggered every time the "aliens" attribute changes.