yfoo Posted May 26, 2018 Posted May 26, 2018 (edited) As title states how would I do this. An approach I thought of was to override WalkingEvent's event() and place the appropriate lines to cast a spell before (or after) calling super.execute(). However this casts the spell before or after, not during. I'm pretty sure that I would need either make my own subclass of WalkingEvent or Event to satisfy my requirements, can anyone please confirm this? Edited May 26, 2018 by PayPalMeRSGP
d0zza Posted May 26, 2018 Posted May 26, 2018 A WalkingEvent is continuously running while it's being executed, no other code in your script will be running while it's active. So in this case when you want to cast a spell you need to use setBreakCondition in the WalkingEvent API.
Team Cape Posted May 26, 2018 Posted May 26, 2018 2 hours ago, PayPalMeRSGP said: As title states how would I do this. An approach I thought of was to override WalkingEvent's event() and place the appropriate lines to cast a spell before (or after) calling super.execute(). However this casts the spell before or after, not during. I'm pretty sure that I would need either make my own subclass of WalkingEvent or Event to satisfy my requirements, can anyone please confirm this? why?