HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

# of units a spell strikes

09-01-2004, 02:20 AM#1
horusrogue
A Farseer - ChainLightening is cast.
It hits a # of units
I wish to use this # in a mathematical calculation to give a bonus of soem sort to the castor.
And on that note: Cna i increase the # of units it hits at any level of the spell?
09-01-2004, 03:13 PM#2
duckduck
Well... this will take a lot of Chain Lightning Spells.
Just make a bunch of Chain Lightning Spells with different amount of targets.
When you the # is going to change, just remove the chain lightning and add the chain lightning with the correct amount of targets. Make a variable called (whatever you want it to be, in this case it's #_of_units) an integer.


Trigger 1
Code:
Events:
  Every .01 seconds

Actions:
  Move Region 001 to Far Seerer

Trigger 2
Code:
Events:
  Every .01 seconds

Actions:
  Set #_of_units to # of units in region 001.
  If
    Units in #_of_units = (any number)
  Then
    Remove Chain Lightning (1 target) from Far Seerer
    Remove Chain Lightning (2 target) from Far Seerer
    Remove Chain Lightning (4 target) from Far Seerer
    Add Chain Lightning (3 target) to Far Seerer
   Else
    Do nothing
09-01-2004, 03:24 PM#3
Vexorian
Quote:
Originally Posted by duckduck
Well... this will take a lot of Chain Lightning Spells.
Just make a bunch of Chain Lightning Spells with different amount of targets.
When you the # is going to change, just remove the chain lightning and add the chain lightning with the correct amount of targets. Make a variable called (whatever you want it to be, in this case it's #_of_units) an integer.


Trigger 1
Code:
Events:
  Every .01 seconds

Actions:
  Move Region 001 to Far Seerer

Trigger 2
Code:
Events:
  Every .01 seconds

Actions:
  Set #_of_units to # of units in region 001.
  If
    Units in #_of_units = (any number)
  Then
    Remove Chain Lightning (1 target) from Far Seerer
    Remove Chain Lightning (2 target) from Far Seerer
    Remove Chain Lightning (4 target) from Far Seerer
    Add Chain Lightning (3 target) to Far Seerer
   Else
    Do nothing
removing skills resets cooldown, you should just trigger enhance the chain lightning
09-01-2004, 11:25 PM#4
horusrogue
Umm..i am really unsure of what youve posted here...
I asked FOR THE NUMBER of units the chain lightning spell would hit.
Can you explain what your code does?
Quote:
Events:
Every .01 seconds

Actions:
Set #_of_units to # of units in region 001.
If
Units in #_of_units = (any number)
Then
Remove Chain Lightning (1 target) from Far Seerer
Remove Chain Lightning (2 target) from Far Seerer
Remove Chain Lightning (4 target) from Far Seerer
Add Chain Lightning (3 target) to Far Seerer
Else
Do nothing
I understand the region thing, but...what the heck is this stuff above?
Sorry, but triggers are not my thing...