Giter VIP home page Giter VIP logo

event_firerelaynum's Introduction

Output Event - FireRelayNum (v10)

Choose which onRelays to fire

Description

You choose which onRelays to fire. Just insert the number, or numbers of those relays.

Example

onActivate -> Self -> fireRelayNum ( 1, Brick)
onRelay -> Self -> setColor ( blue )
onRelay -> Self -> setColor ( white )

The brick will be colored blue. You can also insert multiple number, like: 1 5-7 9 11 15-17 That will fire the relays on: 1, 5, 6, 7, 9, 11, 15, 16 and 17.

The list is the direction of the event where Brick is the default current brick.

onActivate -> Self -> fireRelayRandomNum ( "1-2", Brick )
onRelay -> Self -> setColor ( blue )
onRelay -> Self -> setColor ( white )

The brick will randomly become blue or white.

Protip: Adding the same number more times in fireRelayRandomNum results in it being picked more frequently.

"If the event does not come to you, you come to it."

Installation

Put Event_FireRelayNum.zip into the Add-Ons folder in your Blockland folder.

event_firerelaynum's People

Contributors

mctwist avatar

Watchers

 avatar  avatar

event_firerelaynum's Issues

Add fireRandomRelayNum

From suggestion, it would be interesting to add either as an addition in the form of a checkbox or a totally new output event, the ability to randomly pick one of the events specified in the input field.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.