Date: 2015/08/10 10:21:37 UTC-07:00
Type: Denizen Script
#1. Script schreiben mit context args check
# PLANNED: Use command scripts
# Argument Check with excplication if no argument or a false matches
argcheck:
type: world
events:
on myarg command:
- if !<context.args.get[1].contains_any[create|load|select|write|look|narrate|midi]> {
- wait 1t
- narrate "<&e>-----------------------------------------"
- narrate "<&e>Please type a valid argument."
- narrate "<&e>reset <&4>file<&e>.yml| create <&4>file<&e>.yml| load <&4>file<&e>.yml"
- narrate "<&e>select <&4>file<&e>.yml |"
- narrate "<&e>write(location)| look| narrate <&4>message<&e> to:<&4>rangetag"
- narrate "<&e>midi (loaction) to:<&4>rangetag"
- narrate "<&e>-----------------------------------------"
- determine fulfilled
}
#Main Else , if argument selection is okay.
else {
- narrate "<&e>Your Argument is:<&4><context.args.get[1]>"
- inject locally <context.args.get[1]>
}