HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Random Message Displayed After Random Time Interval, Help

11-17-2002, 09:27 PM#1
Guest
I currently have my map setup so that if you type "-dark jojo" that you will receive a random message, from a pool of 30 messages. I want to change this so that at a random time, of up to 20 minutes, you will receive a random message from the pool of 30 messages. So maybe the first message is sent at 14 minutes, the next 4 minutes later, the next 20, the next, 12 minutes later, and so on. I am confused on how to do this. Can somebody please give me the low down on the triggers and variables needed to accomplish this? I've included a copy of my map for reference if you would like to see how my current "-dark jojo" text trigger works.
11-18-2002, 12:31 AM#2
Guest
Trigger 1:
Event - Map Intialization
Actions - Start RandomTimer as a one-shot timer than will expire in ((I2R (RandomNumer from 1 to 20)) * 60 )seconds.

Trigger 2:
Event - RandomTimer expires
Actions - Display your random text (as way as with the chat message).
Start RandomTimer as a one-shot timer than will expire in ((I2R (RandomNumer from 1 to 20)) * 60 )seconds.
11-18-2002, 05:34 PM#3
Guest
Just to add on what was said before, try making an array of strings and then selecting a random number between 0 and 29 to get your random message.

Now if you really want to get sneaky, you could also have like 3 groups of parts of a sentence, example:

Group 1 (Nominals)
"I want"
"You can never want"
"I laugh at your attempt"

Group 2 (verbals)
"to kill"
"to attack"
"to play with"
"to hear"

Group 3 (objects)
"me."
"myself."
"your words."
"my voice."
"your dog."

etc.

Then you can use if...then statements, along with a few random numbers, to choose a sentence out of the three groups. Note that the above examples aren't that great (though I would stay away from an enemy who taunts with "I want to play with myself.")
11-18-2002, 08:19 PM#4
Guest
I am confused about Sharsnik's first trigger. Could you tell me in detail how I would make that trigger? Or what triggers to select on the drop down lists to create the corrisponding peices of the whole trigger? I cannot figure it out.

Trigger 1:
Event - Map Intialization
Actions - Start RandomTimer as a one-shot timer than will expire in ((I2R (RandomNumer from 1 to 20)) * 60 )seconds.


I've got as far as ((I2R (RandomNumer from 1 to 20)) * 60 )seconds


However I do not understand what the * represents before 60 seconds. What is I2R? Please explain.
11-18-2002, 08:21 PM#5
Guest
Generalmx, I love your idea. However, I think it is far to complicated for me to impliment successfully. My understanding of variables is quite limited as I have just now started to use them and I am still working on my first map; albeit I've been working on it for 2.5 months now. That does sound bad *** though :D