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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Legissal
Newbie


Joined: 10 Jul 2021
Posts: 2

PostPosted: Sat Jul 10, 2021 5:44 pm   

Simple targetting system not surviving.
 
Greetings!

So i am back to old habits. My ten year old targetting system from zmud is not working on cmud. I have tried to read the helpfiles, but can not make it work.
I am actually unsure where to put what of the script as well.

What i need is just a system that enables me to set 4 different targets to different keys and being able to switch between those targets.
Same aliases goes to all targets.

Example. Bob and Pete are my targets. Keys 1 and 2 switches between the targets. How to set target 1 to bob and set target 2 to Pete.
Key M=murder@target and key b= Bash@target

Any help would be greatly appreciated.

Old addict back again.
Reply with quote
Legissal
Newbie


Joined: 10 Jul 2021
Posts: 2

PostPosted: Sat Jul 10, 2021 9:45 pm   The old system from zmud
 
#CLASS {Target System}
#CLASS 0

#CLASS {Target System|Variable}
#VAR target1 {Maelth}
#VAR target {Rogost}
#VAR target2 {Rogost}
#VAR target3 {Jolaerg}
#VAR target4 {Kucerael}
#CLASS 0

#CLASS {Target System|Macro}
#KEY F2 {#var target @target2;#echo Target is now --->@target2!;#echo --------------------------------}
#KEY F3 {#var target @target3;#echo Target is now --->@target3!;#echo --------------------------------}
#KEY F4 {#var target @target4;#echo Target is now --->@target4!;#echo --------------------------------}
#KEY F1 {#var target @target1;#echo Target is now --->@target1!;#echo --------------------------------}
#CLASS 0





#CLASS {Target System|Alias}
#ALIAS t1 {#var target1 %1;#Echo First target is now %1}
#ALIAS t2 {#var target2 %1;#echo Second target is now %1}
#ALIAS t3 {#var target3 %1;#echo Third target is now %1}
#ALIAS t4 {#var target4 %1;#echo Fourth target is now %1}
#CLASS 0

#CLASS {Target System|Other}
#STAT {Target = @target Target 1: @target1 Target 2: @target2 Target 3: @target3 Target 4: @target4}
#CLASS 0
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4708
Location: Pensacola, FL, USA

PostPosted: Wed Jul 14, 2021 2:34 am   
 
I don't see anything in that code that would be failing.

t1 Bob
t2 Pete

Should be how you set the targets.
_________________
Discord: Shalimarwildcat
Reply with quote
jacobhue
Newbie


Joined: 26 Jan 2022
Posts: 3

PostPosted: Fri Jan 28, 2022 9:29 am   
 
Have you ever seen something in code that was failing but couldn't pinpoint why? So have I. It can be maddening. I can help you understand what is going on, and more importantly, how to fix it. www.imybkexperience.com www.mykfc-experience.com www.mybpcreditcard.one
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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