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

summon unit - setting variable

Status
Not open for further replies.
Level 10
Joined
Apr 3, 2006
Messages
535
i am having trouble summoning a unit, then setting it as a varible for future use. Spell is based off a summon ability.
  • Inner Beast Set Pet
    • Events
      • Unit - A unit Spawns a summoned unit
    • Conditions
      • (Unit-type of (Summoned unit)) Equal to Bear (Level 1)
      • (Unit-type of (Summoned unit)) Equal to Bear (Level 2)
      • (Unit-type of (Summoned unit)) Equal to Bear (Level 3)
      • (Unit-type of (Summoned unit)) Equal to Bear (Level 4)
      • (Unit-type of (Summoned unit)) Equal to Bear (Level 5)
      • (Unit-type of (Summoned unit)) Equal to Bear (Level 6)
      • (Unit-type of (Summoned unit)) Equal to Bear (Level 7)
      • (Unit-type of (Summoned unit)) Equal to Bear (Level 8)
    • Actions
      • Set Pet = (Summoned unit)
 
Level 7
Joined
Mar 22, 2010
Messages
228
i am having trouble summoning a unit, then setting it as a varible for future use. Spell is based off a summon ability.
  • Inner Beast Set Pet
    • Events
      • Unit - A unit Spawns a summoned unit
    • Conditions
      • (Unit-type of (Summoned unit)) Equal to Bear (Level 1)
      • (Unit-type of (Summoned unit)) Equal to Bear (Level 2)
      • (Unit-type of (Summoned unit)) Equal to Bear (Level 3)
      • (Unit-type of (Summoned unit)) Equal to Bear (Level 4)
      • (Unit-type of (Summoned unit)) Equal to Bear (Level 5)
      • (Unit-type of (Summoned unit)) Equal to Bear (Level 6)
      • (Unit-type of (Summoned unit)) Equal to Bear (Level 7)
      • (Unit-type of (Summoned unit)) Equal to Bear (Level 8)
    • Actions
      • Set Pet = (Summoned unit)

I prefer:
  • Inner beast set pet
    • Event
      • Unit - A Unit Enters (Playable Map)
    • Conditions
      • (Unit-type of (Summoned unit)) Equal to Bear (Level 1)
      • (Unit-type of (Summoned unit)) Equal to Bear (Level 2)
      • (Unit-type of (Summoned unit)) Equal to Bear (Level 3)
      • (Unit-type of (Summoned unit)) Equal to Bear (Level 4)
      • (Unit-type of (Summoned unit)) Equal to Bear (Level 5)
      • (Unit-type of (Summoned unit)) Equal to Bear (Level 6)
      • (Unit-type of (Summoned unit)) Equal to Bear (Level 7)
      • (Unit-type of (Summoned unit)) Equal to Bear (Level 8)
    • Actions
      • Set Pet = (Triggering Unit)
 
Level 11
Joined
Jan 25, 2009
Messages
572
  • Inner beast set pet
  • Event
  • Unit - A Unit Enters (Playable Map)
  • Conditions
  • (Unit-type of (Summoned unit)) Equal to Bear (Level 1)
  • (Unit-type of (Summoned unit)) Equal to Bear (Level 2)
  • (Unit-type of (Summoned unit)) Equal to Bear (Level 3)
  • (Unit-type of (Summoned unit)) Equal to Bear (Level 4)
  • (Unit-type of (Summoned unit)) Equal to Bear (Level 5)
  • (Unit-type of (Summoned unit)) Equal to Bear (Level 6)
  • (Unit-type of (Summoned unit)) Equal to Bear (Level 7)
  • (Unit-type of (Summoned unit)) Equal to Bear (Level 8)
  • Actions
  • Set Pet = (Triggering Unit)
This should be
  • Inner beast set pet
  • Event
  • Unit - A Unit Enters (Playable Map)
  • Conditions
  • Or - All conditions are true
  • (Unit-type of (Summoned unit)) Equal to Bear (Level 1)
  • (Unit-type of (Summoned unit)) Equal to Bear (Level 2)
  • (Unit-type of (Summoned unit)) Equal to Bear (Level 3)
  • (Unit-type of (Summoned unit)) Equal to Bear (Level 4)
  • (Unit-type of (Summoned unit)) Equal to Bear (Level 5)
  • (Unit-type of (Summoned unit)) Equal to Bear (Level 6)
  • (Unit-type of (Summoned unit)) Equal to Bear (Level 7)
  • (Unit-type of (Summoned unit)) Equal to Bear (Level 8)
  • Actions
  • Set Pet = (Triggering Unit)
Because if you dont have that Or condition and have all that Summoned unit conditions into the Or condition, ALL the Bears of all levels (1-8) MUST be summoned at once. So if you have all the bear Conditions into the Or condition, there's just one of the bears that is summoned. This will work, try it =)
 
This should be
  • Inner beast set pet
  • Event
  • Unit - A Unit Enters (Playable Map)
  • Conditions
  • Or - All conditions are true
  • (Unit-type of (Summoned unit)) Equal to Bear (Level 1)
  • (Unit-type of (Summoned unit)) Equal to Bear (Level 2)
  • (Unit-type of (Summoned unit)) Equal to Bear (Level 3)
  • (Unit-type of (Summoned unit)) Equal to Bear (Level 4)
  • (Unit-type of (Summoned unit)) Equal to Bear (Level 5)
  • (Unit-type of (Summoned unit)) Equal to Bear (Level 6)
  • (Unit-type of (Summoned unit)) Equal to Bear (Level 7)
  • (Unit-type of (Summoned unit)) Equal to Bear (Level 8)
  • Actions
  • Set Pet = (Triggering Unit)
Because if you dont have that Or condition and have all that Summoned unit conditions into the Or condition, ALL the Bears of all levels (1-8) MUST be summoned at once. So if you have all the bear Conditions into the Or condition, there's just one of the bears that is summoned. This will work, try it =)


Well, you're also wrong. The correct one is:

  • Inner beast set pet
    • Event
      • Unit - A Unit Enters (Playable Map)
    • Conditions
      • Or - All conditions are true
        • (Unit-type of (Triggering Unit)) Equal to Bear (Level 1)
        • (Unit-type of (Triggering Unit)) Equal to Bear (Level 2)
        • (Unit-type of (Triggering Unit)) Equal to Bear (Level 3)
        • (Unit-type of (Triggering Unit)) Equal to Bear (Level 4)
        • (Unit-type of (Triggering Unit)) Equal to Bear (Level 5)
        • (Unit-type of (Triggering Unit)) Equal to Bear (Level 6)
        • (Unit-type of (Triggering Unit)) Equal to Bear (Level 7)
        • (Unit-type of (Triggering Unit)) Equal to Bear (Level 8)
    • Actions
      • Set Pet = (Triggering Unit)
Because (Summoned unit) has nothing to do with the event. :)
 
Status
Not open for further replies.
Top