1. Find your way through the deepest dungeon in the 18th Mini Mapping Contest Poll.
    Dismiss Notice
  2. A brave new world lies beyond the seven seas. Join the 34th Modeling Contest today!
    Dismiss Notice
  3. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
Hive 3 Remoosed BETA - NOW LIVE. Go check it out at BETA Hive Workshop! Post your feedback in this new forum BETA Feedback.
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

[Trigger] Some help with a spell

Discussion in 'Triggers & Scripts' started by Giantr, Dec 15, 2008.

  1. Giantr

    Giantr

    Joined:
    Dec 4, 2007
    Messages:
    108
    Resources:
    0
    Resources:
    0
    This should be easy enough. I'm a VERY unexperienced spell maker, but I wanted to make a non target AOE spell(GUI since I'm not any good) that taunts every enemy in range to attack the hero, so I was looking for a trigger like

    Pick every unit in range owned by player matching conditions, so can you help me.

    PS. I really tried to make the trigger so don't flame me
     
  2. bounty hunter2

    bounty hunter2

    Joined:
    Sep 27, 2005
    Messages:
    1,948
    Resources:
    7
    Icons:
    3
    Maps:
    3
    Tutorials:
    1
    Resources:
    7
    Create a region around the hero. Center it every second on it and then make units in that region attack the hero when the spell is cast.

    Doesn't the mountain giant have that spell?
     
  3. Giantr

    Giantr

    Joined:
    Dec 4, 2007
    Messages:
    108
    Resources:
    0
    Resources:
    0
    Yes he does have the spell, but it can be easily stopped, by simply ordering your units to do something else, so its no good, but I'm using it as a base to the spell


    Edit: Since I'm really bad at spell making can you please tell me how to use a region or point to a tutorial from which I can learn
     
  4. bounty hunter2

    bounty hunter2

    Joined:
    Sep 27, 2005
    Messages:
    1,948
    Resources:
    7
    Icons:
    3
    Maps:
    3
    Tutorials:
    1
    Resources:
    7
    When you are in WE go to region palete
    Create a region around the hero

    Trigger
    Every 0.01 second of game
    Region - center region to position of hero
     
  5. Hoernchen

    Hoernchen

    Joined:
    Jun 16, 2007
    Messages:
    365
    Resources:
    2
    Maps:
    1
    Tutorials:
    1
    Resources:
    2
    Lol, just use:

    Event - A unit spawns a summoned unit

    That might work, and if it does, then it works a whole shitload better.
     
  6. Giantr

    Giantr

    Joined:
    Dec 4, 2007
    Messages:
    108
    Resources:
    0
    Resources:
    0
    So, to make the trigger I need to make an action that turns on another trggier that has the event every 0.01 second of game to center the region i made around the hero right?
     
  7. terradont

    terradont

    Joined:
    Jan 21, 2007
    Messages:
    1,471
    Resources:
    2
    Icons:
    1
    Template:
    1
    Resources:
    2
    There is no region to create a region. In fact, it's rather inefficient.
    If i understood it correctly, you want it to be kinda like Axe's Berserkers Call from DotA?
    Then use Howl of Terror as a base Ability. Save the caster in a variable
    Then pick all units with the buff and order them to attack the caster every 0.3 seconds of gametim(this is the lowest GUI can perform)

    Note that this isn't going to be MUI or even MPI, and it's kinda abusable since you can really spamclick with your hero(or whatever)
     
  8. Giantr

    Giantr

    Joined:
    Dec 4, 2007
    Messages:
    108
    Resources:
    0
    Resources:
    0
    Ok that's just what I wanted to make like Berserkers Call from dota, thank you for the info, but can you tell me what is MPI( I think it is Multy player intersomething) and how can I make the spell that way
     
  9. Hoernchen

    Hoernchen

    Joined:
    Jun 16, 2007
    Messages:
    365
    Resources:
    2
    Maps:
    1
    Tutorials:
    1
    Resources:
    2
    It means multi player instancable and refers to the fact that every player can have at least one unit cast the spell at the same time, without any conflict in the trigger. it is achieved by using arrays.
     
  10. Eleandor

    Eleandor

    Joined:
    Aug 21, 2005
    Messages:
    3,681
    Resources:
    2
    Models:
    1
    Tutorials:
    1
    Resources:
    2
    I'm sorry if I'm missing something, but what's wrong with the "Taunt" ability?
     
  11. terradont

    terradont

    Joined:
    Jan 21, 2007
    Messages:
    1,471
    Resources:
    2
    Icons:
    1
    Template:
    1
    Resources:
    2
    MPI is Multi-Player-Instanceability. This means it can be casted by several players at one time.
    MUI is Multi-Unit-Instanceability. This means that all the units in the game would be able to cast the ability at the same time.

    I'm not sure on how to do this one MUI or MPI.
    Maybe you could add all targets into a unit-group variable with arrays(then you'd have to add arrays to the caster variable as well) and order all units in unit group variable(1) to attack caster(1), order all in Unitgroup variable(2) to attack caster(2) and so on. This would be MPI
     
  12. Giantr

    Giantr

    Joined:
    Dec 4, 2007
    Messages:
    108
    Resources:
    0
    Resources:
    0
    Well it is very unreliable this just makes the unit to attack the caster it can be disabled by simply giving an other command

    Well since I'm a complete beginner with triggers I'll try to make the spell and when it's done (should be soon enough) you can tell where I did wrong and how can I become better

    Edit: Now this is where I got to. Am continuing work if some can tell me where to improve... go ahead
     

    Attached Files:

    Last edited: Dec 15, 2008
  13. terradont

    terradont

    Joined:
    Jan 21, 2007
    Messages:
    1,471
    Resources:
    2
    Icons:
    1
    Template:
    1
    Resources:
    2
    I would, but i don't have acsess to the World Editor.