Logic brains
Allows you to control and call outputs based on brains.
Inputs
input addtoactivator <integer>
- Adds <number> to the activator.
input addtocaller <integer>
- Adds <number> to the caller.
input takefromactivator <integer>
- Takes <number> from the activator.
input takefromcaller <integer>
- Takes <number> from the caller.
input setactivatoramount <integer>
- Sets the amount that activator has to <number>.
input setcalleramount <integer> Sets the amount that caller has to <number>.
input callifactivatorhave <integer> If the activator has this amount then OnConditionPassed is thrown ,otherwise OnConditionFailed.
input callifactivatornothave <integer> If the activator does bot have this amount then OnConditionPassed is thrown, otherwise OnConditionFailed.
input callifcallerhave <integer> If the caller has this amount then OnConditionPassed is thrown, otherwise OnConditionFailed.
input callifcallernothave <integer> If the call does not have this amount then OnConditionPassed is thrown, otherwise OnConditionFailed.
input redeemactivator <void> Instantly redeems the activator.
input redeemcaller <void> Instantly redeems the caller.
input setredeembrains <integer> Sets the amount of brains required for a zombie to automatically redeem. Setting it to 0 means no automatic redemptions.
Outputs
output OnConditionPassed <void> Thrown by ourselves when a condition is passed. The activator is always the player in question. The arguments are the amount that was checked against.
output OnConditionFailed <void> Thrown by ourselves when a condition is failed. The activator is always the player in question. The arguments are the amount that was checked against.