• 🏆 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!

How to pick 2 random numbers?

Status
Not open for further replies.
Level 37
Joined
Jul 22, 2015
Messages
3,485
Oh my mistake. A while loop would be super useful right now, so maybe something like this:

  • Set SomeInt = (Random integer number between 1 and 2)
  • Custom script: loop
  • Set OtherInt = (Random integer number between 1 and 2)
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • SomeInt Not equal to OtherInt
    • Then - Actions
      • -------- ints are different, exit loop --------
      • Custom script: exitwhen (true)
    • Else - Actions
      • -------- ints are the same, rerun loop --------
  • Custom script: endloop
 
Status
Not open for further replies.
Top