zarqon
Well-known member
As mentioned in the BatBrain thread, I haven't been able to figure out how to detect in a particular script instance whether or not I am in the same combat as the previous instance. Setting a flag that is a combination of the monster you are facing and your total turncount is what BatBrain is currently using, but this can be defeated by faxputtying and even free runaways, leading to confusion in events tracking and false assumptions that the combat is already over.
So I would like to request that mafia, which keeps running for each entire combat (unlike a combat script, which could be called at any point during the fight), set a flag when combat begins. A combat script could then check that flag when it runs to detect whether or not it is in the same fight.
This is kind of a niche request, as presently I don't know of any other scripts that would benefit from this flag, so I'd like to request something I believe to be fairly simple: a property, perhaps called lastCombatStarted, which is set with a timestamp whenever a fight starts.
This feature would allow me to make some fairly sweeping speed improvements to BatBrain, as well as solve combat event tracking problems that occur when BatBrain gets confused during things like faxputtying.
Some users may also like to see this information in their session logs, e.g.
[1234] The Castle in the Clouds in the Sky (Top Floor)
Encounter: Goth Giant
Time: 11:59:45:654am +900
Round 0: zarqon wins initiative!
So I would like to request that mafia, which keeps running for each entire combat (unlike a combat script, which could be called at any point during the fight), set a flag when combat begins. A combat script could then check that flag when it runs to detect whether or not it is in the same fight.
This is kind of a niche request, as presently I don't know of any other scripts that would benefit from this flag, so I'd like to request something I believe to be fairly simple: a property, perhaps called lastCombatStarted, which is set with a timestamp whenever a fight starts.
This feature would allow me to make some fairly sweeping speed improvements to BatBrain, as well as solve combat event tracking problems that occur when BatBrain gets confused during things like faxputtying.
Some users may also like to see this information in their session logs, e.g.
[1234] The Castle in the Clouds in the Sky (Top Floor)
Encounter: Goth Giant
Time: 11:59:45:654am +900
Round 0: zarqon wins initiative!