Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ONINPUT "Arties" {^artie(wear|unwear)(?:(?<=unwear) (drop|give)(?:(?<=give)(?: to|)( \w+)|)|)(?: (?<!unwear)(get)|)$} {#sub {}
- #loopdb @artefacts {#if (%lower( %4)=get) {%4 %key}
- #if %val=1 {%1 %key};#if (%lower( %2)=give and %3!=%null or %lower( %2)=drop) {%2 %key to %3}}
- #alarm +0:0:0.5 {#echo ""
- #echo ""
- #loopdb @artefacts {#if %val=1 {#echop wear %key"~~; "}}}
- } "" {prompt|regex}
- -=======++++++========_
- PATTERN:
- ^artie(wear|unwear)(?:(?<=unwear) (drop|give)(?:(?<=give)(?: to|)( \w+)|)|)(?: (?<!unwear)(get)|)$
- SCRIPT:
- #sub {}
- #loopdb @artefacts {
- #if (%lower( %4)=get) {%4 %key}
- #if %val=1 {%1 %key}
- #if (%lower( %2)=give and %3!=%null or %lower( %2)=drop) {%2 %key to %3}
- }
- #alarm +0:0:0.5 {
- #echo ""
- #echo ""
- #loopdb @artefacts {#if %val=1 {#echop wear %key"~~; "}}
- }
- #noop
- What this does: "Artiewear" "artiewear get" "artieunwear" "artieunwear drop" "artieunwear give (to) person". In zmud, this works fine, since %2, %3, and %4 are allowed to be null. In MUSH, there is no way to do this... if they are null, you get errors.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement