Page 1 of 1

(done) Hooks (new events)

Posted: Thu Jun 05, 2008 10:43 pm
by Sophia
At it stands, wading though the base code is a bit of a mess, trying to find certain key events in order to override them. I'm going to separate some of these out into another file, and call them "hooks". These will be separate small functions that can be expanded upon instead of having to override big, complex functions.

These are not events called by the engine, but instead, game events that the base code takes care of. Here's a list of some so far, please add any along the same lines you think would be good--

:arrow: door_hits_party
:arrow: door_hits_monster
:arrow: monster_takes_damage
:arrow: party_falls_down
:arrow: party_climbs_up

Posted: Fri Jun 06, 2008 8:11 am
by ian_scho
When I override an event in DSB, I always write the name down in startup.lua and add it to my list. That way, when you announce a new version, I can easily ignore most of the changes that you do rather than having to compare each one line by line.

Posted: Fri Jun 06, 2008 4:31 pm
by Parallax
Here are a few I'd really like.
:arrow: party goes to sleep
:arrow: party wakes up
:arrow: game gets saved
:arrow: game gets loaded
I may add more as I think about them. :)

Posted: Mon Jun 09, 2008 5:54 am
by Sophia
Those are more game engine things but I'll make sys_ functions for them. :)