2 Questions

Lady MufflaN

New Member
Reaction score
4
1) How do I check if a countdown timer have expired?

2) How do I check if a specific string have been said in the chat? I.E, there is a math problem where the answer is 3, and I need the players to enter "3", (OPTIONAL) Also if they fail 5 times at the answer, it will the needed answer.
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
1.

Countdown timer - Start myTimerVariable as ...

Event:
- Time - myTimerVariable expires


2.
Well, you need to register some text in the event...

Event:
- Player - Player 1 types a chat messages containing 3 as an exact match

Or
"-answer " as a substring,
and a test: "if SubString((Entered chat string), 9, Length of (Entered chat string)) equal to 3 then".
 

ZeroThirteen

New Member
Reaction score
35
1) There is an event. (Time - (Timer) expires)
2) You'll need 2 triggers and a variable (interger) (I called it "Counter"). In your first trigger, do this.

You'll need to copy the trigger for each player who can enter it.
Code:
Events
   Player 1 types a chat message containing <Empty String> as A substring (hit enter when you click on the "String" value to set it to <empty String>)
Conditions
   Counter less than 5
Actions
   If (Entered chat string) equal to (your string) then do (your actions) else do Set Counter = Counter + 1

And a second trigger:

Again, make one for each player.
Code:
Events
   Player 1 types a chat message containing <Empty String> as A substring
Conditions
   Counter Greater than or equal to 5
Actions
   (Your actions)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top