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

Welcome Guest ( Log In | Register )

> Pause between spells!
Sikret
post Jun 24 2006, 01:34 PM
Post #1


The Tactician
Group Icon

Distinguished Developer
Posts: 7794
Joined: 1-December 05




This tutorial contains a false comment inside one of its codes:

QUOTE

This is a technique used to account for the pause between spellcasting. It cuts off spellcasting actions when they cannot be performed,[...] So, you might have the following block:


IF
    !GlobalTimerNotExpired("castnattack","LOCALS")
    HaveSpellRES("spwi999",Myself)
THEN
    RESPONSE #100
        SetGlobalTimer("castnattack","LOCALS",6) // Timer always set to 6, as that is the duration of the pause
        SpellRES("spwi999",LastSeenBy(Myself))
END

Well, this is wrong!

As I have mentioned elsewhere the duration of the pause is NOT 6. I don't know how many modders might have been misled by the fasle comment inside the code which says "as that is the duration of the pause", but it's now perhaps the time to let people know that it is false.

The duration of the pause varies from spell to spell (it's not 6 for every spell). I know the exact duration of the pause for each and every spell, but the easiest way to implement the correct duration of the pause is to use "SpellNoDec" instead of "ForceSpell" as it is implemented in Improved Anvil.


--------------------
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
 
Start new topic
Replies
Creepin
post Jun 27 2006, 06:40 PM
Post #2





Forum Member
Posts: 35
Joined: 21-September 04
From: Moscow




QUOTE(Baronius)
While your comment in question may look just ambigious, and not explicitly false, it's obvious that its general interpretation will be: pause between the end of casting a spell and the start of casting the next one, which will result in malfunctioning for those who interpret it in this way.
Just for the sake of objectivity: long time ago, when I was studying scripting to create my own PC combat scripts, there was 3 major sources of knowledge: Trigger tutorial by Vasqez, Action tutorial by KensaiRui (both are now integrated in IESDP) and Scripting tutorial by Ding0. I couldn't recollect now exact flow of my study, but one thing is certain: I was never, ever, having any problems with interpretation of cast'n'attack concept or mechanics, including delay between spells.

QUOTE(Sikret)
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.
There's no any reasonable need to ensure delay between spells - game engine is perfectly doing this job on it's own. What one really need to ensure is not to waste this delay doing nothing - hence C'n'A routine and timer of 6. As the only reason of timer existance is C'n'A, it makes no sense to discuss timer but not to discuss C'n'A.

This post has been edited by Creepin: Jun 27 2006, 06:47 PM
Go to the top of the page
 
Quote Post

Posts in this topic
Sikret   Pause between spells!   Jun 24 2006, 01:34 PM
Baronius   I'm sure SimDing0 will be happy to correct it,...   Jun 24 2006, 02:23 PM
Creepin   Mmm... I've always thought that 6 (one round) ...   Jun 24 2006, 05:04 PM
Sikret   Perhaps! (It can be tested.) Still the claim...   Jun 24 2006, 05:39 PM
Baronius   While Sim's comment in question may look just ...   Jun 24 2006, 06:00 PM
Sikret   I performed a test (with spells with long spell ca...   Jun 24 2006, 06:20 PM
SimDing0   Thanks for the comments. Yes, the wording is slig...   Jun 26 2006, 05:51 PM
Baronius   I believe that the issue he brought up wasn't ...   Jun 26 2006, 06:52 PM
Andyr   In which case a more explicit topic title (...   Jun 26 2006, 10:42 PM
Sikret   Thank you, Andyr! Since the title of this top...   Jun 27 2006, 12:17 AM
Sikret   I don't think that the wording was unclear. I...   Jun 27 2006, 10:54 AM
SimDing0   You do make me laugh.   Jun 27 2006, 12:25 PM
Sikret   While Sim's comment in question may look just...   Jun 27 2006, 01:17 PM
SimDing0   Had you posted this anywhere else, I'd expla...   Jun 27 2006, 01:45 PM
jastey   Had you posted this anywhere else, I'd explai...   Jun 27 2006, 03:04 PM
SimDing0   Had you posted this anywhere else, I'd explai...   Jun 27 2006, 04:27 PM
Avenger_teambg   You need the timer, because it is a cast n attack ...   Jun 27 2006, 05:10 PM
Sikret   No, it won't! The forthcoming action will...   Jun 27 2006, 05:28 PM
Sikret   No, it won't! The forthcoming action will...   Sep 4 2007, 11:05 AM
Creepin   There's no any reasonable need to ensure delay...   Jun 27 2006, 06:40 PM
Baronius   That wasn't the point. The question (one of th...   Jun 27 2006, 07:13 PM
Sikret   No, if you use "ForceSpell" instead of ...   Jun 27 2006, 08:10 PM
SimDing0   Actually, I said it prevents the creature immedia...   Sep 4 2007, 04:47 PM


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: 29th August 2025 - 06:22 PM