[Tinymux] Coding Question

Sabbath Silverclaw sabbath.silverclaw at gmail.com
Fri May 13 19:57:54 EDT 2005


I've a coding question and am in need of some help.

Here's the problem.  In a game I am helping to code, the owner wants
all OOC commands to have the @ symbol on them and requested the SNG
+bg command be changed to @info.  At first, I thought it should be as
easy as changing the command names from +bg +bgrep... to @info and
@inforep... for all necessary parts.  It didn't work.

Here's an example of the code I've changed:


CMD-BG_READ [#15]: $@info *:@switch
and(isnum(%0),hasattr(%#,BACKGROUND_%0))=0, at pemit %#=Invalid section
number.,{@pemit %#=[repeat(-=,39)]%R%BThis is section %0 of
[words(lattr(%#/BACKGROUND_*))]
sections.%R[repeat(=-,39)]%R[get_eval(%#/BACKGROUND_%0)]%R[repeat(-=,39)]}

The error I'm getting is either Invalid section nukber, or nothing at all.

Any and all help is greatly appreciated.

Thank you:

Sabbath
-- 
=^.^=  My Site!  My Art!!  My Stories!!! 
http://www.angelfire.com/art2/sabbathsilverclaw/  =^.^=
=^.^=  Cat's Haven MUCK's Official website 
http://pages.sbcglobal.net/catshavensabbath/CatsHaven/  =^.^=
=^.^=  Visit Cat's Haven MUCK at zor.com port 4201  =^.^=


More information about the Tinymux mailing list