View previous topic :: View next topic |
Author |
Message |
xDeyLx Guest
|
Posted: Thu Dec 11, 2014 12:06 pm Post subject: Time limited stat changes |
|
|
Hi again and hope everyone is well.
My game is going well but I have another question I need answered.
I am doing a defensive type character class that is supposed to be more defensive and I needed some kind of spell that enhances is defense for say 10 seconds or 3 turns. Is it possible to do this kind of stuff? If not is there a way that I can limit the usage of said spell for 1 use per battle? Also is there a way for me to make the spell make enemies focus on my character for that duration without battlescripting (which is not implemented yet I think)?
Thank you for your support and it is much appreciated. Have a good wekend all!  |
|
Back to top |
|
 |
Bob the Hamster OHRRPGCE Developer

Joined: 22 Feb 2003 Posts: 2526 Location: Hamster Republic (Southern California Enclave)
|
Posted: Thu Dec 11, 2014 1:59 pm Post subject: |
|
|
Yes, you can do this with a non-blocking attack chain.
The first attack boosts the target's defence. It chains to the second attack using a "Regular" chain with the "Delay doesn't block further actions" bitset turned on.
The second attack removes the defence bonus. It has a long delay. If you want 10 seconds, you should make a delay of about 182 ticks. You can also have a turn-based delay that will be based on how fast the hero takes turns, rather than seconds. |
|
Back to top |
|
 |
TMC On the Verge of Insanity
Joined: 05 Apr 2003 Posts: 3240 Location: Matakana
|
Posted: Fri Dec 12, 2014 5:30 pm Post subject: |
|
|
Note that if you set a delay in ticks then in real time it will actually probably be longer than that, because while other attacks are animating, or pausing menus are active, the delay counter is paused. _________________ "It is so great it is insanely great." |
|
Back to top |
|
 |
Rya.Reisender Snippy

Joined: 18 Jan 2008 Posts: 821
|
Posted: Mon Dec 15, 2014 1:11 am Post subject: |
|
|
Does an active chain prevent from using the skill again? _________________ Snippy:
"curt or sharp, esp. in a condescending way" (Oxford American Dictionary)
"fault-finding, snappish, sharp" (Concise Oxford Dictionary, UK)
1. short-tempered, snappish, 2. unduly brief or curt (Merriam-Webster Dictionary) |
|
Back to top |
|
 |
Bob the Hamster OHRRPGCE Developer

Joined: 22 Feb 2003 Posts: 2526 Location: Hamster Republic (Southern California Enclave)
|
Posted: Mon Dec 15, 2014 7:34 am Post subject: |
|
|
Rya.Reisender wrote: | Does an active chain prevent from using the skill again? |
No, it does not.
You can use tag setting/checking to prevent the defend skill from being used while it is already active, but that only works well if only one hero in the party has the skill. |
|
Back to top |
|
 |
|