Should I use Less than or equal to or just Equal to?

Level 7
Joined
Feb 9, 2010
Messages
298
- See the link http://www.hiveworkshop.com/forums/world-editor-help-zone-98/gamble-32509/
See what Xarwin shows - at the line If Conditions: ... less than or equal to...

1. How to understand this "...less than or equal to..." and just "...equal to..."???

2. Which is better if you wish to make a % random chance for every Item? is it "less than or equal to" or "equal to" better?

- Someone just explain me the difference between the two cause I don't know how to understand this!? :ogre_icwydt:
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
  • (Random integer number between 10 and 100) Less than or equal to 30
This means it will enumerate values from 10 to 30 out of 100 (30%)

  • (Random integer number between 10 and 100) Equal to 30
This means it will enumerate values just 30 meaning it is 1%
 
Level 7
Joined
Feb 9, 2010
Messages
298
What if it is between 1 and 100 not between 10 and 100?!
So "less than or equal to" is the better choice under this conditions.

- And what is this - "Then - Actions: Item - Create (Random level 1 item-type) at (your position)" good for?! The Items I use are of levels different than lvl 1!?! <- This I don't understand!?!?
 
Level 7
Joined
Feb 9, 2010
Messages
298
1. Between 1 and 100 you have 100 numbers and between 10 and 100 you have 90 numbers; do I get it right? If yes than I understand this correctly.
If no, explain please.

2. The thing I don't understand is:
If "less than of equal to" means a number between 1 and 30 (in this case) does it mean that any number from 1 to 30 is included in this 30% chance?

3. And what if I have few other items with less than 30%, let's say 10%,15%,20% isn't there gonna be a conflict which item to give to the Player's unit?!?!?!

Buddies I already found a better solution but I need this things explained just to understand how they work - I might need them in future!
 
Top