• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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 =)
 
Level 19
Joined
Aug 16, 2007
Messages
881
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