 |
| TheLastHawk |
Posted: Sat Aug 19, 2006 12:29 pm
Why change and change and change??? |
 |
Vitae Enchanter

Joined: 17 Jun 2005 Posts: 673 Location: New York
|
Posted: Thu Aug 24, 2006 3:43 pm |
WAIT A SEC!!
Your gonna say that ALL OF THIS
| Code: |
<?xml version="1.0" encoding="UTF-8" ?>
<package name="ToTrain">
<record id="1048708">
<id>1048708</id>
<kind>0</kind>
<parent>2097151</parent>
<pkgid>1048708</pkgid>
<enabled>-1</enabled>
<idname>ToTrain</idname>
<options/>
<userval/>
<val/>
<comment/>
<name>{*}</name>
<subkind>0</subkind>
<valkind>0</valkind>
<opt>256</opt>
<owner>2097151</owner>
<userint>0</userint>
<priority>0</priority>
<flag>128</flag>
<state>0</state>
<memref>45037888</memref>
</record>
<record id="1048710">
<id>1048710</id>
<kind>2</kind>
<parent>1048708</parent>
<pkgid>1048708</pkgid>
<enabled>-1</enabled>
<idname>stt</idname>
<options/>
<userval/>
<val>#VARIABLE counter 0
#T+ triggers
#WAIT 1000
skill spells
#WAIT 2000
#T- triggers</val>
<comment/>
<name>{*}</name>
<subkind>0</subkind>
<valkind>0</valkind>
<opt>0</opt>
<owner>1048708</owner>
<userint>0</userint>
<priority>1340</priority>
<flag>128</flag>
<state>0</state>
<memref>45673264</memref>
</record>
<record id="1048711">
<id>1048711</id>
<kind>2</kind>
<parent>1048708</parent>
<pkgid>1048708</pkgid>
<enabled>-1</enabled>
<idname>ptt</idname>
<options/>
<userval/>
<val>#VARIABLE counter 0
#T+ Triggers
#WAIT 1000
skill prof
#WAIT 2000
#T- Triggers</val>
<comment/>
<name>{*}</name>
<subkind>0</subkind>
<valkind>0</valkind>
<opt>0</opt>
<owner>1048708</owner>
<userint>0</userint>
<priority>1350</priority>
<flag>128</flag>
<state>0</state>
<memref>45673648</memref>
</record>
<class name="Triggers">
<record id="1048712">
<id>1048712</id>
<kind>1</kind>
<parent>1048708</parent>
<pkgid>1048576</pkgid>
<enabled>0</enabled>
<idname>Triggers</idname>
<options/>
<userval/>
<val/>
<comment/>
<name>{*}</name>
<subkind>0</subkind>
<valkind>0</valkind>
<opt>2</opt>
<owner>1048708</owner>
<userint>0</userint>
<priority>0</priority>
<flag>128</flag>
<state>0</state>
<memref>69072336</memref>
</record>
<record id="1048701">
<id>1048701</id>
<kind>5</kind>
<parent>1048712</parent>
<pkgid>1048576</pkgid>
<enabled>-1</enabled>
<idname>~[ ~# ~] ~[(%s)(%w) Name(%s)~](*)</idname>
<options/>
<userval/>
<val>#var skilltype %2;#if (@skilltype == "Spell") {#var skilltype "spells"};#if (@skilltype == "Proficiency") {#var skilltype "proficiencies"}</val>
<comment/>
<name>{*}</name>
<subkind>0</subkind>
<valkind>0</valkind>
<opt>137</opt>
<owner>1048712</owner>
<userint>0</userint>
<priority>1250</priority>
<flag>128</flag>
<state>0</state>
<memref>76383824</memref>
</record>
<record id="1048702">
<id>1048702</id>
<kind>5</kind>
<parent>1048712</parent>
<pkgid>1048576</pkgid>
<enabled>-1</enabled>
<idname><![CDATA[(%d)(*){@schools}%s%d~%%s&percent~%]]></idname>
<options/>
<userval/>
<val><![CDATA[#IF (@percent < 74) {#SUBSTITUTE %ansi(yellow,bold)%trigger} {#IF (@percent > 74) {#IF (@percent < 85) {#SUBSTITUTE %ansi(green,bold)%trigger;#ADD counter 1} {#IF (@percent > 99) {#SUBSTITUTE %ansi(red,bold)%trigger;#ADD counter 1} {#IF (@percent > 85 and @percent < 100) {#SUBSTITUTE %ansi(blue,bold)%trigger;#ADD counter 1}}}}}]]></val>
<comment/>
<name>{*}</name>
<subkind>0</subkind>
<valkind>0</valkind>
<opt>137</opt>
<owner>1048712</owner>
<userint>0</userint>
<priority>1260</priority>
<flag>128</flag>
<state>0</state>
<memref>76383984</memref>
</record>
<record id="1048703">
<id>1048703</id>
<kind>5</kind>
<parent>1048712</parent>
<pkgid>1048576</pkgid>
<enabled>-1</enabled>
<idname><![CDATA[(%d)(*){@schools}%s%d%s(%d)~%%s&percent~%]]></idname>
<options/>
<userval/>
<val><![CDATA[#IF (@percent < 74) {#SUBSTITUTE %ansi(yellow,bold)%trigger} {#IF (@percent > 74) {#IF (@percent < 85) {#SUBSTITUTE %ansi(green,bold)%trigger;#ADD counter 1} {#IF (@percent > 99) {#SUBSTITUTE %ansi(red,bold)%trigger;#ADD counter 1} {#IF (@percent > 85 and @percent < 100) {#SUBSTITUTE %ansi(blue,bold)%trigger;#ADD counter 1}}}}}]]></val>
<comment/>
<name>{*}</name>
<subkind>0</subkind>
<valkind>0</valkind>
<opt>137</opt>
<owner>1048712</owner>
<userint>0</userint>
<priority>1270</priority>
<flag>128</flag>
<state>0</state>
<memref>76384144</memref>
</record>
<record id="1048704">
<id>1048704</id>
<kind>5</kind>
<parent>1048712</parent>
<pkgid>1048576</pkgid>
<enabled>-1</enabled>
<idname>~[C~]ontinue ~[R~]edraw ~[B~]ack ~[E~]xit:</idname>
<options/>
<userval/>
<val>#GAG;#CR</val>
<comment/>
<name>{*}</name>
<subkind>0</subkind>
<valkind>0</valkind>
<opt>138</opt>
<owner>1048712</owner>
<userint>0</userint>
<priority>1280</priority>
<flag>128</flag>
<state>0</state>
<memref>76384304</memref>
</record>
<record id="1048705">
<id>1048705</id>
<kind>5</kind>
<parent>1048712</parent>
<pkgid>1048576</pkgid>
<enabled>-1</enabled>
<idname><![CDATA[^You have the ability to learn ~[&total]]]></idname>
<options/>
<userval/>
<val>#math totaltrain (@total-@counter)</val>
<comment/>
<name>{*}</name>
<subkind>0</subkind>
<valkind>0</valkind>
<opt>137</opt>
<owner>1048712</owner>
<userint>0</userint>
<priority>1290</priority>
<flag>128</flag>
<state>0</state>
<memref>76384464</memref>
</record>
<record id="1048706">
<id>1048706</id>
<kind>5</kind>
<parent>1048712</parent>
<pkgid>1048576</pkgid>
<enabled>-1</enabled>
<idname>^You have ~[%d~] practice sessions.</idname>
<options/>
<userval/>
<val>#echo %ansi( grey)You have %ansi( blue, high)~[%ansi( grey)@totaltrain%ansi( blue, high)~]%ansi( grey) @skilltype left to train.</val>
<comment/>
<name>{*}</name>
<subkind>0</subkind>
<valkind>0</valkind>
<opt>137</opt>
<owner>1048712</owner>
<userint>0</userint>
<priority>1300</priority>
<flag>128</flag>
<state>0</state>
<memref>76384624</memref>
</record>
<record id="1048707">
<id>1048707</id>
<kind>5</kind>
<parent>1048712</parent>
<pkgid>1048576</pkgid>
<enabled>-1</enabled>
<idname>^Color Key: ~[Active~] ~[Inactive~] ~[Altered +~] ~[Altered -~] </idname>
<options/>
<userval/>
<val>#GAG</val>
<comment/>
<name>^Color Key: ~[Active~] ~[Inactive~] ~[Altered +~] ~[Altered -~] ~[Unavailable~]</name>
<subkind>0</subkind>
<valkind>0</valkind>
<opt>137</opt>
<owner>1048712</owner>
<userint>0</userint>
<priority>1310</priority>
<flag>128</flag>
<state>0</state>
<memref>76384784</memref>
</record>
</class>
<record id="1048713">
<id>1048713</id>
<kind>3</kind>
<parent>1048708</parent>
<pkgid>1048708</pkgid>
<enabled>-1</enabled>
<idname>counter</idname>
<options/>
<userval/>
<val>45</val>
<comment/>
<name>{*}</name>
<subkind>0</subkind>
<valkind>0</valkind>
<opt>0</opt>
<owner>1048708</owner>
<userint>0</userint>
<priority>1370</priority>
<flag>128</flag>
<state>0</state>
<memref>84115528</memref>
</record>
<record id="1048728">
<id>1048728</id>
<kind>3</kind>
<parent>1048708</parent>
<pkgid>1048708</pkgid>
<enabled>-1</enabled>
<idname>skilltype</idname>
<options/>
<userval/>
<val>spells</val>
<comment/>
<name>{*}</name>
<subkind>3</subkind>
<valkind>0</valkind>
<opt>0</opt>
<owner>1048708</owner>
<userint>0</userint>
<priority>1520</priority>
<flag>128</flag>
<state>0</state>
<memref>84115632</memref>
</record>
<record id="1048729">
<id>1048729</id>
<kind>3</kind>
<parent>1048708</parent>
<pkgid>1048708</pkgid>
<enabled>-1</enabled>
<idname>percent</idname>
<options/>
<userval/>
<val>Mys: 100</val>
<comment/>
<name>{*}</name>
<subkind>0</subkind>
<valkind>0</valkind>
<opt>0</opt>
<owner>1048708</owner>
<userint>0</userint>
<priority>1530</priority>
<flag>128</flag>
<state>0</state>
<memref>84115736</memref>
</record>
<record id="1048730">
<id>1048730</id>
<kind>3</kind>
<parent>1048708</parent>
<pkgid>1048708</pkgid>
<enabled>-1</enabled>
<idname>total</idname>
<options/>
<userval/>
<val>128</val>
<comment/>
<name>{*}</name>
<subkind>0</subkind>
<valkind>0</valkind>
<opt>0</opt>
<owner>1048708</owner>
<userint>0</userint>
<priority>1540</priority>
<flag>128</flag>
<state>0</state>
<memref>84115840</memref>
</record>
<record id="1048731">
<id>1048731</id>
<kind>3</kind>
<parent>1048708</parent>
<pkgid>1048708</pkgid>
<enabled>-1</enabled>
<idname>totaltrain</idname>
<options/>
<userval/>
<val>60</val>
<comment/>
<name>{*}</name>
<subkind>0</subkind>
<valkind>0</valkind>
<opt>0</opt>
<owner>1048708</owner>
<userint>0</userint>
<priority>1550</priority>
<flag>128</flag>
<state>0</state>
<memref>84115944</memref>
</record>
</package>
|
Comes out to BE THIS:
| Code: |
#alias stt {
#VARIABLE counter 0
#T+ triggers
#WAIT 1000
skill spells
#WAIT 2000
#T- triggers
}
#alias ptt {
#VARIABLE counter 0
#T+ Triggers
#WAIT 1000
skill prof
#WAIT 2000
#T- Triggers
}
#trigger {~[ ~# ~] ~[(%s)(%w) Name(%s)~](*)} {
#var skilltype %2
#if (@skilltype == "Spell") {#var skilltype "spells"}
#if (@skilltype == "Proficiency") {#var skilltype "proficiencies"}
}
#trigger {~[C~]ontinue ~[R~]edraw ~[B~]ack ~[E~]xit:} {
#GAG
#CR
} "" {nocr|prompt}
#trigger {^You have ~[%d~] practice sessions.} {#echo %ansi( grey)You have %ansi( blue, high)~[%ansi( grey)@totaltrain%ansi( blue, high)~]%ansi( grey) @skilltype left to train.}
#trigger {^Color Key: ~[Active~] ~[Inactive~] ~[Altered +~] ~[Altered -~]} {#GAG}
#trigger {^Color Key: ~[Active~] ~[Inactive~] ~[Altered +~] ~[Altered -~]} {#GAG}
#variable counter {45}
#variable skilltype {spells}
#variable percent {Mys: 100}
#variable total {128}
#variable totaltrain {60}
#variable totaltrain {60}
#variable totaltrain {60} |
Actually, there's alot missing from that apparently, but since Varmels script is beta that's okay.
???......dear lord....I'm shocked at the big difference.
More than ever now I want Varmels code for that :-) |
|
|
|
 |
edb6377 Magician

Joined: 29 Nov 2005 Posts: 482
|
Posted: Thu Aug 24, 2006 4:01 pm |
That would be correct. Why i said i wasnt posting a complex script lol.
This is the export from ZMUD
| Code: |
#ALIAS stt {#VARIABLE counter 0;#T+ totrain;#WAIT 1000;skill spells;#WAIT 2000;#T- totrain}
#ALIAS ptt {#VARIABLE counter 0;#T+ totrain;#WAIT 1000;skill prof;#WAIT 2000;#T- totrain}
#variable counter {45}
#variable skilltype {spells}
#variable percent {Mys: 100}
#variable total {128}
#variable totaltrain {60}
#variable totaltrain {60}
#variable totaltrain {60}
#CLASS {Totrain}
#VAR Schools {DEF|COM|WEA|TEK|MYS|CON|NEC|ABJ|INV|ILL|SUM|ALT|ENC|CHA|DIV|ELE|ILL|FUN|THO|SUM|NEC|EVO}
#TRIGGER {~[ ~# ~] ~[(%s)(%w) Name(%s)~](*)} {#var skilltype %2;#if (@skilltype == "Spell") {#var skilltype "spells"};#if (@skilltype == "Proficiency") {#var skilltype "proficiencies"}}
#TRIGGER {(%d)(*){@schools}%s%d~%%s&percent~%} {#IF (@percent < 74) {#SUBSTITUTE {%ansi(yellow,bold)%trigger}} {#IF (@percent > 74) {#IF (@percent < 85) {#SUBSTITUTE {%ansi(green,bold)%trigger};#ADD counter 1} {#IF (@percent > 99) {#SUBSTITUTE {%ansi(red,bold)%trigger};#ADD counter 1} {#IF (@percent > 85 and @percent < 100) {#SUBSTITUTE {%ansi(blue,bold)%trigger};#ADD counter 1}}}}}}
#TRIGGER {(%d)(*){@schools}%s%d%s(%d)~%%s&percent~%} {#IF (@percent < 74) {#SUBSTITUTE {%ansi(yellow,bold)%trigger}} {#IF (@percent > 74) {#IF (@percent < 85) {#SUBSTITUTE {%ansi(green,bold)%trigger};#ADD counter 1} {#IF (@percent > 99) {#SUBSTITUTE {%ansi(red,bold)%trigger};#ADD counter 1} {#IF (@percent > 85 and @percent < 100) {#SUBSTITUTE {%ansi(blue,bold)%trigger};#ADD counter 1}}}}}}
#TRIGGER {~[C~]ontinue ~[R~]edraw ~[B~]ack ~[E~]xit:} {#GAG;#CR} "" {nocr|prompt}
#TRIGGER {^You have the ability to learn ~[&total]} {#math totaltrain (@total-@counter)}
#TRIGGER {^You have ~[%d~] practice sessions.} {#echo %ansi( grey)You have %ansi( blue, high)~[%ansi( grey)@totaltrain%ansi( blue, high)~]%ansi( grey) @skilltype left to train.}
#TRIGGER {^Color Key: ~[Active~] ~[Inactive~] ~[Altered +~] ~[Altered -~] ~[Unavailable~]} {#GAG}
#CLASS 0
|
|
|
_________________ Confucious say "Bugs in Programs need Hammer" |
|
|
 |
Guinn Wizard
Joined: 03 Mar 2001 Posts: 1127 Location: London
|
Posted: Thu Aug 24, 2006 4:13 pm |
I think if CMUD doesn't allow exports to text then people will find supporting other users quite tiring.
A lot of times I've put something into zmud to troubleshoot a forum query then exported it and pasted back into the forums once fixed. If CMUD only exports to XML I don't think I'd bother, since the export isn't particularly readable for the experienced user and probably just incomprehensible for the novice. IMHO it *needs* to be something that almost anyone can look at and understand the structure. |
|
_________________ CMUD Pro, Windows Vista x64
Core2 Q6600, 4GB RAM, GeForce 8800GT
Because you need it for text... ;) |
|
|
 |
Vitae Enchanter

Joined: 17 Jun 2005 Posts: 673 Location: New York
|
Posted: Thu Aug 24, 2006 6:27 pm |
*nodnod*
I agree.
No one has answered one of my questions yet tho.
While I now know that it exports to XML how does it look internally in that screen when you click on a folder?
Does it look the way it does in zmud or does it show only the XML version as well? |
|
|
|
 |
edb6377 Magician

Joined: 29 Nov 2005 Posts: 482
|
Posted: Thu Aug 24, 2006 7:16 pm |
looks the same.
And remember there are package libraries now so you dont need to export the scripts |
|
_________________ Confucious say "Bugs in Programs need Hammer" |
|
|
 |
Vitae Enchanter

Joined: 17 Jun 2005 Posts: 673 Location: New York
|
Posted: Thu Aug 24, 2006 7:30 pm |
I export them to print them so I can go over them on the train.
So that's really the only reason I wondered.
My OTHER question wasn't answered either now that I think about it.
In zMUD, if there is one single inherited setting in a folder, you can't see the folder in that script view for some reason. Same thing if the entire folder is inherited. (I know I had a posting on here with regards to this in the zmud section, but it's not there anymore so I can't remember WHY it does that), but is that resolved now?
Cause then being able to see the code in that view would still be pointless. |
|
|
|
 |
Zugg MASTER

Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Wed Aug 30, 2006 4:46 pm |
OK, shame on you guys for not making a new post on such an important topic. I'm going to go make a new topic for this and lock this topic. But how in the world was I supposed to remember in 6 months that this thread contained a discussion of XML and import/export. Please *ALWAYS* make a new topic if your post doesn't have anything to do with this original poster.
|
|
|
|
 |
|
|
|