 |
chamenas Wizard

Joined: 26 Mar 2008 Posts: 1547
|
Posted: Fri Jun 18, 2010 1:49 am
Odd #SUB error |
So, here's the error:
| Code: |
You are using:
<used as light> (11) (Glowing) a Shalonesti Clan standard
<worn on finger> ( 8)(fp) (Glowing) (Humming) a ring of the Gypsy King
<worn on finger> ( 8)(fp) (Glowing) (Humming) a ring of the Gypsy King
<worn around neck> ( 8) (Glowing) the sandshark skin
<worn around neck> ( 8) (Glowing) the sandshark skin
<worn on torso> ( 9) (Glowing) an arcanium chainmail tunic
<worn on head> ( 9) (Glowing) an arcanium chainmail helmet
<worn on legs> (10) (Glowing) some arcanium chainmail leggings
<worn on feet> (10) (Glowing) some arcanium chainmail boots
<worn on hands> (11) (Glowing) some arcanium chainmail gloves
<worn on arms> (11) (Glowing) some arcanium chainmail sleeves
<worn as shield> (nothing)
<worn about body> (12) (Glowing) a long robe
<worn about waist> (12) (Glowing) a leather loin-cloth
<worn around wrist> ( 9) (Glowing) a jeweled bracer
<worn around wrist> ( 9) (Glowing) a jeweled bracer
<wielded><wielded> (Glowing) (Humming) a glowing, runic elven sword
<held> (13)(fp) a tentacle of a squid
<floating nearby> (12)(fp) a petrified sand wyrm egg
<sheathed> (Glowing) (Humming) a long whisper-thin blade
<worn as quiver> (12) (Glowing) (Humming) a leather quiver covered in ancient runes
|
See how <wielded> is duplicated? It does this for the other slots as well, though I cannot tell why it does it for any given slot at any given time.
To make matters worse, I suspected it was due to my Equipment Script. However, when I disable the script... the error STILL occurs. In fact, at DraxDrax's advice, I even ran in debugging, but lines with duplicated slots didn't seem to be firing extra trigger. So I turned on debugging echoes on options to see which triggers were firing right in the session, and, once again, it didn't seem like any extra triggers were firing.
If I disable "Show Unknown Tags" in MXP options, I get:
| Code: |
You are using:
( 5) (Glowing) a Shalonesti Clan standard
( 2)(fp) (Glowing) (Humming) a ring of the Gypsy King
( 2)(fp) (Glowing) (Humming) a ring of the Gypsy King
( 2) (Glowing) the sandshark skin
( 2) (Glowing) the sandshark skin
( 3) (Glowing) an arcanium chainmail tunic
( 3) (Glowing) an arcanium chainmail helmet
( 4) (Glowing) some arcanium chainmail leggings
( 4) (Glowing) some arcanium chainmail boots
( 5) (Glowing) some arcanium chainmail gloves
( 5) (Glowing) some arcanium chainmail sleeves
(nothing)
( 6) (Glowing) a long robe
( 6) (Glowing) a leather loin-cloth
( 3) (Glowing) a jeweled bracer
( 3) (Glowing) a jeweled bracer
<wielded> (Glowing) (Humming) a glowing, runic elven sword
( 7)(fp) a tentacle of a squid
( 6)(fp) a petrified sand wyrm egg
(Glowing) (Humming) a long whisper-thin blade
( 6) (Glowing) (Humming) a leather quiver covered in ancient runes
|
And if I uncheck "Show Unknown Tags" AND disable the script, I get it proper:
| Code: |
You are using:
<used as light> (Glowing) a Shalonesti Clan standard
<worn on finger> (Glowing) (Humming) a ring of the Gypsy King
<worn on finger> (Glowing) (Humming) a ring of the Gypsy King
<worn around neck> (Glowing) the sandshark skin
<worn around neck> (Glowing) the sandshark skin
<worn on torso> (Glowing) an arcanium chainmail tunic
<worn on head> (Glowing) an arcanium chainmail helmet
<worn on legs> (Glowing) some arcanium chainmail leggings
<worn on feet> (Glowing) some arcanium chainmail boots
<worn on hands> (Glowing) some arcanium chainmail gloves
<worn on arms> (Glowing) some arcanium chainmail sleeves
<worn as shield> (nothing)
<worn about body> (Glowing) a long robe
<worn about waist> (Glowing) a leather loin-cloth
<worn around wrist> (Glowing) a jeweled bracer
<worn around wrist> (Glowing) a jeweled bracer
<wielded> (Glowing) (Humming) a glowing, runic elven sword
<held> a tentacle of a squid
<floating nearby> a petrified sand wyrm egg
<sheathed> (Glowing) (Humming) a long whisper-thin blade
<worn as quiver> (Glowing) (Humming) a leather quiver covered in ancient runes
|
So I'm sort of confused as to why this occurs. It doesn't follow any sense that I know and I was hoping that someone might help me narrow down the issue. As I've clearly failed trying to locate it myself.
Script:
| Code: |
<class name="Equipment Script" id="1334">
<alias name="wear" id="1335">
<value>#T+ equipment-capture
#T+ equipment-remove-capture
#SWITCH (%1="last") {#IF (%iskey( @_eq, %-2)) {
$_val=%db( @_last_eq, %-2)
#IF ($_val!=%null) {
$_keys=%item( $_val, 1)
wear $_keys
#ADDKEY _last_eq %-2 %null
} {#show "No data available on the last item equipped."}
} {#show "That's not a valid slot."}}
{
$_params=%replace( %params, " ", "|")
$_keys=%params
#IF (%numitems( $_params)>1) {#IF (%left( $_keys, 1)!="'") {$_keys=%concat( "'", %params, "'")}}
#IF (%numitems( $_params)>0) {
_eq_keys=$_keys
#send "wear "$_keys
} {
#show "Need to set an item to wear."
#T- equipment-capture
#T- equipment-remove-capture
}
}</value>
</alias>
<var name="_eq_keys" id="1336">tentacle</var>
<trigger name="equipment-capture" priority="13060" regex="true" enabled="false" id="1337">
<pattern>(?:(You put|You light|You wear|You release|You hold) ([\w ,'-]+) (about your|in your|and it floats next to you|and hold it|on your|as a|around your)\s?(left|right)?\s?([\w]+)?|(You wield|You sheath) ([\w '-]+))</pattern>
<value>#LOCAL $_short $_slot
#IF (%2!=%null) {$_short=%2} {$_short=%7}
#SWITCH (%1="You light") {$_slot="light"}
(%1="You hold") {$_slot="held"}
(%1="You release") {$_slot="float"}
(%1="You put") {$_slot="shoulder"}
{
#IF (%1="You wear") {
$_slot=%trim( %5)
#SWITCH (%4="left") {$_slot=%concat( $_slot, "1")}
(%4="right") {$_slot=%concat( $_slot, "2")}
($_slot="neck") {$_slot="neck1"}
(%3="about your") {#IF ($_slot!="waist") {$_slot="body"}}
}
#SWITCH (%6="You wield") {$_slot="wield"}
(%6="You sheath") {$_slot="sheath"}
{#IF (%1=%null) {#show %ansi( 12)"ERROR:"%ansi( reset)" No slot found."}}
}
$_bless=0
$_fp=0
#IF (%iskey( $_short, @_bless_eq)) {$_bless=%db( @_bless_eq, $_short)}
#IF (%iskey( $_short, @_fp_eq)) {$_fp=%db( @_fp_eq, $_short)}
#ADDKEY _eq $_slot @_eq_keys"|"$_short"|"$_bless"|"$_fp
#IF ($_slot="neck1") {
$_slot="neck2"
#ADDKEY _eq $_slot @_eq_keys"|"$_short"|"$_bless"|"$_fp
}
#T- equipment-capture
#T- equipment-remove-capture</value>
</trigger>
<trigger name="record-bless" priority="13070" regex="true" id="1338">
<pattern>([\w ,'-]+) glows with a holy aura</pattern>
<value>$_name=%trim( %1)
#ADDKEY _bless_eq $_name @_time.bless
#IF (!@_bless_on) {#T- record-bless}</value>
</trigger>
<alias name="hold" id="1339">
<value>#T+ equipment-capture
#T+ equipment-remove-capture
$_params=%replace( %params, " ", "|")
$_keys=%params
#IF (%numitems( $_params)>1) {$_keys=%concat( "'", %params, "'")}
#IF (%numitems( $_params)>0) {
_eq_keys=$_keys
#send "hold "$_keys
} {
#show "Need to set an item to hold."
#T- equipment-capture
#T- equipment-remove-capture
}</value>
</alias>
<alias name="sheath" id="1340">
<value>#T+ equipment-capture
#T+ equipment-remove-capture
$_params=%replace( %params, " ", "|")
$_keys=%params
#IF (%numitems( $_params)>1) {$_keys=%concat( "'", %params, "'")}
#IF (%numitems( $_params)>0) {
_eq_keys=$_keys
#send "sheath "$_keys
} {
#show "Need to set an item to sheath."
#T- equipment-capture
#T- equipment-remove-capture
}</value>
</alias>
<trigger name="equipment-remove-capture" priority="13150" regex="true" enabled="false" id="1341">
<pattern>You stop using ([\w ,'-]+)</pattern>
<value>$_removed=%trim( %1)
#LOCAL $_short $_key $_values
$_iskey=0
#LOOPDB @_eq {
$_values=%val
$_short=%item( $_values, 2)
#IF ($_removed=$_short) {
$_key=%key
$_iskey=1
#BREAK
}
}
#IF (%ismember( $_key, "neck1|neck2|finger1|finger2|wrist1|wrist2")) {
$_num=%rightback( $_key, 1)
$_t_key=%right( $_key, 1)
$_num=%int( $_num)
#IF ($_num=2) {$_num=1} {$_num=2}
$_t_key=%concat( $_t_key, $_num)
$_val2=%db( @_eq, $_t_key)
$_short2=%item( $_val2, 2)
#IF ($_short2=$_short) {$_key=%concat( %right( $_key, 1), 1)}
}
#IF ($_iskey) {
#ADDKEY _last_eq $_key $_values
#ADDKEY _eq $_key %null
}
#T- equipment-remove-capture</value>
</trigger>
<alias name="rem" id="1342">
<value>#T+ equipment-remove-capture
$_params=%replace( %params, " ", "|")
$_keys=%params
#SWITCH (%iskey( @_eq, %1) || %ismember( %1, "neck|finger|wrist")) {
$_key=%1
#IF (%ismember( %1, "neck|finger|wrist")) {$_key=%concat( %1, "1")}
$_val=%db( @_eq, $_key)
#IF ($_val!=%null) {
$_keys=%item( $_val, 1)
$_keys=%replace( $_keys, "'", "")
rem $_keys
#IF (%ismember( %1, "neck|finger|wrist")) {rem $_keys}
} {#show "No data available on the last item equipped."}
}
{
#IF (%numitems( $_params)>1) {$_keys=%concat( "'", %params, "'")}
#IF (%numitems( $_params)>0) {#send "rem "$_keys} {
#show "Need to set an item to remove."
#T- equipment-remove-capture
}
}</value>
</alias>
<trigger name="count-fp-bless" priority="13170" id="1343">
<pattern>Timer now at 41 secs</pattern>
<value><![CDATA[#LOOPDB @_bless_eq {#IF (%val>0) {
#IF (%val=2) {#show %ansi( 15)%key"'s bless is going to fall on the tick!"%ansi( reset)}
#IF (%val=1) {#show %ansi( 12)">>>"%ansi( 15)%key"'s bless has fallen"%ansi( 12)"<<<"%ansi( reset)}
$_val=%val
$_val=$_val-1
#IF ($_val>0) {#ADDKEY _bless_eq %key $_val} {#DELKEY _bless_eq %key}
} {#DELKEY _bless_eq %key}}
#LOOPDB @_fp_eq {#IF (%val>0) {
#IF (%val=2) {#show %ansi( 15)%key"'s fireproof is going to fall on the tick!"%ansi( reset)}
#IF (%val=1) {#show %ansi( 12)">>> "%ansi( 15)%key"'s fireproof has fallen"%ansi( 12)" <<<"%ansi( reset)}
$_val=%val
$_val=$_val-1
#IF ($_val>0) {#ADDKEY _fp_eq %key $_val} {#IF (!%ismember( %key, @_perm_fp)) {#DELKEY _fp_eq %key}}
} {#IF (!%ismember( %key, @_perm_fp)) {#DELKEY _fp_eq %key}}} ]]></value>
</trigger>
<trigger name="record-fp" priority="13180" regex="true" enabled="false" id="1344">
<pattern>(You protect ([\w ,'-]+) from fire|([\w ,'-]+) is already protected from burning)</pattern>
<value>$_name=%trim( %2)
#IF (%match( %trigger, "%/[\w ,'-]+ is already protected from burning/%")) {
#ADDI _perm_fp %trim( %3)
#ADDKEY _fp_eq %trim( %3) 0
} {#ADDKEY _fp_eq $_name @_time.fp}
#IF (!@_fp_on) {#T- record-fp}</value>
</trigger>
<trigger name="test-pat" priority="13200" regex="true" enabled="false" id="1346">
<pattern>(<(used as|worn on|worn around|floating)?\s?(light|finger|neck|torso|head|legs|feet|hands|arms|shield|body|waist|waist|wrist|wielded|held|nearby|sheathed)>\s+(?:%e[0S\(%e[1;34mBlue Aura%e[0S\)%e[0m\s)?)((?:%e[0S\(%e[36mGlowing%e[0S\)%e[0m\s)?(?:%e[0S\(%e[53mHumming%e[0S\)%e[0m\s)?(.*))</pattern>
</trigger>
<trigger name="test-bless" priority="13210" ansi="true" regex="true" enabled="false" id="1347">
<pattern>(%e[54mBlue Aura%e[0m)</pattern>
<value>#say Fired!</value>
</trigger>
<var name="_slots" type="StringList" id="1348">used as light|worn on finger|worn around neck|worn on torso|worn on head|worn on legs|worn on feet|worn on hands|worn on arms|worn as shield|worn about body|worn about waist|worn around wrist|wielded|held|floating nearby|sheathed|worn as quiver</var>
<trigger name="bless-all" priority="13490" regex="true" enabled="false" id="1349">
<pattern>(?:(@_curr_bless.short) glows with a holy aura|(Starting) bless script)</pattern>
<value>#IF (%2="Starting") {
_curr_bless.t_num=%numitems( @_bless_all_list)
_curr_bless.num=1
} {
#ADD _curr_bless.num 1
#IF (@_curr_bless.i_key="sheath") {sheath @_curr_bless.last} {wear @_curr_bless.last}
}
#IF (@_curr_bless.num<%eval( @_curr_bless.t_num+1)) {
#T+ record-bless
_curr_bless.i_key=%item( @_bless_all_list, @_curr_bless.num)
$_val=%db( @_eq, @_curr_bless.i_key)
_curr_bless.short=%item( $_val, 2)
_curr_bless.keys=%replace( %item( $_val, 1), "'", "")
_curr_bless.last=@_curr_bless.keys
#IF (%rightback( @_curr_bless.i_key, 1)=2) {_curr_bless.keys=%concat( "2.", @_curr_bless.keys)}
rem @_curr_bless.keys
#send "c bless "@_curr_bless.last
} {
#show "Bless all script ending."
_curr_bless.i_key=%null
_curr_bless.num=%null
_curr_bless.t_num=%null
_curr_bless.last=%null
_curr_bless.keys=%null
_curr_bless.short=%null
_bless_all_list=%null
#T- bless-all
}</value>
</trigger>
<var name="_curr_bless" type="Record" id="1350">t_num|i_key|keys|short|num|last</var>
<var name="_bless_all_list" type="StringList" id="1351"/>
<trigger name="fp-all" priority="13490" regex="true" id="1353">
<pattern>(?:You protect (@_curr_fp.short)|(@_curr_fp.short) is already protected from burning|(Starting) fireproof script)</pattern>
<value>#IF (%3="Starting") {
_curr_fp.t_num=%numitems( @_fp_all_list)
_curr_fp.num=1
} {
#IF (%2!=%null && !%ismember( @_curr_fp.short, @_perm_fp)) {
#ADDI _perm_fp @_curr_fp.short
#ADDKEY _fp_eq @_curr_fp.short 0
}
#ADD _curr_fp.num 1
#IF (@_curr_fp.i_key="sheath") {sheath @_curr_fp.last} {wear @_curr_fp.last}
}
#IF (@_curr_fp.num<%eval( @_curr_fp.t_num+1)) {
#T+ record-fp
_curr_fp.i_key=%item( @_fp_all_list, @_curr_fp.num)
$_val=%db( @_eq, @_curr_fp.i_key)
_curr_fp.short=%item( $_val, 2)
_curr_fp.keys=%replace( %item( $_val, 1), "'", "")
_curr_fp.last=@_curr_fp.keys
#IF (%rightback( @_curr_fp.i_key, 1)=2) {_curr_fp.keys=%concat( "2.", @_curr_fp.keys)}
rem @_curr_fp.keys
#send "c fireproof "@_curr_fp.last
} {
#show "fireproof all script ending."
_curr_fp.i_key=%null
_curr_fp.num=%null
_curr_fp.t_num=%null
_curr_fp.last=%null
_curr_fp.keys=%null
_curr_fp.short=%null
_fp_all_list=%null
#T- fp-all
}</value>
</trigger>
<var name="_fp_all_list" type="StringList" id="1354">hands|float|wrist1|wrist2|body|waist|finger1|wield|torso|light|held|neck1|head</var>
<var name="_curr_fp" type="Record" id="1355">t_num=13|i_key=body|keys=robe cloth intricate|short=a deep blue cloth robe,bearing intricate designs|num=5|last=robe cloth intricate</var>
<trigger name="equip_trigger" priority="4210" regex="true" id="1358">
<pattern>(^You are using:$|You are carrying:)</pattern>
<trigger type="Manual" ansi="true" trigontrig="false">
<pattern>^(*)$</pattern>
<value><![CDATA[#SWITCH %null( %trigger) {#STATE equip_trigger 0}
(%match( %trigger, "^%e[0S<(*)>(%s)(*)$", $location, $spaces, $item)) {
$_short = %trim( %stripansi( %word( $item, %numwords( $item, ")"), ")")))
#DEBUG %concat( %ansi( bright, cyan), "$location = "$location, " | $short = ", $_short, " | $item = ", %ansi( default), $item)
#LOCAL $_echo $_sub
#IF (%iskey( @_bless_eq, $_short)) {
$_bless=%format( & 2 s, %string( %db( @_bless_eq, $_short)))
$_echo=%concat( $_echo, %ansi( reset)"("%ansi( 9)$_bless%ansi( reset)")")
$_sub=1
}
#IF (%iskey( @_fp_eq, $_short)) {
$_fp=%db( @_fp_eq, $_short)
#IF ($_fp=0) {$_fp="fp"}
$_fp=%format( & 2 s, %string( $_fp))
$_echo=%concat( $_echo, %ansi( reset)"("%ansi( 12)$_fp%ansi( reset)")")
$_sub=1
}
$_echo=%concat( $_echo, " ")
// #WIN History "Loc: "$location" Sub: "$_sub" "
#SUB %concat( "<", $location, ">", $spaces, %if($_sub, $_echo), $item, %cr)
}]]></value>
</trigger>
</trigger>
</class>
|
EQ Settings:
| Code: |
<class name="Equipment Settings" id="242">
<var name="_eq" type="Record" id="243">shoulder="tentacle|a leather quiver covered in ancient runes|0|0"|hands="'arc sleeve'|some arcanium chainmail gloves|0|0"|float="'run quiv'|a petrified sand wyrm egg|0|0"|wrist1="'jew brace'|a jeweled bracer|0|0"|wrist2|body="'loin cloth'|a long robe|0|0"|arms="arc|some arcanium chainmail sleeves|0|0"|shield|sheath="'whisper thin blade'|a long whisper-thin blade|0|0"|feet="'arc glove'|some arcanium chainmail boots|0|0"|waist="sash|a red sash decorated with a music staff|0|0"|legs="'arc legg'|some arcanium chainmail leggings|0|0"|finger1="'sandshark skin'|a ring of the Gypsy King|0|0"|finger2|wield="'sand egg'|a glowing|0|0"|torso="'arc tunic'|an arcanium chainmail tunic|0|0"|light="'shalonesti standard'|a Shalonesti Clan standard|0|0"|held="elm|a wand of elm wood|0|0"|neck1="sand|the sandshark skin|0|0"|head="'arc helm'|an arcanium chainmail helmet|0|0"|neck2="sand|the sandshark skin|0|0"</var>
<var name="_last_eq" type="Record" id="244">shoulder="'quiv run'|a leather quiver covered in ancient runes|0|0"|hands="'arc glove'|some arcanium chainmail gloves|0|0"|float="'sand egg'|a petrified sand wyrm egg|0|0"|wrist1="'jew brace'|a jeweled bracer|0|0"|wrist2|body="'robe cotton'|a long robe|0|0"|arms="arc|some arcanium chainmail sleeves|0|0"|shield|sheath|feet="'arc boot'|some arcanium chainmail boots|0|0"|waist="sash|a red sash decorated with a music staff|0|0"|legs="elm|some arcanium chainmail leggings|0|0"|finger1="'sandshark skin'|a ring of the Gypsy King|0|0"|finger2="'ring gypsy'|a ring of the Gypsy King|0|0"|wield|torso="'arc tunic'|an arcanium chainmail tunic|0|0"|light="stand|a Shalonesti Clan standard|0|0"|held="tentacle|a tentacle of a squid|0|0"|neck1="'jewe bracer'|the sandshark skin|0|0"|head="'arc helmet'|an arcanium chainmail helmet|0|0"|neck2</var>
<var name="_bless_eq" type="Record" id="245">a glowing, runic elven sword=4|Some arcanium chainmail sleeves=3|An arcanium chainmail helmet=1|An arcanium chainmail tunic=1|A tentacle of a squid=5|Some arcanium chainmail boots=2|Some arcanium chainmail gloves=3|A leather loin-cloth=4|A petrified sand wyrm egg=4|a Shalonesti Clan standard=3|a leather quiver covered in ancient runes=4|A long robe=4|A jeweled bracer=1|Some arcanium chainmail leggings=2</var>
<var name="_fp_eq" type="Record" id="246">A tentacle of a squid=0|A petrified sand wyrm egg=0|A ring of the Gypsy King=0</var>
<var name="_time" type="Record" id="247">fp=58|bless=24</var>
<var name="_perm_fp" type="StringList" id="260">A tentacle of a squid|A petrified sand wyrm egg|A ring of the Gypsy King</var>
</class>
|
|
|
|
|
 |
chamenas Wizard

Joined: 26 Mar 2008 Posts: 1547
|
Posted: Fri Jun 18, 2010 2:47 pm |
Here's another example:
| Code: |
You are using:
<used as light> (Glowing) a Shalonesti Clan standard
<worn on finger> (fp) (Glowing) (Humming) a ring of the Gypsy King
<worn on finger> (fp) (Glowing) (Humming) a ring of the Gypsy King
<worn around neck> (Glowing) the sandshark skin
<worn around neck> (Glowing) the sandshark skin
<worn on torso> (Glowing) an arcanium chainmail tunic
<worn on head> (Glowing) an arcanium chainmail helmet
<worn on legs> (Glowing) some arcanium chainmail leggings
<worn on feet> (Glowing) some arcanium chainmail boots
<worn on hands> (Glowing) some arcanium chainmail gloves
<worn on arms> (Glowing) some arcanium chainmail sleeves
<worn as shield> (nothing)
<worn about body> (Glowing) a camouflaged traveler's cloak
<worn about waist> (Glowing) a red sash decorated with a music staff
<worn around wrist> (Glowing) a jeweled bracer
<worn around wrist><worn around wrist> (Glowing) a jeweled bracer
<wielded> (Glowing) (Humming) a sword shimmering with ancient runes
<held> (fp) (Glowing) a tentacle of a squid
<floating nearby> (fp) (Glowing) a petrified sand wyrm egg
<sheathed> (Glowing) (Humming) a blade glistening with fiery runes
<worn as quiver> (Glowing) (Humming) a leather quiver covered in ancient runes
|
Not <wielded> anymore, now it's on <worn around wrist> |
|
|
|
 |
talonnb Apprentice
Joined: 30 Oct 2004 Posts: 127
|
Posted: Sat Jun 19, 2010 4:51 pm |
probably a newb question, but what's with the underscores before your variables?
@_Blessing_up for example. I'm checking over the code now, but I don't see anything obvious, I'll keep looking for the issue |
|
|
|
 |
talonnb Apprentice
Joined: 30 Oct 2004 Posts: 127
|
Posted: Sat Jun 19, 2010 4:58 pm |
my 'guess' if it helps any, is that the sub is firing off the subbed line and kinda overlapping it. But I'm not sure. I've seen this do this on my triggers where triggers were firing off my echos/subs.
|
|
|
|
 |
chamenas Wizard

Joined: 26 Mar 2008 Posts: 1547
|
Posted: Sat Jun 19, 2010 5:05 pm |
Right, the only thing I could gather is that, for some reason, it's not completely replacing the line and it's leaving the slot in some times. But I have no clue why it does that. And I use the _ to further distinguish variables. It keeps the naming across variables consistent. It started because I would sometimes have a variable that was the same name as an alias and I wanted to make sure the names were distinct but still related.
|
|
|
|
 |
talonnb Apprentice
Joined: 30 Oct 2004 Posts: 127
|
Posted: Sat Jun 19, 2010 5:10 pm |
ah ok, so it's just more or less a space. I didn't realise variables would allow that. Personally I'd delete the sub part of it and recreate it. I've seen Cmud do some weird stuff and deleting and recreating fixed it, so worth a shot
|
|
|
|
 |
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Sat Jun 19, 2010 5:39 pm |
If it is a problem with the #SUB output retriggering something, you can quash this problem very easily with #gagspace and #print. #print does not allow triggers to match on the output.
You can perhaps also try unchecking the Trigger on Trigger option for the sub trigger, but I dunno if that will block that trigger from firing on its self-produced sub. |
|
_________________ EDIT: I didn't like my old signature |
|
|
 |
chamenas Wizard

Joined: 26 Mar 2008 Posts: 1547
|
Posted: Sat Jun 19, 2010 7:35 pm |
I replaced #SUB with
| Code: |
#GAGSPACE
#PRINT %concat( "[", $location, "]", $spaces, %if($_sub, $_echo), $item)
|
And here's the output, now you'll notice I changed the <> tags to [] just so you can see something
| Code: |
You are using:
[used as light] (Glowing) a Shalonesti Clan standard
[worn on finger] (fp) (Glowing) (Humming) a ring of the Gypsy King
[worn on finger] (fp) (Glowing) (Humming) a ring of the Gypsy King
[worn around neck] (Glowing) the sandshark skin
[worn around neck] (Glowing) the sandshark skin
[worn on torso] (Glowing) an arcanium chainmail tunic
[worn on head] (Glowing) an arcanium chainmail helmet
[worn on legs] (Glowing) some arcanium chainmail leggings
[worn on feet] (Glowing) some arcanium chainmail boots
[worn on hands] (Glowing) some arcanium chainmail gloves
[worn on arms] (Glowing) some arcanium chainmail sleeves
[worn as shield] (nothing)
[worn about body] (Glowing) a camouflaged traveler's cloak
[worn about waist] (Glowing) a red sash decorated with a music staff
[worn around wrist] (Glowing) a jeweled bracer
<worn around wrist><worn around wrist> (Glowing) a jeweled bracer
[wielded] (Glowing) (Humming) a sword shimmering with ancient runes
[held] (fp) (Glowing) a tentacle of a squid
[floating nearby] (fp) (Glowing) a petrified sand wyrm egg
[sheathed] (Glowing) (Humming) a blade glistening with fiery runes
[worn as quiver] (Glowing) (Humming) a leather quiver covered in ancient runes
|
Notice how the double line doesn't change? That means the trigger isn't even capturing it. It makes sense, technically, since if that's what the trigger sees it shouldn't match. But that means that it's not the trigger causing it, it must be the MXP option... |
|
|
|
 |
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: Sat Jun 19, 2010 10:44 pm |
Just to be sure, have you verified that this extra stuff isn't coming from the mud itself?
|
|
|
|
 |
chamenas Wizard

Joined: 26 Mar 2008 Posts: 1547
|
Posted: Sun Jun 20, 2010 12:40 am |
Yeah, if I turn it off in the MXP options and turn the entire script off then it's perfectly fine. I've never in my time playing run into the game doing this until I started trying to make this script.
|
|
|
|
 |
chamenas Wizard

Joined: 26 Mar 2008 Posts: 1547
|
Posted: Mon Jun 21, 2010 3:40 pm |
Any further thoughts on what might be causing it? I somehow doubt that simply checking off "Show Unknown Tags" in the MXP options is responsible, and yet it would seem to not be a result of the trigger...
|
|
|
|
 |
chamenas Wizard

Joined: 26 Mar 2008 Posts: 1547
|
Posted: Sat Jun 26, 2010 4:22 pm |
I still haven't come any further in understanding this issue.
|
|
|
|
 |
Zugg MASTER

Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Sun Jun 27, 2010 2:34 am |
Not much I can do about this for v2.37 since there have been so many bug fixes since then. You might want to try to see if this same problem happens in the 3.21 Beta version. If it still happens in the Beta version, then I can look into it a bit more.
|
|
|
|
 |
chamenas Wizard

Joined: 26 Mar 2008 Posts: 1547
|
Posted: Sun Jun 27, 2010 1:14 pm |
All I can seem to get is the 3.20 BETA version, and soooooo much is suddenly broken for me. So I've got a bit of scripting work to do before I can answer this question.
|
|
|
|
 |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|