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
Gear56
Newbie


Joined: 14 Sep 2005
Posts: 4

PostPosted: Fri Nov 18, 2005 3:57 am   

#KEY help
 
I'm wondering if there is a way to have the same key do multiple things. Like if @movement = 1 then key 8 on the numberpad will equal north. and if @archery = 1 and movement = 0, num 8 will equal shoot <target> north. Basically I'm wondering if there is any way to put a #KEY command into an if statement, heh. I only have one arm, so I'd like to set it up so I can play with mainly just the numberpad. Hope my question is clear enough, let me know if not I will try and clarify. Thanks!
Reply with quote
Guinn
Wizard


Joined: 03 Mar 2001
Posts: 1127
Location: London

PostPosted: Fri Nov 18, 2005 6:28 am   
 
Should be easy enough to do. It's not putting a #KEY into an #IF though, rather putting an #IF into a #KEY.

Off the top of my head...
#KEY 1 {#if (@movement = 1) {north} {#if (@archery = 1) {shoot north}}}
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