Forums
New posts
Search forums
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Come and join our gamer community by
registering for free here
Other Gaming Forum
PC games
Warcraft Tools and Tutorials
Run an Object/System at Random
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Mini-Me" data-source="post: 125757" data-attributes="member: 5902"><p>That works, but if you got like 30 tips, there will be 30 if/then/else, making it a very long trigger and maybe bit confusing. There is an other way to do this that i think is simpler and more efficiant.</p><p></p><p>Create a string variable, set it array 30, name it for example "tips". Then have a trigger set up the variables at map beginning:</p><p></p><p>event - map iniziliation</p><p>conditions- none</p><p>actions:</p><p>-set variable Tips [1] = "Hello everybody"</p><p>-set variable Tips [2] = "What's up?"</p><p>-set variable Tips [3] = "This map pwns"</p><p>-set variable Tips [4] = "This map is tha greatest"</p><p></p><p>Then in that periodic trigger of yours in actions:</p><p></p><p>-set variable rndm_words = (random integer between 1 and 30)</p><p>-Game display "Tips [rndm_words]" for all players for 30 sec</p><p></p><p>But as said, your way works too.</p></blockquote><p></p>
[QUOTE="Mini-Me, post: 125757, member: 5902"] That works, but if you got like 30 tips, there will be 30 if/then/else, making it a very long trigger and maybe bit confusing. There is an other way to do this that i think is simpler and more efficiant. Create a string variable, set it array 30, name it for example "tips". Then have a trigger set up the variables at map beginning: event - map iniziliation conditions- none actions: -set variable Tips [1] = "Hello everybody" -set variable Tips [2] = "What's up?" -set variable Tips [3] = "This map pwns" -set variable Tips [4] = "This map is tha greatest" Then in that periodic trigger of yours in actions: -set variable rndm_words = (random integer between 1 and 30) -Game display "Tips [rndm_words]" for all players for 30 sec But as said, your way works too. [/QUOTE]
Verification
Post reply
Other Gaming Forum
PC games
Warcraft Tools and Tutorials
Run an Object/System at Random
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top