HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

help system

01-14-2004, 04:33 PM#1
Crimsongg137
how do i make a chat system thing that helps players... for example,
like hints to playin the game..
well im lookin foward to arrays wit the chat hint messagin thing..
01-14-2004, 04:42 PM#2
Eriond
Well, here's a trigger that willo help players when they type: -Help

Code:
Events - Player 1 (Red) types -Help as an exact match
Player 2 (Blue) types -Help as an exact match
(Do this for all the players)

Actiosn - Game - Display message to (Triggering Player) for 10.00 seconds, diaplying text: <Your help message here>

There you go, that should work.
01-14-2004, 04:53 PM#3
Crimsongg137
is there a way where it is auto and u have to either turn it off
for example
*hint - the ocean is blue(some **** like that)
i f u would like to turn the hints off type off hints
then like 30 secs after it will say another hint.. it has to do wit arrays i no it but idono wut to do
01-14-2004, 05:02 PM#4
AllPainful
You mean every 30 seconds you want it to randomly display a random text?

Variable = String Array, named "Text"

Triggers (3 of them)
Code:
Trigger1 = Set Variable
Event
  Map Init
Condition
Actions
  Set Text[1] = "Random message 1"
  Set Text[2] = "Random message 2"
  Set Text[3] = "Random message 3"
  Set Text[4] = "Random message 4"
  Set Text[5] = "Random message 5"
......Ect, ect.....

Trigger2 = Random message
Event
  Every 30 seconds of game
Conditions
Actions
  Display text to all players Text[random number between 1 and #]

Trigger3 = Turn off hints
Event
  Player 1 enters chat string "NoHint"
  Player 2 enters chat string "NoHint"
  Player 3 enters chat string "NoHint"
  .....ect, ect.......
Conditions
Actions
  Turn off Trigger (Random Message)

Where the # in the second trigger is the highest number you went to in the set variable trigger.
01-14-2004, 05:12 PM#5
Crimsongg137
thanks alot
01-14-2004, 10:54 PM#6
Vilex
Or.... u could used elasped time... but that would be kinda sloppy... i mean just for like if u did like 4 hints... if there was like 20 use the array!:ggani: