Page 1 of 1
change the Step up a bit
Posted: Tue Oct 22, 2013 1:56 am
by jinsediaoying
make it works like "100% chance give you x% of movement speed bouns for 1 turn"
1. this make it more reliable
2. now it is able to scale with something (maybe dex?)
Re: change the Step up a bit
Posted: Tue Oct 22, 2013 6:18 am
by SageAcrin
Reasonably good idea.
Just make it 100% chance of (TL*200)% movement speed. So 200% at L1, 1000% at L5 like it is now.
Re: change the Step up a bit
Posted: Tue Oct 22, 2013 6:58 am
by jinsediaoying
and Displacement Shield should do the same thing for similar reason
Re: change the Step up a bit
Posted: Tue Oct 22, 2013 1:44 pm
by Doctornull
jinsediaoying wrote:and Displacement Shield should do the same thing for similar reason
Careful, what's the correct behavior if the player and a boss both cast Displacement Shield on each other?
Re: change the Step up a bit
Posted: Tue Oct 22, 2013 9:39 pm
by HousePet
Well obviously both shields are dispelled and both casters go flying.
Re: change the Step up a bit
Posted: Tue Oct 22, 2013 10:15 pm
by jinsediaoying
Doctornull wrote:jinsediaoying wrote:and Displacement Shield should do the same thing for similar reason
Careful, what's the correct behavior if the player and a boss both cast Displacement Shield on each other?
Assume A(ttacker) attacks D(efender) with X amount of damage, while A and D's Displacement Shield factor is a,d respectively.
Assume 0 ? a,d ? 1, and no things such as resistance, damage reduction, etc goes in,
Then the final damage that D will suffer is:
X*(1-d)*[Sum_(n=0 to infinite)((a*d)^n)]
Which converge into X*(1-d)/(1-a*d)
So if both a,d are 50%, then Defender will take 2/3 of the damage, and Attacker takes 1/3 of the damage.
MATHEMATICALLY
Re: change the Step up a bit
Posted: Tue Oct 22, 2013 10:35 pm
by Atarlost
jinsediaoying wrote:Doctornull wrote:jinsediaoying wrote:and Displacement Shield should do the same thing for similar reason
Careful, what's the correct behavior if the player and a boss both cast Displacement Shield on each other?
Assume A(ttacker) attacks D(efender) with X amount of damage, while A and D's Displacement Shield factor is a,d respectively.
Assume 0 ? a,d ? 1, and no things such as resistance, damage reduction, etc goes in,
Then the final damage that D will suffer is:
X*(1-d)*[Sum_(n=0 to infinite)((a*d)^n)]
Which converge into X*(1-d)/(1-a*d)
So if both a,d are 50%, then Defender will take 2/3 of the damage, and Attacker takes 1/3 of the damage.
MATHEMATICALLY
But getting there without iterating through an infinite series until something rounds off to zero requires some special case checking for dueling displacement shields that may not be easy depending on how object oriented the game engine is.
Re: change the Step up a bit
Posted: Tue Oct 22, 2013 10:36 pm
by jinsediaoying
and if both a,b?1, then I think we will get a timespace anomaly...
Re: change the Step up a bit
Posted: Tue Oct 22, 2013 11:31 pm
by Crim, The Red Thunder
Are we sure there isn't some code checking for recursive loops like this already? Seem to recall Turtle addon running up against this with megaturtle vs megaturtle shell reflection effects. Thought it didn't loop infinitely.
Re: change the Step up a bit
Posted: Wed Oct 23, 2013 12:24 am
by Atarlost
Crim, The Red Thunder wrote:Are we sure there isn't some code checking for recursive loops like this already? Seem to recall Turtle addon running up against this with megaturtle vs megaturtle shell reflection effects. Thought it didn't loop infinitely.
It would only loop until one of the damage values rounded off to zero. That would be a long time and a very long time if you're using floats rather than fixed precision, but not infinite.
Re: change the Step up a bit
Posted: Wed Oct 23, 2013 6:31 am
by HousePet
There is a block on reflecting reflected damage anyway.
Re: change the Step up a bit
Posted: Sun Oct 27, 2013 12:31 am
by 0player
Atarlost wrote:Crim, The Red Thunder wrote:Are we sure there isn't some code checking for recursive loops like this already? Seem to recall Turtle addon running up against this with megaturtle vs megaturtle shell reflection effects. Thought it didn't loop infinitely.
It would only loop until one of the damage values rounded off to zero. That would be a long time and a very long time if you're using floats rather than fixed precision, but not infinite.
I would like to point out that shield capacity is limited, too; and that we really should just round all damage to about 2 significant digits.
Having said that, I personally oppose the idea of Displacement Shield being non-chance-based. Dividing damage can have some strange consequences... By the way, if a damtype has a custom projector, how does Displacement Shield behave?
Re: change the Step up a bit
Posted: Sun Oct 27, 2013 6:44 am
by HousePet
I'm guessing it only triggers on the elemental damage types, which only have a damage value.