Help - Search - Members - Calendar
Full Version: Vodun Script
Achaea's Forums > Off-Topic > Tech Support > Curing Systems and Scripts
Caska
I realize this has been done on the forums, but is there a Zmud - Cmud script converter? I would like a Doll script to track my dolls, but it seems the only ones out are for Zmud and I currently use Cmud... Any help would be fine.

Thank you in advance.
Trilliana
Cmud, Window > Editor. Copy/ paste the zmud script in that. Tools> Syntax check. Modify if need be. File>Send
Caska
I don't understand why exactly this isn't working...

QUOTE
#class {puppetry handling}
var puppets
#alias {pupcap} {#var pupcapture 1;ii puppets}
#alias {gpup} {#forall %db( @puppets,%1) {g %i from pack12345}}
#alias {ppup} {#forall %db (@puppets,%1) {put %i in pack12345}}
#alias {pallp} {#forall %db(@puppets) {put %i in pack12345}}
#regex {^(\s+)Puppet(\d+)(\s+)A (?:living |nearly perfect |well-made |)vodun doll (?ohmy.giff|roughly resembling) (\w+)$} {#if (@pupcapture=1) {#addk {%4=%2}}}
#regex {^Type MORE to continue reading\.} {#if pupcapture=1) {more}}
#regex {^You are wearing\:$} {#var pupcapture 0}
#class 0


Anyone mind aiding me?
Trevize
QUOTE (Caska @ Aug 8 2009, 01:16 AM) *
var puppets

Needs a # before and {} after

QUOTE (Caska @ Aug 8 2009, 01:16 AM) *
#alias {gpup} {#forall %db( @puppets,%1) {g %i from pack12345}}
#alias {ppup} {#forall %db (@puppets,%1) {put %i in pack12345}}
#alias {pallp} {#forall %db(@puppets) {put %i in pack12345}}

What exactly are you trying to do? #forall %db() does not look right to me at all...

QUOTE (Caska @ Aug 8 2009, 01:16 AM) *
#regex {^(\s+)Puppet(\d+)(\s+)A (?:living |nearly perfect |well-made |)vodun doll (?ohmy.giff|roughly resembling) (\w+)$} {#if (@pupcapture=1) {#addk {%4=%2}}}

#addk {%4=%2} is also not a proper use of #addkey. The prototype looks like #addkey recordvar key value
Sena
'#forall %db( @puppets,%1)' would be correct, if there's a possibility of a stringlist being the value. I use that sometimes. You could have more than one puppet of someone, if you're in the arena and made a second puppet in the arena.

'#ADDKEY variable {key=value}' also seems to work, I just tried it.

The only problems I can see (without any understanding of CMUD's differences) is the 'var puppets' part, and a missing ( and @ in '#regex {^Type MORE to continue reading\.} {#if pupcapture=1) {more}}'. It should be '#if (@pupcapture=1) {more}'
Trevize
QUOTE (Sena @ Aug 8 2009, 07:31 PM) *
'#forall %db( @puppets,%1)' would be correct, if there's a possibility of a stringlist being the value. I use that sometimes. You could have more than one puppet of someone, if you're in the arena and made a second puppet in the arena.

blush.gif Oops. I was thinking the opposite.

QUOTE (Sena @ Aug 8 2009, 07:31 PM) *
'#ADDKEY variable {key=value}' also seems to work, I just tried it.

That... I didn't know.
Sena
QUOTE (Trevize @ Aug 8 2009, 09:49 PM) *
QUOTE (Sena @ Aug 8 2009, 07:31 PM) *
'#ADDKEY variable {key=value}' also seems to work, I just tried it.

That... I didn't know.

I didn't either. tongue.gif It makes sense though, since the help file mentions being able to add multiple key=value pairs using #ADDKEY variable {key1=value1|key2=value2}
Trevize
QUOTE (Sena @ Aug 8 2009, 09:52 PM) *
QUOTE (Trevize @ Aug 8 2009, 09:49 PM) *
QUOTE (Sena @ Aug 8 2009, 07:31 PM) *
'#ADDKEY variable {key=value}' also seems to work, I just tried it.

That... I didn't know.

I didn't either. tongue.gif It makes sense though, since the help file mentions being able to add multiple key=value pairs using #ADDKEY variable {key1=value1|key2=value2}

Ohhh. Huh.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.