View previous topic :: View next topic |
Author |
Message |
RelicMaker
Joined: 04 Aug 2013 Posts: 18 Location: Somewhere between Jacobstown and New Canaan
|
Posted: Tue Dec 03, 2013 7:02 am Post subject: Attacks based on stun register |
|
|
I'm trying to make an attack that relies on the stun register for its accuracy; if stun>0 it misses. Is there even a way to do this?
If not, can I make an attack that instead deals extra damage based on the stun register, ie if stun>0 +50% damage? _________________ Trixie is best pony. Tavi is a close second. |
|
Back to top |
|
 |
Bob the Hamster OHRRPGCE Developer

Joined: 22 Feb 2003 Posts: 2526 Location: Hamster Republic (Southern California Enclave)
|
Posted: Tue Dec 03, 2013 7:28 am Post subject: |
|
|
There is an attack bitset "Fail if target is stunned" that should do exactly what you want. |
|
Back to top |
|
 |
RelicMaker
Joined: 04 Aug 2013 Posts: 18 Location: Somewhere between Jacobstown and New Canaan
|
Posted: Tue Dec 03, 2013 8:07 am Post subject: |
|
|
Thats close, but the opposite. I want the attack to fail if the target is NOT stunned. Any way to do that?
I made a typo in my first post, it shoulda read "if stun<1". _________________ Trixie is best pony. Tavi is a close second. |
|
Back to top |
|
 |
Bob the Hamster OHRRPGCE Developer

Joined: 22 Feb 2003 Posts: 2526 Location: Hamster Republic (Southern California Enclave)
|
Posted: Tue Dec 03, 2013 8:26 am Post subject: |
|
|
Oh! I see.
There is no easy way to do this in the stable beelzebufo release, but in the nightly wip builds, Yes, you can do this pretty easily by creating two attacks, and connect them with a conditional "Instead" chain.
Before we proceed, I should explain a bit about how the stun register works.
Every hero and enemy starts with 1000 points in their stun register. Max stun = 1000, and all heroes and enemies start at max.
When an attack stuns a target, it does damage to the stun register. Suppose an attack stuns an enemy for 10 seconds. That means it does 10 damage to the stun register, so after it hits, the target has 990 points in the stun register. As the stun wears off, points will be added to the stun register one at a time until it is back at 1000
So with that knowledge in hand, you can make your two-part chaining attack.
The first part can be an attack that always misses/fails
The second part can be the attack that only works on stunned targets.
In the Chaining menu for the first attack, you can set up an "Instead" chaining rule like the one in this screenshot:
If the target's stun register is < 1000 then the second attack will replace the first attack. |
|
Back to top |
|
 |
RelicMaker
Joined: 04 Aug 2013 Posts: 18 Location: Somewhere between Jacobstown and New Canaan
|
Posted: Tue Dec 03, 2013 1:16 pm Post subject: |
|
|
Oh, ok. I didnt even know that was an option for the chain conditions. Thanks, Bob! _________________ Trixie is best pony. Tavi is a close second. |
|
Back to top |
|
 |
|