1. Head to the 33rd Modeling Contest Poll and drink to your heart's desire.
    Dismiss Notice
  2. Choose your means of doom in the 17th Mini Mapping Contest Poll.
    Dismiss Notice
  3. A slave to two rhythms, the 22nd Terraining Contest is here.
    Dismiss Notice
  4. The heavens smile on the old faithful. The 16th Techtree Contest has begun.
    Dismiss Notice
  5. The die is cast - the 6th Melee Mapping Contest results have been announced. Onward to the Hive Cup!
    Dismiss Notice
  6. The glory of the 20th Icon Contest is yours for the taking!
    Dismiss Notice
  7. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Hero Dummy

Discussion in 'World Editor Help Zone' started by Narg666, May 3, 2012.

  1. Narg666

    Narg666

    Joined:
    Aug 30, 2009
    Messages:
    112
    Resources:
    0
    Resources:
    0
    Hello everyone, I'm having a problem with Dummy based on heroes (like "fake illusions"), the problem is that they reduce the experience gained by the original hero even if I use "SuspendHeroXP", I need to know if there is any way to allow the normal hero gain the whole experience, instead of sharing with the "fake illusion".

    Fake Illusion is a hero like the original, but, without Dying Message, Minimap Icon or Screen Icon. It also have the "locust" ability to make it impossible to be selected or controled.

    Thank you.
     
  2. 0neM4n4rmy

    0neM4n4rmy

    Joined:
    Feb 3, 2012
    Messages:
    104
    Resources:
    0
    Resources:
    0
    im not on my personal comp right now, but, maybe u can make a trigger to divert the gained exp of the 'fake illusion' to the real hero. im not sure theres a trigger like that ill look into it when i get home. u can always use jass if u want though.
     
  3. Spartipilo

    Spartipilo

    Joined:
    Jul 14, 2011
    Messages:
    3,190
    Resources:
    0
    Resources:
    0
    If you have a triggered Experience System, just create an "If Then Else" to exclude the Dummy unit type.

    If you don't, set the dummy hero level to max and remove the "Max level heroes takes exp" or something like that data field in the Game Constants.

    Suggestion: Create your own experience system.
     
  4. Narg666

    Narg666

    Joined:
    Aug 30, 2009
    Messages:
    112
    Resources:
    0
    Resources:
    0
    You mean through JASS right? When a unit dies to give experience around?

    Cause giving the dummy max level will increase his attributes above the original and I don't want that.
     
  5. Spartipilo

    Spartipilo

    Joined:
    Jul 14, 2011
    Messages:
    3,190
    Resources:
    0
    Resources:
    0
    Why do you need stats in a dummy hero?
    What is it for?
    Does it get experience in some way?
    Its level takes part in the gameplay?

    It can be GUI or JASS... the thing is, a triggered experience system is easier to work with than Wc3 default, only if Wc3 default system doesn't fit your needs.
     
  6. mckill2009

    mckill2009

    Joined:
    Mar 10, 2009
    Messages:
    4,696
    Resources:
    34
    Maps:
    5
    Spells:
    27
    JASS:
    2
    Resources:
    34
    maybe you want that fake illusion to cast an item?, coz normal units(dummies) cant cast
    items, if that's the case, try to make your illusion's owner to Neutral passive, save your
    own unit using hashtable to the ID of that illusion, then load it when needed...
     
  7. Narg666

    Narg666

    Joined:
    Aug 30, 2009
    Messages:
    112
    Resources:
    0
    Resources:
    0
    The Dummy actually attacks like the hero, I need his attributes (Str, Agi, Int) to make his attack equal to the hero's attack (like illusions itself), but it sometimes also cast abilities and uses items (Is like an uncontrolable Image of your hero... Like the Assassin's Shadow from Diablo II), if you cast blink, it blinks after you, if you attack the target, it attacks the same target as you (with the same attack), if you use an item, it uses it as well, but this image are not able to level-up, and gains no experience, exactly like Shadow from Diablo II. I know there is a way to do it, cause I remember seen it in a map, I just don't remeber what map exactly.
     
  8. Spartipilo

    Spartipilo

    Joined:
    Jul 14, 2011
    Messages:
    3,190
    Resources:
    0
    Resources:
    0
    Mmm every 1 second add the Dummy experience to the hero and set dummy experience to 0.
     
  9. Br0

    Br0

    Joined:
    May 4, 2012
    Messages:
    94
    Resources:
    0
    Resources:
    0
    Events
    Time - Every 2.00 seconds of game time
    Conditions
    Actions
    Hero - Add (Hero experience of hero[2]) experience to hero[1], Show level-up graphics
    Hero - Set hero[2] experience to 0, Hide level-up graphics
    Hero - Set hero[2] Hero-level to (Hero level of hero[1]), Show level-up graphics


    Set Hero[1] = Main hero
    Set Hero[2] = Illusion/Shadow
     
  10. mckill2009

    mckill2009

    Joined:
    Mar 10, 2009
    Messages:
    4,696
    Resources:
    34
    Maps:
    5
    Spells:
    27
    JASS:
    2
    Resources:
    34
    another option is to disable the experience gain to all heroes, once the hero kills a unit, enable it then disable it again...
    step by step;
    1) Kills a unit
    2) Enable experience gain
    3) Add experience based on level of unit, if hero is killed add more experience
    4) disable experience
     
  11. Br0

    Br0

    Joined:
    May 4, 2012
    Messages:
    94
    Resources:
    0
    Resources:
    0
    Isn't that basically almost like mine, also enabling and disabling will most likely cause glitches/bugs, and you really should switch to a custom XP system.
     
  12. Narg666

    Narg666

    Joined:
    Aug 30, 2009
    Messages:
    112
    Resources:
    0
    Resources:
    0
    Hey, I want to thank you all, I solved my problem by creating a custom experience system and removing units with Locust ability from gaining experience... Thank you guys for your suggestions.