1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still havn't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. The Lich King demands your service! We've reached the 19th edition of the Icon Contest. Come along and make some chilling servants for the one true king.
    Dismiss Notice
  4. The 4th SFX Contest has started. Be sure to participate and have a fun factor in it.
    Dismiss Notice
  5. The poll for the 21st Terraining Contest is LIVE. Be sure to check out the entries and vote for one.
    Dismiss Notice
  6. The results are out! Check them out.
    Dismiss Notice
  7. Don’t forget to sign up for the Hive Cup. There’s a 555 EUR prize pool. Sign up now!
    Dismiss Notice
  8. The Hive Workshop Cup contest results have been announced! See the maps that'll be featured in the Hive Workshop Cup tournament!
    Dismiss Notice
  9. 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.

Need help with abilities/triggers

Discussion in 'Triggers & Scripts' started by v3Bu, Oct 25, 2007.

  1. v3Bu

    v3Bu

    Joined:
    Oct 21, 2007
    Messages:
    74
    Resources:
    0
    Resources:
    0
    Im not really into triggering yet, read a couple of tutorials but couldnt get it, so I hope you could help me out.

    I need some skills, propably really easy to do.

    a passive normal (not hero) skill:

    Everytime My unit attacks an enemy it looses "x" amount of mana. (I havnt decided the "x" yet). In other words, melee manaburn.

    Hero skill (not ultimate):

    Activate/unactivate skill. When activated it rises the hero's attack and movement speed by "x" %. And looses "x" mana every second. (no cooldown)

    a passive normal (not hero) skill:

    Leap, without any special effects. Mayby a small white line which follows the guy leaping.

    And one more

    passive hero skill (not ultimate):


    Knockback. Hero has a "x" % chance to knock its target back and stun it for "x" seconds.

    AND the last

    passive normal skill (not hero):

    recharges heros mana/health to full. (cooldown)

    Thank you and sorry for my english.
     
  2. Parrothead

    Parrothead

    Joined:
    Jun 10, 2007
    Messages:
    778
    Resources:
    10
    Maps:
    8
    Tutorials:
    2
    Resources:
    10
    What are you planning to to with these spells. Use them in a map? If so, show us pictures, information to get your spells being done chances up!
    Welcome 2 teh hive btw!
     
  3. RED BARON

    RED BARON

    Joined:
    Oct 9, 2006
    Messages:
    5,168
    Resources:
    42
    Models:
    37
    Icons:
    3
    Packs:
    1
    Skins:
    1
    Resources:
    42
    Well then do like this:
    • Events
      • A unit owned by "Y" (or of type or similar) attacks an enemy
    • Conditions
    • Actions
      • Unit - Set mana of (Triggering unit) to ((Percentage mana of (Triggering unit)) - 2.00)%


    Well you make use the ability which increase damage and speed, then you make a trigger like this:
    • Power Up
    • Events
      • Unit - Starts the effect of an ability
    • Conditions
      • Ability being cast equal to (Power Up/ or what ever name)
    • Actions
      • Set Target = (Triggering unit)
      • Trigger - Turn on (Mana Drain Trigger)
      • Wait - 60 seconds
      • Trigger - Turn off (Mana Drain Trigger)


    The Mana drain trigger is a second trigger like this:
    • Mana Drain
    • Events
      • Time - Every 2 seconds of game time
    • Conditions
    • Actions
      • Unit - Set mana of (Target) to ((Percentage mana of (Target)) - 5.00)%


    This will work for an ability that last 60 seconds, replace with amount you want it to, to allow lvl upgrade, jsut make it wait for amount of time + level of hero * 5 or so.

    This will reguire a good knowledge about JASS, but there is many leap systems around, use one of those

    Same with the above one, JASS trigger needed (not actualy but surely the best), and there is many systems with knockback.

    Well just make this:

    • Events
      • Unit starts the effect of an ability
    • Conditions
      • (Add one if needed)
    • Actions
      • set life of triggering unit to 100%
      • set mana of triggering unit to 100%


    BTW: Inded welcome to the hive, hoped this helped you, and that your going to stay. Also that you could use my help.
     
  4. busterkomo

    busterkomo

    Joined:
    Jun 17, 2007
    Messages:
    1,423
    Resources:
    1
    Tutorials:
    1
    Resources:
    1
    Use feedback for the melee mana burn.
     
  5. v3Bu

    v3Bu

    Joined:
    Oct 21, 2007
    Messages:
    74
    Resources:
    0
    Resources:
    0
    Thanks for fast reply. Yeah this helped a lot. I did triggering in starcraft, but the system is quite different, yes this helped me to understand the triggers more better. Thank you

    I really dont have anything cool to show yet, and i dont want to tell about my project (atm) becouse its really WIP and many of you are getting tired of all the similiar projects, so to prove you wrong that my project is different needs something cool to show. Which i dont have atm.

    Well I gotta say something.. hmm.. Im trying to make warcrafts combat more fast paced and more action oriented. Less standing still and more jumping around. :) More skill involved.

    :cool:
    atm im working with the sounds (units responses and combat effects) ( yeah i know they arent my major concern but it makes the game less warcraft with custom look and sound, and its fun :) )
     
  6. v3Bu

    v3Bu

    Joined:
    Oct 21, 2007
    Messages:
    74
    Resources:
    0
    Resources:
    0
    Problems encountered..

    I can't get the on/off skill to work which increases movement and attack speed but hero loses mana when its activated. First of all I don't know what spell to use. It needs to be samekind of spell as the storm spirit has in DotA.

    And i can't find anywhere a text: attacks an enemy unit
     
    Last edited: Oct 26, 2007
  7. RED BARON

    RED BARON

    Joined:
    Oct 9, 2006
    Messages:
    5,168
    Resources:
    42
    Models:
    37
    Icons:
    3
    Packs:
    1
    Skins:
    1
    Resources:
    42
    Dont double post next time, but okay find that trigger...

    Sry, I wrote wrong should have been like this in start:
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • (Attacking unit) Equal to (unit with the skill, you can make a third trigger to set him to a veriable when he gets the skill or similar) or attacking unit has a specific buff.


    Hope it helped :smile:

    The ability is (could be): Envenomed Spears (orc -> units) just change to hero.
     
  8. v3Bu

    v3Bu

    Joined:
    Oct 21, 2007
    Messages:
    74
    Resources:
    0
    Resources:
    0
    ok thanks for help i got my stuff to work

    another problem encountered:

    I made a skill with triggers which is normally an aura, but i made it a spell with manacost and cooldown. Now everytime when the cooldown ends game crashes.. wheres the problem? I get a memory error of somkind.

    The hero has 2 other skills which use the same triggering, but instead of aura they have passive skill with manacost and cooldown.. They work perfect
     
  9. YoshiRyu

    YoshiRyu

    Joined:
    Jun 26, 2007
    Messages:
    686
    Resources:
    0
    Resources:
    0
    you've probably make an infinite loop in the trigger you use when the cooldown ends.
    can you post it here?
     
  10. v3Bu

    v3Bu

    Joined:
    Oct 21, 2007
    Messages:
    74
    Resources:
    0
    Resources:
    0
    Well my attempt is propably so complicated anyways.. Easier if you tell me how to make the ability.


    I want ability evasion with duration and cooldown and manacost (to make it nonpassive). How to?
     
  11. RED BARON

    RED BARON

    Joined:
    Oct 9, 2006
    Messages:
    5,168
    Resources:
    42
    Models:
    37
    Icons:
    3
    Packs:
    1
    Skins:
    1
    Resources:
    42

    Well that looping as said, and then making it worse by having the same trigger to 3 skills, make it individual for each skill or use JASS. Also makes it alot easier when using GUI.

    Hmm an nonepassive evasion....

    you could do so when the unit took dmg with evasion on, then a trigger would lower his mana, but doesnt solve other trouble... hmm well you gotta find an ability doing something liek that from start, or use JASS. Cant figure out a GUI now.
     
  12. v3Bu

    v3Bu

    Joined:
    Oct 21, 2007
    Messages:
    74
    Resources:
    0
    Resources:
    0
    I used immolation for the base skill.

    could you introduce me gui and jass. I have no idea what they are?
     
  13. YoshiRyu

    YoshiRyu

    Joined:
    Jun 26, 2007
    Messages:
    686
    Resources:
    0
    Resources:
    0
    you should search in the tutorial section
     
  14. v3Bu

    v3Bu

    Joined:
    Oct 21, 2007
    Messages:
    74
    Resources:
    0
    Resources:
    0
    problem solved. For some reason aura buffs arent allowed in my trigger.
     
  15. RED BARON

    RED BARON

    Joined:
    Oct 9, 2006
    Messages:
    5,168
    Resources:
    42
    Models:
    37
    Icons:
    3
    Packs:
    1
    Skins:
    1
    Resources:
    42
    GUI: It is normal triggers, those like this:
    • Events
      • Unit - A Unit dies
    • Conditions
      • (Triggering unit) is dead Equal to true
    • Actions
      • Unit - Kill (Triggering unit)


    And jass is custom script, which I must say I realy isnt good at, I can make very very little with it, just enough to make MUI spells and so for WE/WEU (Those are world editor and world editor unlimited).
    (MUI is multi instantable (if I remember correct) but anyway means that it can be used by more then one hero on the same time)
     
  16. v3Bu

    v3Bu

    Joined:
    Oct 21, 2007
    Messages:
    74
    Resources:
    0
    Resources:
    0
    JASS seams to complicated for me. Thanks for being helpfull all this time +rep for you

    Ok I have a new question. tadaa :)

    How to make this trigger?:
    ....
    Trigger: When a unit which has movement speed over 400, moves in a specific area, create birds flying on that specific area, when he moves out from the area, remove the birds.

    Or when he stops moving remove the birds, or if his movement speed changes below 400 remove the birds..(birds should be a doodad if possible)

    The amount of units moving in the area, shouldnt make any difference.

    If one unit moves with a speed of 400 and other moves with a speed of 300, there should be birds.
    ....
    I have no idea how to create it.
     
    Last edited: Oct 28, 2007
  17. YoshiRyu

    YoshiRyu

    Joined:
    Jun 26, 2007
    Messages:
    686
    Resources:
    0
    Resources:
    0
    trigger entering:
    Event : a unit enter your_region
    Condition : speed of triggering unit >= 400
    Action :
    set number_of_unit_the_region = number_of_unit_the_region + 1
    if (number_of_unit_the_region == 1)
    then create n bird in your_region

    trigger leaving:
    Event : a unit leave your_region
    Condition : speed of triggering unit >= 400
    Action :
    set number_of_unit_the_region = number_of_unit_the_region - 1
    if (number_of_unit_the_region == 0)
    then pick every bird in your_region
    do remove picked unit
     
  18. RED BARON

    RED BARON

    Joined:
    Oct 9, 2006
    Messages:
    5,168
    Resources:
    42
    Models:
    37
    Icons:
    3
    Packs:
    1
    Skins:
    1
    Resources:
    42
    Why doesnt you use trigger tags?
     
  19. v3Bu

    v3Bu

    Joined:
    Oct 21, 2007
    Messages:
    74
    Resources:
    0
    Resources:
    0
    I cant find this set number action thing.. where to look?
     
  20. YoshiRyu

    YoshiRyu

    Joined:
    Jun 26, 2007
    Messages:
    686
    Resources:
    0
    Resources:
    0
    I'm french
    My world editor is french to
    to find the correct syntax which match the trigger tag, i've to make many tests
    i use them only when it would be understandable without

    and also : "give a man a fish, he'll eat one day; teach a man to fish, he'll eat all days" ;)

    number_of_unit_the_region is an integer variable you use to count the number of "quick units" in the region
    so the action is simply "set variable"