How can I make spell that "drains" stamina?

How can I make spell that "drains" stamina?

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

Quote

Originally posted by KJK:
How can I make spell that "drains" stamina?

Set a duration and give it damage in min/max fields.

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

Or for more controlled stamina drain (X stamina/second, as rounds don't translate into seconds nicely) refer to (url="http://"http://stark.evula.net/plugin_faq.htm")Creating a plug-in for Pillars of Garendall: 101(/url) and take a look at (url="http://"http://stark.evula.net/plugin_faq.htm#tiptimer")Creating a Timer(/url)

Stark, I think you have the most visited PoG walkthrough and the most visited Coldstone plugin tutorial, even though you don't link to it anywhere on your site. It must be the quality. It's so good you don't even need to advertise. Good job!

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

Quote

Originally posted by Stark Bledfast:
**Set a duration and give it damage in min/max fields.

**

I mean that when I use spell enemy loses stamina and I get that stamina.

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

That would be tricky... Hmmmm....

Create a spell that has a single target and deals X damage. Then another spell targeting the caster that does -X damage (I don't think you can record the amount of damage dealt...so you need to only have 1 number).
When you cast the first spell, have it link to an event containing the second spell in the "Hit Target" section.

I don't think you can create a spell that, while it lasts, all damage you do is converted into life. It would be cool, but I don't think it is possible.

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

Quote

Originally posted by CI-Ia0s:
Create a spell that has a single target and deals X damage. Then another spell targeting the caster that does -X damage (I don't think you can record the amount of damage dealt...so you need to only have 1 number).
When you cast the first spell, have it link to an event containing the second spell in the "Hit Target" section.

Yep, this is pretty much all you can do; create 2 spells and have the first call the second.

So what will happen is this:

  1. First spell is cast at the target and begins damaging the target
  2. First spell immediately calls the 2nd spell into being(using a Spell Wizard event object from within the "Hit Target" event on the Events tab menu for the 1st spell)
  3. Second spell heals the caster by the same amount that the first spell damaged the target

Keep in mind a few things:

  1. If you want the damage/healing to be the exact same then you will want a constant amount of damage to be done, as opposed to a random number
  2. There should be a duration on the 1st spell, but not the second spell. As the second spell will be cast each time the 1st spell goes off(ie, each time there is damage), you will not want a duration on the 2nd spell else it will be duplicated many, many times.
  3. There is currently a bug in spell casting where multiple spells with durations will goof each other up. Heh.

Good luck.

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

Thanks!

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