Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
jed
Adept


Joined: 18 Dec 2005
Posts: 246

PostPosted: Sun Mar 04, 2007 10:25 pm   

Script error
 
I keep getting an error in this script line at row 34 which corresponds to "rms". Also, I've tried replacing the brackets before and after the long number stringlists with parenthases, without avail.
Code:
#if (@maze=1) {#show maze 1;#var rms {1712|1716|1719|1722|1766|1762|1758|1754|1750|1745|1749|1745|1692|1690|1694|1698|1702|1706|1707|1737|1741|1737|1733|1729|1767|1767|1771|1777|1781|1783|1785|1788}} {#show maze 0;#var rms {1616|1612|1624|1628|1630|1626|1631|1635|1646|1652|1659|1661|1657|1648|1650|1646|1639|1643|1644|1640|1636|1632|1621|1609|1605|1601|1597|3961|1588|1591|1587|1596|1665|1666|1670|1682|1678|3958|3960|1685|1683|1675|1674}}

This comes from a an alias which has the following script:
Code:
#MENU {Mapper|File|Follow Mode}
#t+ dmdown
#var dcheck 1
#var maze ""
#var rms ""
#var levzero {1591|1590|1589|1588|1587|1592|1593|1595|1596|3961|1662|1666|1667|1668|1669|1670|1671|1672|1673|1682|1681|1680|1679|1678|1684|1685|1686|3958|3959|3960|1674|1675|1676|1677|1665|1664|1663|1597|1598|1599|1600|1601|1602|1603|1604|1605|1606|1607|1608|1609|1610|1611|1612|1613|1614|1615|1616|1617|1618|1619|1620|1621|1622|1623|1624|1625|1626|1627|1628|1629|1630|1631|1632|1633|1634|1635|1636|1637|1638|1639|1640|1641|1642|1643|1644|1645|1646|1647|1648|1649|1650|1651|1652|1656|1657|1658|1659|1660|1661}
#show destroom @destroom
#show %ismember( @destroom, @levzero)
#var mazecheckk %ismember( @destroom, @levzero)
#show mazecheckk @mazecheckk
#if (@mazecheckk=0) {#show you made it into the maze level one set loop;#var maze 1} {#show you made it into the maze level zero set loop;#var maze 0}
#if (@maze=1) {#var firstwalk 1709} {#var firstwalk 1620}
#show firstwalk @firstwalk
#show walker %walk( @firstwalk)
#show walker12 %pathexpand( %walk( @firstwalk))
#show walker13 %numitems( %pathexpand( %walk( @firstwalk)))
#show rms @rms
#var walklength {%numitems( %pathexpand( %walk( @firstwalk)))}
#show walklength (%float(@walklength)*725)
#var tiqty (%float(@walklength)*725)
;#math tiqty @walklength*725
#show tiqty @tiqty
#show %walk(@firstwalk)
;#sl %walk(%i)
#walk @firstwalk
;#slow %walk(@firstwalk)
#wait 7000
#wait @tiqty
#if (@maze=1) {#show maze 1;#var rms {1712|1716|1719|1722|1766|1762|1758|1754|1750|1745|1749|1745|1692|1690|1694|1698|1702|1706|1707|1737|1741|1737|1733|1729|1767|1767|1771|1777|1781|1783|1785|1788}} {#show maze 0;#var rms {1616|1612|1624|1628|1630|1626|1631|1635|1646|1652|1659|1661|1657|1648|1650|1646|1639|1643|1644|1640|1636|1632|1621|1609|1605|1601|1597|3961|1588|1591|1587|1596|1665|1666|1670|1682|1678|3958|3960|1685|1683|1675|1674}}
#show rms @rms
#forall @rms {#if (@dcheck=333) {} {#show percent i %i;#show walk perc %walk( %i);#var walklength2 {%numitems( %pathexpand( %walk( %i)))};#var tiqty2 (%float(@walklength2)*50);#show tiqty2 @tiqty2;#sl %walk(%i);#cr;#wait @tiqty2}
;#MENU {Mapper|File|Follow Mode}

This is a script I've used plenty in zmud and am trying to now get working in cmud. Any help would be appreciated.
I miss the feature from zmud that highlighted syntax problems and auto lined up the scripts (taking something after a ; and putting it on the next line and indenting it.
Reply with quote
Arminas
Wizard


Joined: 11 Jul 2002
Posts: 1265
Location: USA

PostPosted: Sun Mar 04, 2007 11:43 pm   
 
#forall @rms {#if (@dcheck=333) {} {#show percent i %i;#show walk perc %walk( %i);#var walklength2 {%numitems( %pathexpand( %walk( %i)))};#var tiqty2 (%float(@walklength2)*50);#show tiqty2 @tiqty2;#sl %walk(%i);#cr;#wait @tiqty2}
Needs a } at the end. So it would look like this.
#forall @rms {#if (@dcheck=333) {} {#show percent i %i;#show walk perc %walk( %i);#var walklength2 {%numitems( %pathexpand( %walk( %i)))};#var tiqty2 (%float(@walklength2)*50);#show tiqty2 @tiqty2;#sl %walk(%i);#cr;#wait @tiqty2}}

I didn't do any more checking but that got rid of the error.
_________________
Arminas, The Invisible horseman
Windows 7 Pro 32 bit
AMD 64 X2 2.51 Dual Core, 2 GB of Ram
Reply with quote
jed
Adept


Joined: 18 Dec 2005
Posts: 246

PostPosted: Mon Mar 05, 2007 4:04 am   
 
That took care of it....
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
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

© 2009 Zugg Software. Hosted by Wolfpaw.net