Can I make world drop

LoveRPG

Member
Reaction score
6
I need to make the neutral mobs to drop things. Also I need to know if it is possible to make the drop chance of items lower then 1%?

First. I make the neutral mobs spawn. So I can not click on them and asign drop. And I have been looking for answers, unfortunatly I havent had any good luck:thdown:

Second. Is there any JASS or GUI triggers that makes it possible to lower the drop chance below 1%?? Example: Drop Chance: 0.3%.

Would appreciate answers to any of these, does not matter if you only know the answer to one of the questions. Thank you^^
 

Pharaoh_

The epic journey will soon begin... Prepare!
Reaction score
136
You mean that this won't work?:

Trigger:
  • Tr1
    • Events
      • A unit dies
    • Conditions
      • ((Unit-type) of (Dying Unit)) Equal to X
    • Actions
      • Set Point1 = (Position of (Dying unit))
      • Item - Create 1 X Item at Point1
      • Custom script: call RemoveLocation (udg_Point1)


For the chance:

Trigger:
  • Tr
    • Events
      • A unit dies
    • Conditions
      • ((Unit-type) of (Dying unit)) Equal to X
    • Actions
      • If/Then/Else
        • If (Conditions)
          • (Random Integer Number between 1 and 100) Less than 1
        • Then (Actions)
          • Set Point1 = (Position of (Dying unit))
          • Item - Create 1 X at Point1
          • Custom script: call RemoveLocation (udg_Point1)
 

AgentPaper

From the depths, I come.
Reaction score
107
a random number between 1 and 100 will never be less than 1...

Instead, just look for the random number to be some random number. For example, a random number between 1 and 10000, checking to see if it's equal to exactly 2957. That'll give you a .01% chance.
 

Squll2

je'ne sais pas
Reaction score
76
Your second trigger for the chance wont work, as integer equals a whole number, such as 1, 2 ,3 and 4 etc.

You'll need to use a real to get a number such as 0.35, as a real is pretty much any number :p. Real is what we caluclate almost everything in, so it is good to get into the habit of using it.

And yeah, :p
 

LoveRPG

Member
Reaction score
6
Sorry for slow response, have been making other changes to map:) thanks for all the informations:) hope it works:)
 

kingkingyyk3

Visitor (Welcome to the Jungle, Baby!)
Reaction score
216
The 2nd post code.... Bad.
Use Trigger Unit instead of dying unit since there are faster and safer.
Location... Bad, use X and Y instead.
 
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