Trigger Help

Synvarius

New Member
Reaction score
0
Can anyone explain how I would create a trigger that does something like:

Player 1 types in -roll

It rolls a virtual dice, landing on 1-6

Then, if it lands on 4, it plays a sound file
but also, if it lands on any of the other numbers,
it plays a different file. ( it would play a file for 1-6, whichever it lands on)
 

DuelPlayer

Member
Reaction score
21
Can anyone explain how I would create a trigger that does something like:

Player 1 types in -roll

It rolls a virtual dice, landing on 1-6

Then, if it lands on 4, it plays a sound file
but also, if it lands on any of the other numbers,
it plays a different file. ( it would play a file for 1-6, whichever it lands on)

HAND DRAWN
Trigger:
  • Event
    • Player types -roll
    • Condition
      • (anything you want)
    • Action
      • Set temp_integer = a random integer between 1 and 6
      • If
      • Condition - temp_integer = 1 or anything else
      • Action - play a sound file




_______________________________________________________________

Most Unpopular Project:
 

NindoOne

TH.net Regular
Reaction score
17
This is a basic trigger:
Trigger:
  • Dice
    • Events
      • Player - Player 1 (Red) types a chat message containing -roll as An exact match
    • Conditions
    • Actions
      • Set Dice = (Random integer number between 1 and 6)
      • Game - Display to Player Group - Player 1 (Red) for 2.00 seconds the text: (You rolled + ((String(Dice)) + !))
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Dice Equal to 6
        • Then - Actions
          • Sound - Play GoodJob <gen>
        • Else - Actions
          • Sound - Play Error <gen>
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top