How would i pick a random phrase out of a list and have it be displayed to the entire world?
~>Jiskuha
ID:170314
Feb 12 2005, 5:41 pm
|
|
Feb 12 2005, 5:51 pm
|
|
Using the pick function.
|
A better way would be
var/probables[]=list("prob1","prob2","prob3") |
In response to Angel_Inc
|
|
And why would that be better for this situation?
|
In response to DeathAwaitsU
|
|
DeathAwaitsU wrote:
And why would that be better for this situation?it broadens the horizon of the code and eliminates sensless declarings of new vars :P |
In response to Angel_Inc
|
|
Angel_Inc wrote:
DeathAwaitsU wrote: Heh. No seriously, what's the real reason? Your pick_() proc does nothing that the real pick() does not. There's no reason to add it, and it doesn't "broaden the horizon" of anything. As for senseless declarings, you wouldn't have to declare a new var to use pick() instead, and here you're just senselessly declaring a new proc you don't need. Lummox JR |
In response to Angel_Inc
|
|
If you are so worried about having to make a new var, couldn't you just use about the same thing you did?
var/list/phrases = list("hello","hi","nononono") And wala, no need for a new var. EDIT:This would also work.. var/list/phrases = list("hello","hi","nononono") |
In response to XxDohxX
|
|
As hurt as I feel right now I will Maintain my integrity and pride
*Holds head high*but you guyz are righht. |