GilesSmith
New Member
- Joined
- Jun 2, 2012
- Messages
- 1,564
- Reaction score
- 34
Please can we have a new value added to ZetaDia.Me which plugins can both Get *AND* Set, for "IsTryingToTownPortal".
So when DB runs it's own "safe" portalling behavior tree (which it runs when a routine/profile has a "return to town" call within it), it'll first set "IsTryingToPortal" to true - and only set it to false once the portal has succeeded (ie town has been reached).
But also let us manually set this to true if we want to directly call the UsePower for using the townportal stone, and false again after - this will allow me to make combat replacer make sure you aren't trying to return to town - and if you are - clear any enemies within range and not cast buffs. It will also allow me to make the stash replacer set this value to true when stash replacer finds the backpack full and uses the return power.
Being both settable, and gettable, allows for dynamics between any plugins - from profile plugins that force town-returns, to combat routines, to stash replacer.
Thanks
So when DB runs it's own "safe" portalling behavior tree (which it runs when a routine/profile has a "return to town" call within it), it'll first set "IsTryingToPortal" to true - and only set it to false once the portal has succeeded (ie town has been reached).
But also let us manually set this to true if we want to directly call the UsePower for using the townportal stone, and false again after - this will allow me to make combat replacer make sure you aren't trying to return to town - and if you are - clear any enemies within range and not cast buffs. It will also allow me to make the stash replacer set this value to true when stash replacer finds the backpack full and uses the return power.
Being both settable, and gettable, allows for dynamics between any plugins - from profile plugins that force town-returns, to combat routines, to stash replacer.
Thanks
