Experience ''System'' Problem

Crusher

You can change this now in User CP.
Reaction score
121
Currently, I have this own made ''system'' (if I can call it like that), but it has only one problem: it can be abused by tapping ''h'' or ''s'' when close to opponents.

I know this can be fixed by using Damage Source Event, but I don't know what exactly am I supposed to do here.

So, if someone can say me, I would be greatful.

Trigger:
  • Experience System
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • ((Attacking unit) belongs to an enemy of (Owner of (Attacked unit))) Equal to True
      • ((Attacking unit) is A Hero) Equal to True
    • Actions
      • Set AttackingUnit = (Attacking unit)
      • Hero - Add (5 x (Level of AttackingUnit)) experience to AttackingUnit, Hide level-up graphics
 

Sartan

New Member
Reaction score
23
Weep got a GUI friendly damage detection system, thati however never have used so thats one way.
i would have done like this though:

Code:
Ini Damage setup
    Events
        Map initialization
    Conditions
    Actions
        Custom script:   set bj_wantDestroyGroup=true
        Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
            Loop - Actions
                Trigger - Add to So called System <gen> the event (Unit - (Picked unit) Takes damage)
                Unit Group - Add (Picked unit) to FilterGroup

Code:
Enter Damage setup
    Events
        Unit - A unit enters (Playable map area)
    Conditions
        ((Triggering unit) is in FilterGroup) Equal to False
    Actions
        Unit Group - Add (Triggering unit) to FilterGroup
        Trigger - Add to So called System <gen> the event (Unit - (Triggering unit) Takes damage)

Code:
So called System
    Events
    Conditions
        ((Damage source) belongs to an enemy of (Owner of (Triggering unit))) Equal to True
        ((Damage source) is A Hero) Equal to True
    Actions
        Hero - Add (5 x (Level of (Damage source))) experience to (Damage source), Hide level-up graphics

well, have some weak points, since this will detect even spell damage, and not just "normal attacks"
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top