HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Exp reducing aura

03-24-2004, 01:58 AM#1
Guinsoo
Here is what I have written, and the spell doesn't work, at all.
Trigger #1
Event: Unit - A unit learns a skill
Condition: (Learned hero skill) equal to Exp aura
Actions:
If (all conditions are true) then do (Then - actions) else..
If - conditions
Level of Exp aura for (Learning Hero ) equal to 1
Then - actions
set expaura[1] = True
set expaura[2] = False
set expaura[3] = False
set expauraunit = (learning hero)
Else - Actions
do nothing
This is repeated for the other 2 levels of the skill.
The other trigger is:
Events: Time - every 5 seconds of game time
Actions:
If (all conditions are true) then do (then - actions) ...
If - conditions
expaura[1] equal to True
Then - actions
Unit Group - pick every unit in (units within 800 of (Position of expauraunit) matching ((((Owner of (picked unit)) is an enemy of (Owner of expauraunit)) and (((Unit-type of (picked unit)) is a hero) equal to True)
Loop - Actions
Hero - Make (Owner of (picked unit)) heroes gain 10% experience from future kills.
Wait 5.00 gametime seconds
Hero - Make (Owner of (picked unit)) heroes gain 100% experience from future kills.

Hopefully you can see exactly what I did here. It won't work. Can anybody show me why? Thx.
03-25-2004, 02:05 AM#2
sans
Quote:
Originally Posted by Guinsoo
The other trigger is:
Events: Time - every 5 seconds of game time
Actions:
If (all conditions are true) then do (then - actions) ...
If - conditions
expaura[1] equal to True
Then - actions
Unit Group - pick every unit in (units within 800 of (Position of expauraunit) matching ((((Owner of (picked unit)) is an enemy of (Owner of expauraunit)) and (((Unit-type of (picked unit)) is a hero) equal to True)
Loop - Actions
Hero - Make (Owner of (picked unit)) heroes gain 10% experience from future kills.
Wait 5.00 gametime seconds
Hero - Make (Owner of (picked unit)) heroes gain 100% experience from future kills.

I'm still *really* new to this, but from what I understand you gave a condition to the unit picking process, which means you need to use "matching unit" and not "picked unit".

In this:
Unit Group - pick every unit in (units within 800 of (Position of expauraunit) matching ((((Owner of (matching unit)) is an enemy of (Owner of expauraunit)) and (((Unit-type of (matching unit)) is a hero) equal to True)


Try it and get back to me, I'd love to know if i'm getting the hang of this.. =D