Random Creep with no rejections

blooman

New Member
Reaction score
16
You know if you use the trigger Create -1 level Creep
You only get a unit thats suitable for that tile set and i don't want to set an array for all 255 or something any way to fix this?
 

simonake

New Member
Reaction score
72
What you want it hard to understand.
Tell me if i understood well.

You want to have a random creep spawn. You want to know if there's a easier way to create a random unit than setting each unit to a array unit variable.
It maybe too simple but.

Trigger:
  • Set TempGroup[1] = Every units in (All units Matching ((Matching unit) is a Hero Equal to FALSE)) and do (Actions)
    • Set TempGroup[2] = Random 1 unit from TempGroup[1]
    • Unit Group - Pick every unit in TempGroup[2] and do (Actions)
      • Loop -
        • Unit - Create a (Unit type of (Picked unit))


Can't garantuee if it will work. It should.
 

blooman

New Member
Reaction score
16
What you want it hard to understand.
Tell me if i understood well.

You want to have a random creep spawn. You want to know if there's a easier way to create a random unit than setting each unit to a array unit variable.
It maybe too simple but.

Trigger:
  • Set TempGroup[1] = Every units in (All units Matching ((Matching unit) is a Hero Equal to FALSE)) and do (Actions)
    • Set TempGroup[2] = Random 1 unit from TempGroup[1]
    • Unit Group - Pick every unit in TempGroup[2] and do (Actions)
      • Loop -
        • Unit - Create a (Unit type of (Picked unit))


Can't garantuee if it will work. It should.
No it doesn't work because it will only pick a unit in a map
 

SpaceBar

New Member
Reaction score
16
Um something like this? idk

Trigger:
  • Events
    • Time - Every 5.00 seconds of game time
    • Conditions
    • Actions
    • Unit - Create 1 (Random integer number between 1 and 10) creep unit-type) for <your player> at (Centre of (Playble map area)) facing Default building facing
 

blooman

New Member
Reaction score
16
Um something like this? idk

Trigger:
  • Events
    • Time - Every 5.00 seconds of game time
    • Conditions
    • Actions
    • Unit - Create 1 (Random integer number between 1 and 10) creep unit-type) for <your player> at (Centre of (Playble map area)) facing Default building facing
Yes but if i make at Black Citatel You cant summon like ice troll only if you make like Create 1 Ice Troll
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top