![]() |
The Black Wyrm's Lair Terms of Use |
![]() ![]() ![]() ![]() |
![]() |
![]()
Post
#1
|
|
![]() The Tactician ![]() 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. |
|
|
![]() |
![]()
Post
#2
|
|
Forum Member Posts: 1366 Joined: 22-August 04 From: Germany ![]() |
QUOTE(SimDing0 @ Jun 27 2006, 03:45 PM) QUOTE(Sikret @ Jun 27 2006, 01:17 PM) Furthermore, my point about using "SpellNoDec" instead of "ForceSpell" makes that particualr part of his tutorial entirely redundant. The code will not need to include any timer. Had you posted this anywhere else, I'd explain why this is untrue. But this is BlackWyrm, so nobody will be reading. ![]() I'd be happy if you'd explain nontheless. (You could open a new thread in the Quest Pack forum, if you do not want to post here. ![]() And since I posted in this thread anyway: Sikret (and everyone else), I see it as an act of courtesy to contact the author of a tutorial directly instead of pointing out a mistake publically elsewere (starting with "this tutorial contains an error"). As already stated, this thread did not begin as a pure discussion about pause between spells but as a direct critic on a specific tutorial. I assume you'll jump on me for implying that you acted impolite but that's my opinion. |
|
|
![]() ![]() |
![]() |
Lo-Fi Version | Time is now: 29th August 2025 - 06:26 PM |