• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Aggro system in GUI possible ?

Status
Not open for further replies.
Level 2
Joined
May 5, 2008
Messages
20
I found one aggro system but it was complicated, written in Jass and it involved another system for it to be able to work.
So i tried some stuff on my own (GUI). If someone is interested i can upload the test map.
Is it possible or its dead cause?
(Sorry if I missplaced the forum section.)

EDIT:Uploaded the test map (very simple and general only aggro meter made)
:fp: I dont know how to get real dmg done to a creep so the trigger is using random number between 26-36 <- starting dmg of the hero on the map
 

Attachments

  • Aggro meter.w3x
    32.5 KB · Views: 102
Level 28
Joined
Mar 25, 2008
Messages
2,955
:fp: I dont know how to get real dmg done to a creep so the trigger is using random number between 26-36 <- starting dmg of the hero on the map
Try
  • Events
    • Unit - a unit takes damage
  • Conditions
    • (Unit-type of (Damage source)) Equal to ~hero~
  • Actions
    • Set dmg = Damage taken
Whereas dmg is a real variable in which the taken damage is stored :)
 
Level 2
Joined
May 5, 2008
Messages
20
Try
  • Events
    • Unit - a unit takes damage
  • Conditions
    • (Unit-type of (Damage source)) Equal to ~hero~
  • Actions
    • Set dmg = Damage taken
Whereas dmg is a real variable in which the taken damage is stored :)
Thanks for reply!
It seems i have something wrong.I set variable to Unit and store the attacked unit but i cant use that variable for specific unit event.
  • Aggro management start Copy
    • Events
      • Unit - A unit Is attacked
    • Conditions
    • Actions
      • Set attacked_unit = (Attacked unit)
 

Rui

Rui

Level 41
Joined
Jan 7, 2005
Messages
7,550
lol rui noob you can move it to spells and systems and sticky it because it's useful (especially to RPGs)

PS:why in project recruitment? =)) it doesn't request recruiting
First, you do not disrespect members of the staff, you're not talking to your family, if you haven't realized.
Second, I know how to do my job - that's one of the reasons why I am a moderator and why this is my duty, and not yours.
I do not have to give you satisfactions for my decisions.

Watch your tongue next time.
 
Status
Not open for further replies.
Top