• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[Solved] Tech Upgrade for summoned unit based of spell level

Status
Not open for further replies.
Level 11
Joined
Dec 16, 2017
Messages
437
Hello guys, i am trying to make a summoning spell using only 1 unit, and giving it a tech upgrade that is leveled up based on level of the summoning spell, but seems like i am missing something, this is what i made so far.
  • [trigger]Wolf Summon
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Summon Wolf (Hunter BEAST MASTERY)
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of (Summoned unit)) Equal to Wolf (Level 1)
          • (Level of Summon Wolf (Hunter BEAST MASTERY) for (Triggering unit)) Equal to 1
        • Then - Actions
          • Player - Set the current research level of Wolf STATS to 1 for (Owner of (Summoned unit))
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Unit-type of (Summoned unit)) Equal to Wolf (Level 1)
              • (Level of Summon Wolf (Hunter BEAST MASTERY) for (Triggering unit)) Equal to 2
            • Then - Actions
              • Player - Set the current research level of Wolf STATS to 2 for (Owner of (Summoned unit))
            • Else - Actions[\trigger]
 
Remove the conditions '(Unit-type of (Summoned unit))...'

And change '(Owner of (Summoned unit))' to 'Triggering Player'.


Or you might even remove all these if then else blocks, and put it to something like this:

  • Player - Set the current research level of Wolf STATS to (Level of Summon Wolf (Hunter BEAST MASTERY) for (Triggering unit)) for (Triggering Player)
 
Last edited:
Remove the conditions '(Unit-type of (Summoned unit))...'

And change '(Owner of (Summoned unit))' to 'Triggering Player'.


Or you might even remove all these if then else blocks, and put it to something like this:

  • Player - Set the current research level of Wolf STATS to (Level of Summon Wolf (Hunter BEAST MASTERY) for (Triggering unit)) for (Triggering Player)
Thanks a lot mate ! Sorry for such newbie problem, i am new :D
 
Status
Not open for further replies.
Back
Top