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

Item Drops

Status
Not open for further replies.
Level 2
Joined
Apr 10, 2021
Messages
16
Firsts of all hello,

I'm developing an RPG map. To add drop rate to monsters, I came up with the following idea; As you can see, when the monster dies, it drops an item and a text appears. But I want to add drop rate here and different items. What can you suggest for this?


a.png
 
Level 4
Joined
Jun 28, 2012
Messages
23
Here you go, add this condition and set your variable to an integer between 1 and 100
  • DropRate Less than or equal to (Random integer number between 1 and 100)
 
Level 4
Joined
Jun 28, 2012
Messages
23
  • Untitled Trigger 001
    • Events
    • Conditions
    • Actions
      • Set VariableSet DropRate = 15
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • DropRate Greater than or equal to 100
        • Then - Actions
          • -------- Drop Item A --------
        • Else - Actions
      • Set VariableSet DropRate = 5
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • DropRate Greater than or equal to 100
        • Then - Actions
          • -------- Drop Item B --------
        • Else - Actions
 
Status
Not open for further replies.
Top