• 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.

Leveling Gives Ability

Status
Not open for further replies.

Screamernail

S

Screamernail

Im working on a map which requires a trigger.


A ability giving trigger, when a Hero levels up to that level it will get a skill whitout using up any skill Points.


I need help.

EDIT: yea its like in diablo 3 ok.

EDIT: blizzard needs to make this easier.
EDIT AGAIN: i need a video tutorial.

EDIT: im new to triggers and can noting about variables.
 
Last edited by a moderator:
Level 14
Joined
Jun 27, 2008
Messages
1,325
Try this: (dont have a worldeditor here so its freehand)

Event - Hero gains a level
Conditions - Unit Type of (Triggering Unit) is equal to "Blademaster"
Actions - Add Ability "Windwalk" to (Triggering Unit)

The condition makes sure the trigger only works with blademasters, im not sure if you want it like this.
Then im certain you want different abilities for different levels, you can use if/else branches in the Actions, like this:

If all conditions are true then
- If: Hero level of (Triggering Unit) is equal to 2
- Then: Add Ability "Windwalk" to (Triggering Unit)
- Else: No nothing (or just leave blank)

etc.
 
Level 28
Joined
Sep 26, 2009
Messages
2,520
Dunno how it's in Diablo3, but tbh the trigger below could suffice:
  • Level increment
    • Events
      • Unit - A unit Gains a level
    • Conditions
      • (Triggering unit) Equal to Your_Hero
    • Actions
      • Unit - Increase level of Your_Ability for (Triggering unit)
(I'm guessing your need to buy that ability to level 1)

Btw this section is for fixing triggers you post, for asking "how to do this" it's better to post in World Editor help zone :)
 

Screamernail

S

Screamernail

i mean if the Hero gains a level ge get a ability if he gains Another level he gets a new one and upgrades the first ability.
 
Level 11
Joined
Mar 27, 2011
Messages
293

  • Request
    • Events
      • Unit - A unit Gains a level
    • Conditions
      • (Triggering unit) Equal to Hero
    • Actions
      • -------- --------
      • -------- Determine who will gain/update the ability: --------
      • Set Hero = (Triggering unit)
      • -------- Store in the variable, the level of skill you want to update/gain: --------
      • Set Level = (Level of Ability for Hero)
      • -------- --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Level Equal to 0
        • Then - Actions
          • -------- f the hero does not have the ability, then take a skill: --------
          • Unit - Add Ability to Hero
        • Else - Actions
          • -------- If he has the ability, update: --------
          • Unit - Increase level of Ability for Hero
      • -------- --------


If you have any questions, just talk. If you need the triggers, I can do for you.

:fp: :goblin_good_job:
 

Screamernail

S

Screamernail

via trigger.

EDIT: i figured out it myself, thanks anyway.
 
Last edited by a moderator:
Status
Not open for further replies.
Top