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


Joined: 27 Sep 2002
Posts: 83

PostPosted: Tue Sep 28, 2004 6:47 pm   

Some help with stuff....
 
I am trying to figure out how to do a trigger replace thing with mxp but trying to find the documentation is alluding me.

I need something so when I press a button it will ask me What I want to add to my NPC list. Which puts that somewhere so when I see the NPC it will become a link type thing where when click it will automatically type kill (name of npc). If anyone would like to provide me with this I will be very happy and grateful.

Thank you!

-Fewyn
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Tue Sep 28, 2004 8:39 pm   
 
I find MXP links hard to click as things are scrolling. Maybe use buttons?

#VAR V_KillList {a dog|a pony|a doe}

#TRIGGER {^({@V_KillList}) {arrives|flies|slimes in} from the %x$} {#IF (@V_KillLast3 != @V_KillLast2) {#VAR V_KillLast3 @V_KillLast2};#IF (@V_KillLast2 != @V_KillLast) {#VAR V_KillLast2 @V_KillLast};#VAR V_KillLast %1}

#BU B_KillLast {~@V_KillLast} {kill @V_KillLast}
#BU B_KillLast2 {~@V_KillLast2} {kill @V_KillLast2}
#BU B_KillLast3 {~@V_KillLast3} {kill @V_KillLast3}
#BU B_KillList {Add Kill} {#ADDITEM V_KillList %prompt("","Add to list:");#SH V_KillList is now: %expandlist(@V_KillList,%crlf)}

That way you click on the three buttons of the 3 most recent things you want to kill.

Something like that.

[aside: typo city]


Last edited by TonDiening on Tue Sep 28, 2004 8:45 pm; edited 3 times in total
Reply with quote
Fewyn
Wanderer


Joined: 27 Sep 2002
Posts: 83

PostPosted: Tue Sep 28, 2004 8:42 pm   
 
ok so is there a way so when i click a button it will bring up a menu with those certain npcs that it has seen in my current room and will send the command? (I'll still need to be able to add to the list easily)

Once again thanks again!
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Tue Sep 28, 2004 8:48 pm   
 
That is harder as usually the "long" name of NPCs are radically different.

A green dog sits here and barks.
A fluffy doe chews on an apple here.

You could make a trigger to capture the front pieces of those sentences.

Need to have your kill list reflect the long names of the NPCs:
#VAR V_KillList {A green dog sits|A fluffly doe chews}

Then you make a trigger similar to the one for moving above (delete the other)
#TRIGGER {^({@V_KillList})} {#IF (@V_KillLast3 != @V_KillLast2) {#VAR V_KillLast3 @V_KillLast2};#IF (@V_KillLast2 != @V_KillLast) {#VAR V_KillLast2 @V_KillLast};#VAR V_KillLast %1}
Reply with quote
Fewyn
Wanderer


Joined: 27 Sep 2002
Posts: 83

PostPosted: Tue Sep 28, 2004 8:52 pm   
 
I'm basically just going to put generic names. As on my mud npcs have long names and short names and short names are the ones commanly used in killing and stuff. Like the tall fat man could be killed using "kill man", "kill tall man" "kill fat man" and "kill tall fat man"

and all of the npcs are listed in the last line of "look"
Reply with quote
Fewyn
Wanderer


Joined: 27 Sep 2002
Posts: 83

PostPosted: Thu Sep 30, 2004 3:42 am   
 
TonDiening wrote:
That is harder as usually the "long" name of NPCs are radically different.

A green dog sits here and barks.
A fluffy doe chews on an apple here.

You could make a trigger to capture the front pieces of those sentences.

Need to have your kill list reflect the long names of the NPCs:
#VAR V_KillList {A green dog sits|A fluffly doe chews}

Then you make a trigger similar to the one for moving above (delete the other)
#TRIGGER {^({@V_KillList})} {#IF (@V_KillLast3 != @V_KillLast2) {#VAR V_KillLast3 @V_KillLast2};#IF (@V_KillLast2 != @V_KillLast) {#VAR V_KillLast2 @V_KillLast};#VAR V_KillLast %1}


Question about this. Do i have manually add to the V_KillList or do you have some way of adding to it quicker TonDiening?
Reply with quote
Falan
Wanderer


Joined: 17 Aug 2004
Posts: 98
Location: OK, USA

PostPosted: Thu Sep 30, 2004 7:02 am   
 
You could always make a #CW list to color your targets and use a speedmenu for one-click kills.

#VAR KillList {cockroach|rat|child}
#TR {{@KillList}} {#CW cyan}
#CLASS MySpeedMenu
#MENU "kill" {kill %selword}
#CLASS 0

Used Pretty Print
Syntax Colourizer

This'll color your targets cyan so you can easily see them. Then, simply right-click on the target name and select the menu command "kill". It will send the command "kill whatever you clicked on" to the MUD.

Once you #CAPTURE/#GAG the grouptalk from Discworld the scrolling is fairly slow. MXP should work if you really want to explore that option.
_________________
zMUD 7.05a
Reply with quote
Fewyn
Wanderer


Joined: 27 Sep 2002
Posts: 83

PostPosted: Thu Sep 30, 2004 7:36 am   
 
Falan wrote:
You could always make a #CW list to color your targets and use a speedmenu for one-click kills.

#VAR KillList {cockroach|rat|child}
#TR {{@KillList}} {#CW cyan}
#CLASS MySpeedMenu
#MENU "kill" {kill %selword}
#CLASS 0

Used Pretty Print
Syntax Colourizer

This'll color your targets cyan so you can easily see them. Then, simply right-click on the target name and select the menu command "kill". It will send the command "kill whatever you clicked on" to the MUD.

Once you #CAPTURE/#GAG the grouptalk from Discworld the scrolling is fairly slow. MXP should work if you really want to explore that option.


This works perfectly fine except if there is more than one. Any help?
Reply with quote
Fewyn
Wanderer


Joined: 27 Sep 2002
Posts: 83

PostPosted: Fri Oct 01, 2004 11:38 pm   
 
no one?
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Sat Oct 02, 2004 3:38 am   
 
This works perfectly fine except if there is more than one. Any help?

I left my foil hat at work your gonna have to let us in on a little more detail here. more then one what and what is it doing/not doing.
_________________
Zmud Support Library
Zmud Knowledge Base
Reply with quote
Fewyn
Wanderer


Joined: 27 Sep 2002
Posts: 83

PostPosted: Sat Oct 02, 2004 3:58 am   
 
ok if there is more than one of those npcs in the room it will just do "kill" and not let me select which one :|
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Sat Oct 02, 2004 1:07 pm   
 
It works correctly for me, Right click the npc to kill and select kill

You could also change it like this

#CLASS MySpeedMenu
#MENU {kill %selword} {kill %selword}
#CLASS 0

And it will show kill wordselectedhere in the speedmenu so you know exactly what it is going to send
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