Jump to content
Sign in to follow this  
FrankManic

Newbie needs help: How do I get an array in a hint?

Recommended Posts

So I've got an array, and I want to randomly choose one entry from the array and display it as a hint.

_myarray = ["fred", "dave", "tom", "dick", "harry"];
_myRNJesus = _myarray select floor random count _myarray;
hint "_myRNJesus";

I've got a trigger that calls that script set up, but nothing appears on screen. Unfortunately I don't know enough to figure out what I'm doing wrong. Any help would be greatly appreciated.

My ultimate goal is to use the whole random array thing to choose random markers as spawn points for mission objectives to give my missions more replayability, so any comments on how to do that would be appreciated as well.

Share this post


Link to post
Share on other sites

Could also do:

hint str(_myRNJesus);

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×