Jump to content

AoE spells vs. STATE_IMPROVEDINVISIBILITY


Luke

Recommended Posts

Shouldn't all AoE spells, say Symbol (any type), Bless, Entangle, Fireball, Web, Grease, Haste, Slow, ... be flagged as BIT24|Can target invisible (SPL header, offset 0x18)? That is to say: shouldn't all those spells that use ability_target=4 (any point within range) and projectile_type=3 (AoE) be flagged as Can target invisible?

Such a change should mean nothing for the player... However, it will allow the AI (in particular script actions "Spell()" / "SpellRES()" / "SpellNoDec()" / "SpellNoDecRES()") to target STATE_IMPROVEDINVISIBILITY creatures as intended... I mean, unlike the player, the AI cannot target a location / point, so it cannot target STATE_IMPROVEDINVISIBILITY creatures with AoE spells (which is unintended...)

Am I missing something...?

Edited by Luke
Link to comment

No, casting a spell via script overrides the spells targeting mode.  If you target a creature, the projectile will track that creature, exploding when it reaches them, rather than exploding at the targeted location.  So if they target you, you would never be able to escape the AoE.

Link to comment
3 minutes ago, kjeron said:

No, casting a spell via script overrides the spells targeting mode.  If you target a creature, the projectile will track that creature, exploding when it reaches them, rather than exploding at the targeted location.  So if they target you, you would never be able to escape the AoE.

OK, but this is true in any case, even if you are not STATE_IMPROVEDINVISIBILITY... Are you saying the AI is not supposed to "track" the Player if he/she is STATE_IMPROVEDINVISIBILITY...? That is to say: since on one hand the Player cannot escape an AoE spell cast by the AI, then on the other hand the AI should not be able target STATE_IMPROVEDINVISIBILITY creatures...?

If that is the case, I wonder if a new family of script actions, say "SpellOffset(O:Target*,P:Offset*), might help...

Link to comment

EEex can already do this:

EEex_LuaAction("EEex_Action_NextSpellToPoint()")
SpellNoDecRES("SPWI304",PartySlot1)  // Fireball

Though a dedicated set of actions that mirror the usual ones might be convenient.

Edited by Bubb
Link to comment

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...