How to 'listen' for events?

Malurth

Member
Say, for example, I wanted to make a script that would unequip Talisman O' Nam and Mega Gem upon beating Dr. Awkward (and requip whatever blah blah). I can do the actual 'take action' part myself, but I don't know how to invoke it on the condition of beating him.

There are a ton of such things I would like to script but I don't know how to listen for events, so to speak. Help?

This is mostly for the relay browser, since I could probably figure it out in-script anyway if I was scripting the whole thing, so my best guess is ima have to do a relay override. But I'd like to hear what options I might have.
 
Last edited:

lostcalpolydude

Developer
Staff member
Code:
if ( get_property( "lastEncounter" ) == "Dr. Awkward" )
in a Post-Adventure script would work for that case. In general, you don't "listen" for events, you set up a script to run every adventure (or whatever makes sense) and have it check whatever is relevant.
 
Top