• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

I need random item generator plz!

Status
Not open for further replies.
Level 4
Joined
Apr 23, 2009
Messages
65
Try This:
  • Set Items
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set Random_Item[1] = Claws of Attack +15
      • Set Random_Item[2] = Crown of Kings +5
      • Set Random_Item[3] = Kelen's Dagger of Escape
      • Set Random_Item[4] = Mask of Death
      • Set Random_Item[5] = Orb of Frost
  • Create item
    • Events
      • Player - Player 1 (Red) types a chat message containing -item as An exact match
    • Conditions
    • Actions
      • Set Random_Number = (Random integer number between 1 and 5)
      • Item - Create Random_Item[Random_Number] at (Center of (Playable map area))
The position where it is created leaks so you should clear that up. Hope this helps.
 
Status
Not open for further replies.
Top