Fandom

Hammerwatch Wiki

Random

111pages on
this wiki
Add New Page
Comments0 Share
Random

Random is a logic-type scripting element that can be used to create a random choice. It has two modes of operation. By default, when triggered it will trigger any linked script nodes with a 50 percent chance on each node separately. This is similar to the random ball grid bonus rooms found in the campaign.

FieldsEdit

Random has two fields:

  • Nodes: The scripts that will be triggered by Random.
  • Run one: Check-box. By checking this box, it will cause the Random script to always select only one output.

TipsEdit

A good example for the usage of the "Run one" check-box is in the creation of random paths.

It is possible to select the same script node multiple times to increase the chance of it being selected when using the 'Run one' flag.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.