Ambrosia Garden Archive
    • Spell-targeting


      Im rather new at this and am trying to create a "chain Lightening" spell in which the spell is cast, does some damg to a target then strikes another enemy from the last enemies position doeing a certain amount/persent less damg and so one for a specified number of jumps. If i can get the basics of this done i want to make a bouncing glaive as a normal missle and a "chain mana burn" spell that acts like the above but removes life based on the targets mana. i.e. a tarfet has 100 mana, 200 health. the spell hits for second time removing 50% mana so he is left with 50 mana, 150 health.
      Any help is apreciated, im still wandering around in Coldstone.

      ------------------
      Humanity will crumble under tides of blood.

    • Quote

      Originally posted by DeathWalker:
      Im rather new at this and am trying to create a "chain Lightening" spell in which the spell is cast, does some damg to a target then strikes another enemy from the last enemies position doeing a certain amount/persent less damg and so one for a specified number of jumps.

      Unfortunately, I don't think this is possible(though if someone can prove me wrong with a working example, it'll be worth karma).

      The reason I don't believe this is possible is the following:

      1. If a player initiates a spell, then all spells connected with it originate from the player. Thus if you cast a spell which hits a target, and then spawn a new spell to hit another target, the new spell will launch from the player and not from the initial target(so you'd get multiple balls of lightning launching from the player, instead of bouncing between enemies).

      2. NPC originating spells can not select a "friendly" target. Ie, your choices for spell targets are: 1 player-selected target(which NPCs always target the player if this is checked), Self(self-explanatory), All enemies(attacks all enemies or, in the case of an NPC using this, the player), All Allies(targets all allies the player, or in the case of the NPC, allies of the NPC). Thus there is no way to target the "next" NPC in the ball of lightnings path without the player clicking on each one(and the ball leaving the player instead of the previous NPC).

      So again, I don't think this is possible. But I'll be real happy if someone proves me wrong as I've contemplated this very thing in the past.

      ------------------
      (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)

    • This is just an idea, but couldnt you attach a hit event to the npc, which replaces it with an npc that attacks its allies? and the new npc could have a weapon which does what you desires, and so on.... I doubt this will work but at least i am trying!

      ------------------
      (url="http://"http://geocities.com/plasticwarz/main.html")http://geocities.com...cwarz/main.html(/url)
      (url="http://"http://www.geocities.com/coldstoneGE/")http://www.geocities.com/coldstoneGE/(/url) <~~ Check out my latest CGE project!!!

    • Quote

      Originally posted by bodadem:
      This is just an idea, but couldnt you attach a hit event to the npc, which replaces it with an npc that attacks its allies?

      An NPC can not attack its allies. It can cast spells against its allies, but as I mentioned the NPC can't pick and choose which ally to cast the spell against. It has to target all allies at the same time, or none at all.

      Also, NPCs don't have a "been hit" event. They have 4 events: Target Reached, Target Proximity, Player, and Death. Since these events are the only ones that save the NPCs coordinates, it is impossible to "swap" NPCs by using a targetted spell that originates from the player. You also can't have a spell that the player casts trigger an NPC to cast a spell.

      Keep coming up with ideas though. Hopefully someone can come up with something that will work. 🙂

      ------------------
      (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)

    • Could you not set it up so that the chain lightnin spell is actually 2 or three spells but with one long animation. I mean once the first spell is cast have it trigger a conditional event that casts the second part of the spell, but with a new animation that starts where the old animation ended, and attacks the next enemy. Of course the enemy's should not be able to move while this is happening because it will mess up the placement of the spell animation.

      Cheers 🙂

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

    • Thank you all for the ideas, I may not be able to get the exact spell I'm looking for but i will keep trying. I may have to settle for a "Froked Lightening" spell tho in which lightening either forks from me or strikes an enemy and then forks out to all surounding enemies.
      Keep it up tho, all of you, this will be great if it works. Its just that things get a bit visually boring with just the usual point and click spells with 1 target and an effect or 2.

      ------------------
      Humanity will crumble under tides of blood.

    • The one that forks out from the target sounds like fun, and could be visually impressive if done properly. I'd cast my vote for that one 🙂 I don't think you can do one that forks out in 2 forks from you... The problem is that it woudl have to hit ALL NPCs in range...

      ------------------
      CI-I@()s
      (url="http://"http://www.evula.org/world-of-cha0s/")The Homepage of Cha0s(/url)