Same "Random" Item-- why?

the_ideal

user title
Reaction score
61
Trigger:
  • For each (Integer A) from 1 to 33, do (Actions)
    • Loop - Actions
      • Set point1 = (Random point in (Playable map area))
      • Item - Create (Random level -1 Permanent item-type) at point1
      • Custom script: call RemoveLocation (udg_point1)
      • Set point1 = (Random point in (Playable map area))
      • Item - Create (Random level -1 Powerup item-type) at point1
      • Custom script: call RemoveLocation (udg_point1)
      • Set point1 = (Random point in (Playable map area))
      • Item - Create (Random level -1 Purchasable item-type) at point1
      • Custom script: call RemoveLocation (udg_point1)

Why did this create a bunch of potions of invulnerability when I tested. There were other items too, but tons and tons of potions of invulnerability.

Anything helpful = +rep
Thanks a lot!
 

grognog

New Member
Reaction score
1
If I can see the entire trigger, I might be able to help you more (also. I don't know crap about Jass, lol)
 

Sui-cookie

You can change this now in User CP.
Reaction score
49
if i remember right, the "random" of WE is based on timing. so if they are all ...maybe someone a lil' more 1337 can come clarify :/
 
Reaction score
341
Try adding waits between them, or better yet make it run off a timer.

When I tried doing what your doing, it create random items, but my map just crashed.
 

the_ideal

user title
Reaction score
61
Thanks for the suggestion. How would the run it from a timer idea work? Right now the event is Elapsed time - x.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top