Post reply

The message has the following error or errors that must be corrected before continuing:
Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.
Other options
Shortcuts: ALT+S post or ALT+P preview

Topic summary

Posted by SimDing0
 - September 04, 2007, 04:47:42 PM
Quotei.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.
Posted by Sikret
 - September 04, 2007, 11:05:05 AM
Quote from: Sikret on June 27, 2006, 05:28:26 PM
Quote from: Avenger_teambgYou 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.
Posted by Sikret
 - June 27, 2006, 08:10:19 PM
Quote from: CreepinThere'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.
Posted by Baronius
 - June 27, 2006, 07:13:50 PM
QuoteI 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.
That wasn't the point. The question (one of the questions, actually) was whether it's unclear or explicitly wrong. In my previous post, I pointed out that in case of technical problems, unclear/ambigious descriptions may result in malfunctioning in the practice.

In this concrete case, there won't be any malfunctioning probably, as most modders just copy & paste the code, and this is not a very severe issue anyway.

However, making accurate statements/explanations is a must in technical descriptions. It's a principle, regardless the actual effects in practice. It's okay not to make a big problem from such a minor issue, however, defending it i.e. introducing it as something insignificant is not okay.
Posted by Creepin
 - June 27, 2006, 06:40:11 PM
Quote from: BaroniusWhile 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 from: SikretFurthermore, 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.
Posted by Sikret
 - June 27, 2006, 05:28:26 PM
Quote from: Avenger_teambgYou 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.

The error which I reported from inside the tutorial was also about a false claim about the delay.

PS: Cast and attack can also be performed without the timer, but I'm not going to discuss it here and now, because this thread is about the delay only.
Posted by Avenger_teambg
 - June 27, 2006, 05:10:35 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?
Posted by SimDing0
 - June 27, 2006, 04:27:21 PM
Quote from: jastey
Quote from: SimDing0
Quote from: SikretFurthermore, 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. :))
Okay, sure.

The timer's purpose isn't primarily to ensure that there's a delay when you use ForceSpell(), although it does do this. If you use Spell() without a timer, your creature casts a spell, then immediately tries to cast again. It can't legally do so, so it stands around with the action queued until it can. The timer allows you to track the standing around period, and perform other actions (throwing Melf's Minute Meteors is a classic) inbetween casting, just as the player can do. As such, the timer is similarly useful for SpellNoDec().
Posted by jastey
 - June 27, 2006, 03:04:32 PM
Quote from: SimDing0
Quote from: SikretFurthermore, 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.
Posted by SimDing0
 - June 27, 2006, 01:45:17 PM
Quote from: SikretFurthermore, 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. :)
Posted by Sikret
 - June 27, 2006, 01:17:21 PM
Quote from: Baronius
While Sim's 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.
Yes, the natural interpretation of the phrase "pause between spells" is the period of time during which the caster is not casting (i.e. the time between the end of the first spell and the beginning of the second one). Honestly, I don't see how it can be interpreted in a different way, but even if we agree that the phrase is ambiguous (rather than false), such a highly ambiguous and misleading phrase needs to be edited to avoid confusions. However, it's upto Sim to decide whether to correct and optimize his tutorial or not. His attitude shows that I did the right thing by not wasting my time in another site reporting anything directly to him.

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.
Posted by SimDing0
 - June 27, 2006, 12:25:24 PM
You do make me laugh.
Posted by Sikret
 - June 27, 2006, 10:54:13 AM
Quote from: SimDing0Yes, the wording is slightly unclear.
I don't think that the wording was unclear. It was clear, but plainly false.
Quote
No, I don't think it's an emergency.
It's up to you to decide how urgent is to correct the mistake.
Quote
SpellNoDec shouldn't be overencouraged because it doesn't account for Nishruus draining spells,
I think that "ForceSpell" doesn't account for Nishruus draining spells either. Since I was comparing "SpellNoDec" with "ForceSpell", your comment is off-target. My main point was that if you use "SpellNoDec" instead of "Forcespell" you will not need the timer at all.
Quote
I'm not entirely sure why you elected to discuss the tutorial here. I'm surprised I found this thread, actually. I don't browse here very much.
My intention was not to report anything to *you*. And you don't seem to be willing to correct your mistakes either.
Posted by Sikret
 - June 27, 2006, 12:17:47 AM
Thank you, Andyr!

Since the title of this topic might have caused some confusions, I edited it.

The number of (IE Modding) sites I regularly browse are few. Whenever, I find something interesting or encounter a problem or have a question, I usually send it here to BWL. However, I don't send general topics to my own mods' forums here (hence the analogy of quest pack forum fails).
Posted by Andyr
 - June 26, 2006, 10:42:25 PM
Quote from: BaroniusI believe that the issue he brought up wasn't related to your tutorial only, it was also a matter regarding the pause between spells -- which is something that can be discussed in a technical IE forum.
In which case a more explicit topic title ("Pause between spell casting" or somesuch) would have been more useful than "Misleading tutorial".

Good work on finding that one out, though, Sikret.