 |
ReedN Wizard
Joined: 04 Jan 2006 Posts: 1279 Location: Portland, Oregon
|
Posted: Sat Aug 28, 2010 6:24 am
[3.23 Pro] #break not supported? |
Compatibility Report:
Alias i_scan_focus
Command not supported : #break
My Code:
Code: |
<alias name="i_scan_focus" autoappend="true" id="1419">
<value>#if (@auto( focus) and @able_focus( ) and !@flag( focusing) and !@aeon_busy( )) {
i_del scan herb
#loopdb @afflictions {
//
#if (%ismember( %key, @affs_focus) and !%iskey( @affs_scanned, %key) and !@curing_using( %key, {tree|herb|salve})) {
i_add affs_scanned %key focus
focus
i_add flags aff_cure_focus %key
#break
}
}
}</value>
</alias>
|
Cmud Documentation:
Code: |
BREAK
Syntax: #BREAK
Related: #CONTINUE, #EXIT
Must be used within a loop - exits the loop and continues with the next statement after the loop
BREAK Example
#LOOP 10 {#IF (%i = 5) {#BREAK};#SHOW %i};#SHOW after
Displays 1,2,3,4,after. When the loop gets to number 5, the #BREAK command exits the loop. |
What does it mean its not supported? It says it is in the documentation. |
|
|
 |
dbosst Apprentice
Joined: 15 Jun 2010 Posts: 121
|
Posted: Sat Aug 28, 2010 6:59 am |
I have seen that as well but just have been ignoring all of those not supported errors in the compat report... since I know #break works... hmm its up to Zugg to answer this one I think
|
|
|
 |
Zugg MASTER

Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Sat Aug 28, 2010 4:37 pm |
The issue is that #BREAK in zMUD did something completely different (set a breakpoint for the debugger). So it's important to check imported zMUD scripts for #break, but his doesn't help with you check an existing CMUD script. So I need the Compatibility report to somehow distinguish between checking an imported zMUD script and an existing CMUD script, which is tricky.
|
|
|
 |
|
|
|
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
|
|