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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Firey
Wanderer


Joined: 30 Dec 2003
Posts: 61
Location: Norway

PostPosted: Sun Dec 05, 2004 3:47 pm   

Achaea Infamous
 
Hey!

I've tried to make something that adds people to an infamy string list when I honors them.

I've tried this:

#ALIAS honors {honours %1 #IF {param|5 = %w is one of the infamous} {#ADD infamylist {%additem %1}}}

#VARIABLE infamylist

The infamylist should be a string list with all the names of the infamous that I have honors. And via the alias I need something to remove the person when he/she isn't infamous anymore. I also really need to get them to the string list first tho. *g*

Anyone help me with doing this?
Reply with quote
Kiasyn
Apprentice


Joined: 05 Dec 2004
Posts: 196
Location: New Zealand

PostPosted: Sun Dec 05, 2004 11:07 pm   
 
#alias honors {honours %1}
#trigger {(%w) is one of the infamous} {#additem infamylist {%1}}
_________________
Kiasyn
Owner of Legends of Drazon
Coder on Dark Legacy
Check out Talon, an easy IMC connection.
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Mon Dec 06, 2004 2:34 am   
 
Lets try to keep our posts in one forum and not spam the same question in forums where it doesn't belong.
_________________
Zmud Support Library
Zmud Knowledge Base
Reply with quote
Firey
Wanderer


Joined: 30 Dec 2003
Posts: 61
Location: Norway

PostPosted: Mon Dec 06, 2004 2:06 pm   
 
yeah, I know.. I just kinda didn't really get to figure out where I should post it. lol.

Thanks, I think it might work. Although I still need a way to remove the person if he/she's not infamous anymore..
Reply with quote
Firey
Wanderer


Joined: 30 Dec 2003
Posts: 61
Location: Norway

PostPosted: Mon Dec 06, 2004 2:11 pm   
 
hmm..there's one problem with Kiasyn's... 'cause it only adds He or She to the infamylist, which doesn't help me that much. The honors of a person is like:

Firey (Male Mhun).
He is 59 years old, having been born on the 3rd of Glacian, 320 years after the
fall of the Seleucarian Empire.
He is ranked 2419th in Achaea.
He is the 2nd ranked combatant with a rating of 315.
He is an extremely credible character.
He is one of the Infamous.
He is considered to be approximately equal to your might.
He is a Vashnarian Climber in the Fellowship of Explorers.
He is a member of the clan called 'The Amakiir Family.'
He is a member of the clan called 'The Achaean Curing Project.'
He is a member of the clan called 'Importantest People.'
He is a mentor and able to take on proteges.
His motto: '"Live" = "Evil"..backwards..'
He succeeded in bringing song back to Bopalopia.
He slew Auntie Maim, stopping a nefarious experiment.
He has helped Auntie Maim bring her nephew back from the dead.
Reply with quote
darmir
Sorcerer


Joined: 10 Oct 2000
Posts: 706
Location: USA

PostPosted: Mon Dec 06, 2004 3:41 pm   
 
Can you post the mud output if a person is not Infamous. I have an idea how to do this but I would like to see the other output.
_________________
Run as hard as a wild beast if you will, but you won't get any reward greater than that destined for you.
Source: (Egyptian)
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Tue Dec 07, 2004 9:59 am   
 
Here ya go all wrapped up and untested but I posted it so of course it will work :P

#ALIAS honours {#T+ Infamy;NameVar="%1";InfamyBool=0;~honours %1}
#TRIGGER "Infamy" {%w ~(*~)} {}
#COND {is one of the infamous} {InfamyBool=1} {within|param=15}
#COND {} {#IF (@Infamybool) {#ADDITEM Infamy @NameVar} {#DELITEM Infamy @NameVar}}

EDIT: All better now!
_________________
Zmud Support Library
Zmud Knowledge Base
Reply with quote
Firey
Wanderer


Joined: 30 Dec 2003
Posts: 61
Location: Norway

PostPosted: Wed Dec 15, 2004 11:30 am   
 
Haven't got to test it yet...

although if someone is not infamous it will say:

He/She is not known for the acts of infamy.

Gotta test the other stuff when I get home.. not that good with scipting yet, so I can't really see if it works or not yet.

:)
Reply with quote
Firey
Wanderer


Joined: 30 Dec 2003
Posts: 61
Location: Norway

PostPosted: Fri Dec 17, 2004 1:53 pm   
 
hmm... it didn't really work tho. :(
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD 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