Reading random line.
If i f.e have these four lines:
--- Haha you died! KABOOM! HE powa? Do not mess with explosives... --- What should i do if i want a random line to appear when someone is killed by a HE.... - How the event works. I just dont know how to take a random line. |
Re: Reading random line.
Code:
|
Re: Reading random line.
A better way to do this.
Code:
If you were trying to read those 4 lines off of a file and store it into the plugin. There alot of tutorials or people that got help with how to read files in the scripting section. |
Re: Reading random line.
Do you mean a random line from a file? That can be done with the following.
Code:
|
Re: Reading random line.
No..
teame06: Why is it random(0,3) - When there's 4 in the "const" |
Re: Reading random line.
Quote:
|
Re: Reading random line.
Okay thanks..
|
Re: Reading random line.
This isent a part of the topic..
But do you know how to get the TEAM's score? |
Re: Reading random line.
Register every time when a Team wins and add 1 to a specific variable.
Use the Search to find what logevents to use. And dont forget to set back to 0 when Game Commencing. |
Re: Reading random line.
You can register the TeamScore message and remember what its values are in your own variables.
|
| All times are GMT -4. The time now is 04:56. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.