The Black Wyrm Lair Forums
The Black Wyrm's Lair Terms of Use Help Search Members Calendar

Welcome Guest ( Log In | Register )

2 Pages V  < 1 2  
Reply to this topicStart new topic
> Pause between spells!
Sikret
post Jun 27 2006, 08:10 PM
Post #21


The Tactician
Group Icon

Distinguished Developer
Posts: 7793
Joined: 1-December 05




QUOTE(Creepin @ Jun 27 2006, 10:10 PM)
There's no any reasonable need to ensure delay between spells - game engine is perfectly doing this job on it's own.

No, if you use "ForceSpell" instead of "SpellNoDec" the game's engine will not ensure the delay. If "ForceSpell" is used the timer is needed to ensure the delay, because without it the caster will cast in improved alacrity.

The point is that people used to think that when the spell is not memorized by the spellcaster, they needed to use "forceSpell" action and consequently, it is natural that they need the timer to ensure the delay.

However, my point was that you can use"SpellNoDec" even when the spell is not memorized and "SpellNoDec" doesn't need the timer to ensure the delay.

The error in the tutorial in question was not about the code itself, but about a false comment inside the code. I don't think that the comment is ambiguous or unclear. It's plainly false.


--------------------
Improved Anvil




Cheating is not confined to using external software or the console commands. Abusing the flaws and limitations of the game engine to do something that a human Dungeon Master would not accept or allow is cheating.
Go to the top of the page
 
Quote Post
Sikret
post Sep 4 2007, 11:05 AM
Post #22


The Tactician
Group Icon

Distinguished Developer
Posts: 7793
Joined: 1-December 05




QUOTE(Sikret @ Jun 27 2006, 09:58 PM) *
QUOTE(Avenger_teambg @ Jun 27 2006, 08:40 PM)
You need the timer, because it is a cast n attack stuff. If i recall correctly SpellCastNoDec has time, if you don't have a delay, the forthcoming attack will break it, no?

No, it won't! The forthcoming action will not start till the spell is finished.

Furthermore, I didn't start this topic to discuss "cast and attack". It was about the delay between spells and I informed everyone that they can use "SpellNoDec" without any need to a timer if they want to ensure the delay between spells.


Since SimDing has recently linked to this post (from another forum), I need to clarify a point:

The timers he refers to exist in IA's scripts but not for the reason he said and had in mind (i.e. not because the action will be interrupted by the forthcoming atatck and not because ensuring the pause between spells as SpellNoDec does take care of it).

The timer does something quite different. Without the timer the creature running the script will pick his target for the next action prematurely. For example, he will cast his first spell and will immediately pick his target for his second spell even though he can't yet cast it (for the pause). Consequently, if this newly and prematurely picked taregt becomes invisible during the pause, the creature will lose his target for the spell. The timer is there to ensure that the creature will not try to pick his next spell's target before its due time.


--------------------
Improved Anvil




Cheating is not confined to using external software or the console commands. Abusing the flaws and limitations of the game engine to do something that a human Dungeon Master would not accept or allow is cheating.
Go to the top of the page
 
Quote Post
SimDing0
post Sep 4 2007, 04:47 PM
Post #23





Forum Member
Posts: 106
Joined: 14-August 04




QUOTE
i.e. not because the action will be interrupted by the forthcoming atatck

Actually, I said it prevents the creature immediately queuing the next action. Subtle difference. The timer's there for the reason I said.
Go to the top of the page
 
Quote Post

2 Pages V  < 1 2
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:



- Lo-Fi Version Time is now: 20th April 2025 - 06:57 PM