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
Edwub
Wanderer


Joined: 21 Nov 2002
Posts: 85
Location: USA

PostPosted: Sat Feb 15, 2003 12:49 pm   

Triggers and timers
 
I have a large set of personalized look back triggers.
example:
Steve looks at you.

is triggered to:
exa steve; wink steve

I have a whole folder for tons of people.

Now, the question I have is that I am part of the PK system of my mud. I don't want steve to exa me 10 times to lag me with triggers so that he can PK me.

I want it so that the look back trig will only work once every 60 seconds.

Can anyone help, give advice?


Edwub the Mage
Reply with quote
Retrovirus
Wanderer


Joined: 13 Jul 2002
Posts: 51
Location: Malaysia

PostPosted: Sat Feb 15, 2003 2:52 pm   
 
Not exactly perfect but...

%1 looks at you
#if @doretardedthings_var 1 {look steve;examine steeve}
#var doretardedthings 0
#alarm +60 {#var doretardedthings 1}

Cameth
Saweth
Fledeth my asseth offeth
Reply with quote
Edwub
Wanderer


Joined: 21 Nov 2002
Posts: 85
Location: USA

PostPosted: Sat Feb 15, 2003 3:21 pm   
 
First, it's not retarded :P
It gives me an easy way to examine other peoples equipment, and the social is just a courtesy, usually its a bow, smile, or a glare.


And what you submitted doesn't really work properly.

Edwub the Mage
Reply with quote
Edwub
Wanderer


Joined: 21 Nov 2002
Posts: 85
Location: USA

PostPosted: Sat Feb 15, 2003 3:24 pm   
 
Hmm, what if I do something with %ismember list?

If someone exa's me, add them to the list, do the social/look back.

If person is on list, don't commit the social/look back.

Then an alarm every 60 seconds to reset the list?

How would I go about doing this

Edwub the Mage
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Sat Feb 15, 2003 4:04 pm   
 
Retrovirus' script has an error. The #IF should be:
#IF (@doretardedthings) {look steve;examine steeve}

Kjata
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sat Feb 15, 2003 8:57 pm   
 
Since you have personalized these triggers, you won't want a wildcard in the pattern and you will want a personalized variable.
#VAR SteveLook 1
#TR {Steve looks at you} {#IF (@SteveLook = 1) {#VAR SteveLook 0;exa steve;wink steve;#ALA +60 {#VAR SteveLook 1}}}

LightBulb
Advanced Member
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Sat Feb 15, 2003 11:50 pm   
 
The other idea is to keep all such non essential triggers to pk in a folder so you can
turn off the folder when you engage in combat.

#T- ClassFolderName

pk people then

#T+ ClassFolderName

Ton Diening
Reply with quote
Edwub
Wanderer


Joined: 21 Nov 2002
Posts: 85
Location: USA

PostPosted: Tue Feb 18, 2003 10:38 am   
 
Thanks for the replies, but..

to Tom, I autoturn them off when I go into PK mode, but my concern is someone using them when I am not in PK mode. Ie, relaxing in a temple when someone rushes up and does it.

To Lightbulb, that's what I'll probably end up doing, but it will require making some 80 plus vars.

Will what I said work?

If Steve exa's me, add him to the list.
If he is member of the list, not to exa

sorta like

#if %ismember{steve, lookbacklist} {}
if he's not a member, {exa steve, wink steve, (addd steve to lookbacklist)

Then make a seperate trigger in the catagory to reset lookbacklist every 60 seconds.

I don't know the member command well, but it would seem to work a lot better and smarter then making 80 different variables.

Edwub the Mage
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Tue Feb 18, 2003 12:26 pm   
 
Yes, it should work:
#TRIGGER {Steve looks at you.} {#IF (!%ismember("Steve", @lookbacklist)) {exa steve;wink steve;#ADDITEM lookbacklist Steve}}
#ALARM {*60} {#VAR lookbacklist ""}

Kjata
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