How To Do: Randomizer Time Attack Difficulty 4/10 🟢 (Very Helpful)

You wanna do this, here you go!..

Devices Needed-

  1. Lifecycle: Starts the timer when the game begins.
  2. Property: Stores the randomly generated time (number type).
  3. Trigger:
    Generates the random time.
    Starts the main timer (repeater).
    Triggers the monster’s attack with a delay.
  4. Repeater: This is the timer itself.
  5. Monster/Sentry: This entity attacks the player.

To set it up :down_arrow:

  1. Lifecycle to Random Trigger:
    Place a Lifecycle and set the event to, Game Start
    Place a Trigger (call it Random Time Trigger, because it sounds more logical)
    Wire the Lifecycle to the “Random Time Trigger”: Lifecycle (Game Start) < Random Time Trigger (Trigger).

  2. Random Time Generation:
    Open the block code for the “Random Time Trigger”
    Create a new number property (lik attackTimer). Set its default to 0.
    Use a “set property” block to set AttackTimer to a random number between 45 and 60.
    The random number block is in the math section of blocks.

  3. Trigger to Start Repeater:
    Place another Trigger (call it “Start Timer Trigger”).
    Wire the “Random Time Trigger” to “Start Timer Trigger”: Random Time Trigger (Trigger) < Start Timer Trigger (Trigger).

  4. Setting up a REPEATER:-(Important)
    Place a Repeater.
    Wire “Start timer trigger” to the Repeater to start it: Start timer trigger (Trigger) < Repeater (Start)`.
    In the Repeater’s settings:
    Set Task Interval to 1 (for 1-second intervals).
    Set Time to Run, to …“”“Until receiving on a channel”“”…(important)

  5. Checking time and triggering Attack:
    Place a Trigger (call it Attack Trigger)
    Wire Repeater to Attack Trigger: Repeater (Task runs) < Attack Trigger (Trigger)
    In the “Attack Trigger” settings:
    Set Triggered by to, Never.
    Enable “Run Delay” and set it to 10 seconds (or whatever delay you want bros and brodettes).
    Wire Attack Trigger to the monster’s attack logic (like , start attacking the player, move toward the player, ) (there is a lot of the word “trigger”, also Important)

Hope you guys find it convenient!
(Furthermore, this is my first “Community Made Guides!”)

5 Likes

Your welcome @ChrisPresents_X glad that I helped!

Pretty good, but remember pictures are powerful! Without them this guide is fairly hard to follow and just looks like a text wall. Also make sure to add space…

Like this to separate ideas and make it more appealing to the eyes. Lines also


Split up ideas well!

1 Like

sorry @Here_to_help, this was my first guide, sorry.

(also I cant really add pictures because my harddisk is full, thanks for telling me though!)

2 Likes

It’s fine! The guide looks much better now!

2 Likes

Looks awesome! And I hope alot of ppl use this! (Yw for the idea btw)