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
Kaioshin
Beginner


Joined: 28 Sep 2002
Posts: 26
Location: USA

PostPosted: Thu Oct 03, 2002 3:14 am   

Random trigger
 
Hiya Zuggers...

Well I would like to create some sort of random trigger...dont know how exactly to say it...Im a serpent and i have the ability to bite an opponent and create illusions...so in essence i would like to make like up to... lets say 50 alias! #alias {para} {You are paralysed and cant do that} I would create a bunch off aliases that are something jsut like the one i just wrote and everytime i bite my opponent it would take 1 of the 50 aliases i made randomly and send it to the mud?

Example: You bite Zmud and he screams in agony...then randomly this will trigger 1 of the 50 aliases randomly and i will conjure that illusion, whereas my opponent will get a message like You are paralyzed and can't do that.

If you dont understand, ill repost 2morrow...Thxs all
Reply with quote
Klaymen
Newbie


Joined: 25 Sep 2002
Posts: 7
Location: USA

PostPosted: Thu Oct 03, 2002 5:12 am   
 
Create your 50 aliases and name them, for example, 'para1' through 'para50'. Then you can use the trigger:

#TRIGGER {You bite Zmud and he screams in agony} {para%random( 1, 50)}

Now every time you recieve the text 'You bite Zmud and he screams in agony' one of your 50 'para' alieses will be chosen and executed randomly.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Thu Oct 03, 2002 6:21 pm   
 
Put your 50 illusions in a stringlist variable using #ADDITEM. You can then use %random and %item to choose one.
#ADDITEM illusion {You are paralysed and can't do that}
#TR {You bite (%w) and he screams in agony} {conjure illusion %item(@illusion, %random(1, %numitems(@illusion)))}


LightBulb
Senior Member
Reply with quote
Kaioshin
Beginner


Joined: 28 Sep 2002
Posts: 26
Location: USA

PostPosted: Sun Nov 10, 2002 6:49 pm   
 
Greetings Zuggsters,

I've been help quite some time back by some of you individuals and for that I thank you very much, but heres another in regards to a random macro trigger...if that came out right.
I usually have all the Function keys, to both secrete a venom and bite my target..For instance F12 = secrete camus|bite @target. Same goes for all the others but I would secrete something else.

I want to be able to make some sort of alias, by typing battle or something..It would change all the function buttons and add this command: conj%random( 1, 50) directly in between the 2 commands i mentioned earlier. So hence it would be secrete *venom*| conj%random( 1, 50)| Bite @target...If this does not make sense, ill try to explain it later on, but if anyone has another way to help me with this please post it...thanks all

Kaioshin
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Mon Nov 11, 2002 4:47 am   
 
Where's the difficulty? It's just cut-and-paste from the trigger, after all. (Of course, if you have the trigger going also you'll be trying to conjure twice)

secrete *venom*|conjure illusion %item(@illusion, %random(1, %numitems(@illusion)))|bite @target

%numitems(@illusion) is just the number of items, if you've got 50 illusions it'll be 50 but if you have more (or less), it automatically adjusts. You can use the number if you prefer.

secrete *venom|conjure illusion %item(@illusion, %random(1, 50))|bite @target

I should probably point out that there's no delay between commands, so you'll probably run into balance/equilibrium problems.

LightBulb
Senior Member
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