HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

How would you...

11-05-2003, 12:45 AM#1
sc_freek
...kill a random unit in a group except heros and would kill more units per level?
11-05-2003, 12:47 AM#2
Capn_Sniffies
Triggers.

Lol, explore a little. I would think about it but I'm kinda busy.
11-05-2003, 01:05 AM#3
SourGummiWorm
then don't reply....

Do you mean more units per level fo the hero or level of the game or what?

anyways say n is the said level...


if x is less than n (add a random unit from unitgroup whatver to unit group kill and set x=x+1 and run this trigger) else set x=0
11-05-2003, 01:19 AM#4
Dragon
Something like:

Triggar 1:

E: Hero learns a spell
C: Spell equal to (your spell here)
A: Set DeathSpell +1

Triggar 2:
E: Hero casts a spell
C: Spell Equal to (your spell here)
C: DeathSpell equal to 1
A: Kill (x) units in targeted area (or whatever)

Triggar 3:
E: Hero casts a spell
C: Spell equal to (your spell here)
C: DeathSpell equal to 2
A: Kill (x) units in targeted area

Just keep repeating that for each level of the spell.
11-05-2003, 01:52 AM#5
Biflspud
You do realize that the Kill Unit trigger doesn't give anybody experience, right? They just drop dead, but the experience floats away, never to be seen again.
11-05-2003, 02:28 AM#6
SourGummiWorm
ah, I didn't understand the question, you meant as a spell level.. yeah that would work what perosnthing has... and you can give experience to the casting hero based on the point value of each unit killed... you'll just have to add that to your trigger but it'll work out
11-05-2003, 03:00 AM#7
sc_freek
ty all
just one problem, what kind of variable would "deathspell" be?

Bifspud: yes, I do know that
11-05-2003, 03:03 AM#8
SourGummiWorm
the way he set it up an integer...

edit:

the action in triggar 1 would be:
set deathspell = deathspell+1 where deathspell has an initial value of 0
11-05-2003, 03:05 AM#9
sc_freek
I see:////
11-05-2003, 03:07 AM#10
SourGummiWorm
you could narrow down to 2 triggers... make the number of units a function of the level of the spell...

if level 1 killed 2, level 2 killed 4, level 3 killed 6, then do

kill(deathspell*2) units...

or if you wanted it to increase more you could square it

kill(deathspell*deathspell +3)

so it would kill 4, then 7, then 12....

just an idea... I'm into optimizing things