[Tinymux] Weird Code Issue 2.5a2

Worldgate worldgate at amber.org.uk
Tue Aug 15 16:15:00 EDT 2006


Im using that 2.6 a2 version off the ftp site and its acting 
funny.  Now for some strange reason when i run +stats i get all the 
data off the character, however if i run '+stats worldgate' it shows 
me no data.

Ive included the code, which i admit isnt very well done, so that it 
can be looked at to see where im going wrong.  However here is a 
quick note of it..


+stats is a @force command to force the user to type +stats and then 
their name.

+stats *, is used to look at someone elses stats or their own.  This 
part seems broken.

@create DC Commands=5
&CMD-STATS DC Commands=$+stats *:@switch [type(*%0)]=PLAYER, at pemit 
%#={%r[center(%b%ch%cb%[%cn%b%cg%ch[mudname()]%cn%b%ch%cb%]%cn%b,80,%cg%ch-%cn%cg=%cn)]%r[ljust(%ch%cg[name(*%0)]%cn%b%ch%cr%(%cn%ch%cg[u(*%0/SEX)]%cn%ch%cr%)%cn%b,40,%cg.%cn)][rjust(%b[u(*%0/STATUS)],40,%cg.%cn)]%r[repeat(%cg%ch=%cn%cg-%cn,40)]%r%ch%cgDexterity%cn 
%cg......%cn 
%ch%cg[rjust([u(%0/STAT_DEX)],2,0)]%cn%ch%cb|%cn%ch%cgFull Name%cn 
[rjust(%B%cg%ch[u(%0/STAT_FULLNAME)]%cn,50,%cg.%cn)]%r%ch%cgStrength%cn 
%cg.......%cn 
%ch%cg[rjust([u(%0/STAT_STR)],2,0)]%cn%ch%cb|%cn%ch%cgType%cn 
[rjust(%cg%ch[u(%0/STAT_TYPE)]%cn,3,%cg.%cn)]%ch%cb|%cn%ch%cgMotivation%cn 
[rjust(%b%cg%ch[u(%0/STAT_MOTIVATION)]%cn,40,%cg.%cn)]%cn%r%ch%cgBody%cn 
%cg...........%cn 
%ch%cg[rjust([u(%0/STAT_BODY)],2,0)]%cn%ch%cb|%cn%ch%cgAlter Ego%cn 
[rjust(%b%ch%cg[u(%0/STAT_ALTEREGO)]%cn,50,%cg.%cn)]%r%ch%cgIntelligence%cn 
%cg...%cn %ch%cg[rjust([u(%0/STAT_INT)],2,0)]%cn%ch%cb|%cn%ch%cgGroup 
Affiliation%cn 
[rjust(%b%ch%cg[u(%0/STAT_GROUP)]%cn,42,%cg.%cn)]%r%ch%cgWillpower%cn 
%cg......%cn 
%ch%cg[rjust([u(%0/STAT_WILL)],2,0)]%cn%ch%cb|%cn%ch%cgBase Of 
Operations%cn 
[rjust(%b%ch%cg[u(%0/STAT_BASE)]%cn,41,%cg.%cn)]%r%ch%cgMind%cn 
%cg...........%cn 
%ch%cg[rjust([u(%0/STAT_MIND)],2,0)]%cn%ch%cb|%cn%ch%cgOccupation%cn 
[rjust(%b%ch%cg[u(%0/STAT_OCCUPATION)]%cn,49,%cg.%cn)]%r%ch%cgInfluence%cn 
%cg......%cn 
%ch%cg[rjust([u(%0/STAT_INF)],2,0)]%cn%ch%cb|%cn%ch%cgMarital 
Status%cn 
[rjust(%b%ch%cg[u(%0/STAT_MARITAL)]%cn,45,%cg.%cn)]%r%ch%cgAura%cn 
%cg...........%cn 
%ch%cg[rjust([u(%0/STAT_AURA)],2,0)]%cn%ch%cb|%cn%ch%cgRelatives%cn 
[rjust(%b%ch%cg[u(%0/STAT_RELATIVES)]%cn,50,%cg.%cn)]%r%ch%cgSpirit%cn 
%cg.........%cn 
%ch%cg[rjust([u(%0/STAT_SPR)],2,0)]%cn%ch%cb|%cn%ch%cgHome World%cn 
[rjust(%b%ch%cg[u(%0/STAT_HOMEWORLD)]%cn,18,%cg.%cn)]%ch%cb|%cn%ch%cgCity%cn 
[rjust(%b%ch%cg[u(%0/STAT_CITY)]%cn,25,%cg.%cn)]%r%ch%cgInitiative%cn 
%cg.....%cn 
%ch%cg[rjust([u(%0/STAT_INIT)],2,0)]%cn%ch%cb|%cn%ch%cgRace%cn 
[rjust(%b%ch%cg[u(%0/STAT_RACE)]%cn,24,%cg.%cn)]%ch%cb|%cn%ch%cgAge%cn 
[rjust(%b%ch%cg[u(%0/STAT_AGE)]%cn,26,%cg.%cn)]%r%ch%cgWealth%cn 
%cg.........%cn 
%ch%cg[rjust([u(%0/STAT_WEALTH)],2,0)]%cn%ch%cb|%cn%ch%cgTeam%cn 
[rjust(%b%ch%cg[u(%0/STAT_TEAM)]%cn,24,%cg.%cn)]%ch%cb|%cn%ch%cgID/SSN%cn 
[rjust(%b%ch%cg[u(%0/STAT_IDSSN)]%cn,23,%cg.%cn)]%r[repeat(%cg%ch=%cn%cg-%cn,40)]%r[center(%b%ch%cb%[%cn%b%cg%chPowers 
Index%cn%b%ch%cb%]%cn%b,80,%cg%ch-%cn%cg=%cn)]%r[u(%0/STAT_POWERS)]%r[center(%b%ch%cb%[%cn%b%cg%chSkills 
Index%cn%b%ch%cb%]%cn%b,80,%cg%ch=%cn%cg-%cn)]%r[u(%0/STAT_SKILLS)]%r[repeat(%cg%ch-%cn%cg=%cn,40)]%r}
&CMD-STATS-SELF DC Commands=$+stats:@fo %#=+stats %#
@set DC Commands=INHERIT



More information about the Tinymux mailing list