Hi,
i'm trying to make a trigger that creates an item on a location depending on the random integer number.
The only problem is, that the random number is the same everytime!
When i put the triggerevent on map initializing, the number is always 10 (highest number between 1-10)
When i put the triggerevent on 1 sec, i always get number 4
when i put the triggerevent on random number between 1-4 sec a always get number 3
Can someone let me why i don't get a random number everytime?
thx
i'm trying to make a trigger that creates an item on a location depending on the random integer number.
-
map initializinga
-
Events
- Map initialization
- Conditions
-
Actions
- Trigger - Turn off Red ShardsA Barrel1 Dies <gen>
- Trigger - Turn off Red ShardsA SkeletonGrunt <gen>
- Trigger - Turn off Red ShardsA Barrel2 Dies <gen>
- Set RandomitemReda = (Random integer number between 1 and 10)
- If (RandomitemReda Equal to 5) then do (Item - Create Red Shards at (Center of Red FragtionA <gen>)) else do (If (RandomitemReda Equal to 4) then do (Item - Create Red Shards at (Center of Red FragtionA2 <gen>)) else do (If (RandomitemReda Equal to 3) then do (Trigger - Turn on Red ShardsA Barrel1 Dies <gen>) else do (If (RandomitemReda Equal to 2) then do (Trigger
- Floating Text - Create floating text that reads (String(RandomitemReda)) above Archmage 0060 <gen> with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
-
Events
When i put the triggerevent on map initializing, the number is always 10 (highest number between 1-10)
When i put the triggerevent on 1 sec, i always get number 4
when i put the triggerevent on random number between 1-4 sec a always get number 3
Can someone let me why i don't get a random number everytime?
thx