Denizen/Requirements: Difference between revisions

From Citizens Wiki
(Created page with "Requirements are no longer needed as of 0.9 thanks to the - IF { .. } command, however they are still supported to avoid breaking old scripts. They are written near the top of...")
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
Requirements are no longer needed as of 0.9 thanks to the - IF { .. } command, however they are still supported to avoid breaking old scripts. They are written near the top of interact scripts like so:


MyInteractScript:
For more up-to-date information and full details on specific features (individual commands or tags, for example), check the [https://meta.denizenscript.com/ Meta Documentation].
 
If you want a full tutorial to help get you set up, check out the [https://guide.denizenscript.com/ Beginner's Guide] text website.
 
If you need quick help, visit our [https://discord.gg/Q6pZGSR Discord group].
 
<br><br><br>
 
<span style="font-family:natalya-alternate-one; font-size:300%; margin-right:-7px; margin-left:-10px;">This wiki is outdated, please view the tutorial videos/guide, meta documentation, or Discord group (all linked above) for up-to-date information!</span>
 
<br><br><br>
 
 
 
 
 
 
 
 
 
Requirements are no longer needed as of 0.9 thanks to the - IF { .. } command, however they are still supported to avoid breaking old scripts.
 
 
= How To Use Requirements =
 
They are written near the top of interact scripts like so:
 
<pre>MyInteractScript:
     Type: Interact
     Type: Interact
     Requirements:
     Requirements:
Line 7: Line 33:
         List:
         List:
         - FirstReq
         - FirstReq
         - SecondReq etc. etc.
         - SecondReq etc. etc.</pre>


= List of requirements =  
= List Of Requirements =  


enchanted, flagged, holding, ingroup, item, isliquid, money, op, owner, permission, ispowered, oxygen, procedure, script, sneaking, storming, sunny, rainy, time, inregion
enchanted, flagged, holding, ingroup, item, isliquid, money, op, owner, permission, ispowered, oxygen, procedure, script, sneaking, storming, sunny, rainy, time, inregion


- enchanted (iteminhand)
<pre>- enchanted (iteminhand)
- flagged [player/npc/global] [<name>([<#>])](:<value>)
- flagged [player/npc/global] [<name>([<#>])](:<value>)
- holding [<item>] [qty:<#>] [exact]
- holding [<item>] [qty:<#>] [exact]
Line 32: Line 58:
- rainy
- rainy
- time [dawn/day/dusk/night]
- time [dawn/day/dusk/night]
- inregion [name:<region>]
- inregion [name:<region>]</pre>

Latest revision as of 18:58, 3 September 2021

For more up-to-date information and full details on specific features (individual commands or tags, for example), check the Meta Documentation.

If you want a full tutorial to help get you set up, check out the Beginner's Guide text website.

If you need quick help, visit our Discord group.




This wiki is outdated, please view the tutorial videos/guide, meta documentation, or Discord group (all linked above) for up-to-date information!








Requirements are no longer needed as of 0.9 thanks to the - IF { .. } command, however they are still supported to avoid breaking old scripts.


How To Use Requirements

They are written near the top of interact scripts like so:

MyInteractScript:
    Type: Interact
    Requirements:
        Mode: 
        List:
        - FirstReq
        - SecondReq etc. etc.

List Of Requirements

enchanted, flagged, holding, ingroup, item, isliquid, money, op, owner, permission, ispowered, oxygen, procedure, script, sneaking, storming, sunny, rainy, time, inregion

- enchanted (iteminhand)
- flagged [player/npc/global] [<name>([<#>])](:<value>)
- holding [<item>] [qty:<#>] [exact]
- ingroup (global) [<group>]
- item [<item>] (qty:<#>)
- isliquid [location:<location>]
- money [qty:<#>]
- op
- owner
- permission (global) [<permission>]
- ispowered [location:<location>]
- oxygen (range:below/equals/above) [qty:<#>]
- procedure [<script>]
- script [finished/failed] [script:<name>]
- sneaking
- storming (????????????????????) (This req is ill-defined)
- sunny
- rainy
- time [dawn/day/dusk/night]
- inregion [name:<region>]