ZelNaga
New Member
- Reaction score
- 5
As the name states I would like to add Tips to my map but I don't know how I could set it up so they appear in a random order.
Event:
- Map init
Conditions:
Actions:
- Set Tips[1] = This ...
- Set Tips[2] = That ...
- Set Tips[3] = Something ...
- Set Tips[4] = Whatever ...
- Set TipsCount = 4
Event:
- Time - Every 20.0 seconds
Conditions:
- TipsCount greater than 0
Actions:
- Set TempInteger = Random integer between 1 and TipsCount
- Game - Display to (All players) the text: Tips[TempInteger]
- Set Tips[TempInteger] = Tips[TipsCount]
- Set TipsCount = TipsCount - 1
With Tips a variable of type string with a check in array, and TipsCount and TempInteger of type integer.
to zaraf
actualy u wrong becouse u missed this line
Code:Set Tips[TempInteger] = Tips[TipsCount]
it change just used tip into last tip and after all remove last tip