Spell

I need a spell that is casted at NPC's to heal them in a bolt like effect that if it hits an NPC it heals it but if the Player intercepts it it hurts him.

------------------
Thanks,
GrahamVH
graham@warcraftcentral.com
Coldstone Developer (url="http://"http://www.warcraftcentral.net/legends/main.html")http://www.warcraftc...gends/main.html(/url)

Quote

Originally posted by GrahamVH:
I need a spell that is casted at NPC's to heal them in a bolt like effect that if it hits an NPC it heals it but if the Player intercepts it it hurts him.

Not possible to my knowledge. The animation is not sentient in a spell; it only travels between the caster and the target. Anything inbetween is ignored.

You can make 2 spells with the same animation, but they would be targetted differently.

------------------
(url="http://"http://stark.evula.net/pogwalkthrough.htm")PoG Walkthrough and Compendium(/url) | (url="http://"http://stark.evula.net/plugins/dev_tools.htm")PoG Dev Tools(/url) | (url="http://"http://stark.evula.net/plugins/spells_expander.htm")Spells Expander(/url)
(url="http://"http://stark.evula.net")Stark.evula.net(/url) | (url="http://"http://www.evula.net")EVula.net(/url) | (url="http://"http://mail.ambrosiasw.com/mailman/listinfo/coldstone_dev")Coldstone-dev mailing list(/url) | (url="http://"http://ucplugs.evula.net/pog.html")PoG Upcoming Plug-Ins Directory(/url)

Quote

Originally posted by Stark Bledfast:
**Not possible to my knowledge. The animation is not sentient in a spell; it only travels between the caster and the target. Anything inbetween is ignored.

You can make 2 spells with the same animation, but they would be targetted differently.

**

Accually, if the spell targets allies and the player intercepts the spell he will get the benefits and not the NPC it was casted at. Since I don't want it to benefit the player I wanted it to harm him instead.

------------------
Thanks,
GrahamVH
graham@warcraftcentral.com
Coldstone Developer (url="http://"http://www.warcraftcentral.net/legends/main.html")http://www.warcraftc...gends/main.html(/url)

Quote

Originally posted by GrahamVH:
Accually, if the spell targets allies and the player intercepts the spell he will get the benefits and not the NPC it was casted at. Since I don't want it to benefit the player I wanted it to harm him instead.

Yes, I understand perfectly what you want. What I'm saying is that I don't believe that this is possible.

There is no, "did spell hit the player or the NPC" check. Mostly because there are no intercepts in the game. When an NPC attacks the player and another NPC gets in the way, the NPCs do not hit eachother. The attack passes through and hits the player.

Spells are the same way. If an NPC targets another NPC and the player is in the middle, the spell will pass through the player and hit the NPC.

------------------
(url="http://"http://stark.evula.net/pogwalkthrough.htm")PoG Walkthrough and Compendium(/url) | (url="http://"http://stark.evula.net/plugins/dev_tools.htm")PoG Dev Tools(/url) | (url="http://"http://stark.evula.net/plugins/spells_expander.htm")Spells Expander(/url)
(url="http://"http://stark.evula.net")Stark.evula.net(/url) | (url="http://"http://www.evula.net")EVula.net(/url) | (url="http://"http://mail.ambrosiasw.com/mailman/listinfo/coldstone_dev")Coldstone-dev mailing list(/url) | (url="http://"http://ucplugs.evula.net/pog.html")PoG Upcoming Plug-Ins Directory(/url)

intercept no. Spells although they appear to move around the screen, the targetting is absolute.

Since as far as i can tell there is no way or an NPC to target both allies and enemies at random.
So...
Two spells would be the way to go, but the NPC would be a mixed caster/mixed random AI.

this is just technical, but if the NPC has a more than 100% resistance to an element then he would absorb
the fraction over 100. likewise if the player has lower or negative resistance then it would harm.
I say its technical because, far as i know the NPC cannot select characters at random (is the single character targetting option available to NPCs????????)

------------------

... I'm like Imhotep but don't flaunt it.

Quote

Originally posted by ellrx:
**intercept no. Spells although they appear to move around the screen, the targetting is absolute.

Since as far as i can tell there is no way or an NPC to target both allies and enemies at random.
So...
Two spells would be the way to go, but the NPC would be a mixed caster/mixed random AI.

this is just technical, but if the NPC has a more than 100% resistance to an element then he would absorb
the fraction over 100. likewise if the player has lower or negative resistance then it would harm.
I say its technical because, far as i know the NPC cannot select characters at random (is the single character targetting option available to NPCs????????)

**

When I have the spell cast at the NPC's allies it just goes through them.

------------------
Thanks,
GrahamVH
graham@warcraftcentral.com
Coldstone Developer (url="http://"http://www.warcraftcentral.net/legends/main.html")http://www.warcraftc...gends/main.html(/url)

Quote

Originally posted by GrahamVH:
When I have the spell cast at the NPC's allies it just goes through them.

Really? I've never had a problem with NPCs casting spells at other NPCs. They have to all be hostile though(positive stamina). They won't cast at a neutral NPC.

Also, the NPC spell will only affect the NPC that is being targetted. Ie, if there are 3 NPCs all in a row: ( A B C ) and "A" casts a spell at "C," the spell will pass right through "B" and hit/affect "C." There is no way for "B" to intercept the spell.

------------------
(url="http://"http://stark.evula.net/pogwalkthrough.htm")PoG Walkthrough and Compendium(/url) | (url="http://"http://stark.evula.net/plugins/dev_tools.htm")PoG Dev Tools(/url) | (url="http://"http://stark.evula.net/plugins/spells_expander.htm")Spells Expander(/url)
(url="http://"http://stark.evula.net")Stark.evula.net(/url) | (url="http://"http://www.evula.net")EVula.net(/url) | (url="http://"http://mail.ambrosiasw.com/mailman/listinfo/coldstone_dev")Coldstone-dev mailing list(/url) | (url="http://"http://ucplugs.evula.net/pog.html")PoG Upcoming Plug-Ins Directory(/url)

Quote

Originally posted by Stark Bledfast:
**Really? I've never had a problem with NPCs casting spells at other NPCs. They have to all be hostile though(positive stamina). They won't cast at a neutral NPC.

Also, the NPC spell will only affect the NPC that is being targetted. Ie, if there are 3 NPCs all in a row: ( A B C ) and "A" casts a spell at "C," the spell will pass right through "B" and hit/affect "C." There is no way for "B" to intercept the spell.

**

Do I get all of the Strange peoblems?

------------------
Thanks,
GrahamVH
graham@warcraftcentral.com
Coldstone Developer (url="http://"http://www.warcraftcentral.net/legends/main.html")http://www.warcraftc...gends/main.html(/url)

Quote

Originally posted by GrahamVH:
**Do I get all of the Strange peoblems?

**

No way! I have that market cornered! Trust me. Well, at least it seems that way most of the time.

It's the nature of the beast. That's it! We all have problems, that's what this board is for. We come here and ask "my game is doing blah blah balb, is it suposed to so that?" And everyone reads it and someone will say, "Oh I had that problem, what did I do to fix it?" ect, ect. Isn't life great?

------------------
-Albadar-
- - - - - - - - - -
Just trying...