Difference between revisions of "Logic brains"

From Sunrust Wiki
Jump to navigation Jump to search
 
Line 24: Line 24:
'''input setcalleramount''' <integer>
'''input setcalleramount''' <integer>


Sets the amount that caller has to <number>.
: Sets the amount that caller has to <number>.


'''input callifactivatorhave''' <integer>
'''input callifactivatorhave''' <integer>


If the activator has this amount then OnConditionPassed is thrown, otherwise OnConditionFailed.
: If the activator has this amount then OnConditionPassed is thrown, otherwise OnConditionFailed.


'''input callifactivatornothave''' <integer>
'''input callifactivatornothave''' <integer>


If the activator does not have this amount then OnConditionPassed is thrown, otherwise OnConditionFailed.
: If the activator does not have this amount then OnConditionPassed is thrown, otherwise OnConditionFailed.


'''input callifcallerhave''' <integer>
'''input callifcallerhave''' <integer>


If the caller has this amount then OnConditionPassed is thrown, otherwise OnConditionFailed.
: If the caller has this amount then OnConditionPassed is thrown, otherwise OnConditionFailed.


'''input callifcallernothave''' <integer>
'''input callifcallernothave''' <integer>


If the call does not have this amount then OnConditionPassed is thrown, otherwise OnConditionFailed.
: If the call does not have this amount then OnConditionPassed is thrown, otherwise OnConditionFailed.


'''input redeemactivator''' <void>
'''input redeemactivator''' <void>


Instantly redeems the activator.
: Instantly redeems the activator.


'''input redeemcaller''' <void>
'''input redeemcaller''' <void>


Instantly redeems the caller.
: Instantly redeems the caller.


'''input setredeembrains''' <integer>
'''input setredeembrains''' <integer>


Sets the amount of brains required for a zombie to automatically redeem. Setting it to 0 means no automatic redemptions.
: Sets the amount of brains required for a zombie to automatically redeem. Setting it to 0 means no automatic redemptions.


== Outputs ==
== Outputs ==
'''output OnConditionPassed''' <void>
'''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.
: 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>
'''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.
: 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.
__NOEDITSECTION__
__NOEDITSECTION__

Latest revision as of 05:15, 14 May 2019

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 not 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.