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


Joined: 21 Sep 2009
Posts: 17

PostPosted: Mon Mar 23, 2015 1:39 am   

anyone able to help translate this zmud script for cmud use?
 
tried just copying /pasting but it failed to do much

#ALIAS tar {#var Target %1;#say -=-=-=-=-= Target Set to: @Target =-=-=-=-=-} {-}
#ALIAS westbac {#T- FleeBac;west;bac @Target} {FleeBac}
#ALIAS eastbac {#T- FleeBac;east;bac @Target} {FleeBac}
#ALIAS northbac {#T- FleeBac;north;bac @Target} {FleeBac}
#ALIAS southbac {#T- FleeBac;south;bac @Target} {FleeBac}
#ALIAS upbac {#T- FleeBac;up;bac @Target} {FleeBac}
#ALIAS downbac {#T- FleeBac;down;bac @Target} {FleeBac}
#ALIAS swbac {#T- FleeBac;sw;bac @Target} {FleeBac}
#ALIAS sebac {#T- FleeBac;se;bac @Target} {FleeBac}
#ALIAS nebac {#T- FleeBac;ne;bac @Target} {FleeBac}
#ALIAS nwbac {#T- FleeBac;nw;bac @Target} {FleeBac}
#ALIAS bson {#T+ FleeBac;#var BS_Status ON;#SAY -=-=-=-= Flee Bac Activated =-=-=-=-} {-}
#ALIAS bsoff {#T- FleeBac;#var BS_Status OFF;#SAY -=-=-=-= Flee Bac De-Activated =-=-=-=-} {-}
#VAR Target {Seeking} {Seeking} {-}
#VAR Flee_Dir {eastward|westward|northward|southward|upward|downward} {eastward|westward|northward|southward|upward|downward} {-}
#VAR Flee_DiagDir {northeastward|northwestward|southeastward|southwestward} {northeastward|northwestward|southeastward|southwestward} {-}
#VAR BS_Status {ON} {_nodef} {-}
#TRIGGER {^You flee (%w)!} {%case(%ismember(%1,@Flee_Dir),westbac,eastbac,southbac,northbac,downbac,upbac);%case(%ismember(%1,@Flee_DiagDir),swbac,sebac,nwbac,nebac)} {FleeBac} 519
#KEY F1 {BSON;flee} {-}
#STAT {Flee_Bac_Status: @BS_Status | Target: @Target} {-}
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Mon Mar 23, 2015 3:37 am   
 
It looks like it should properly create a bunch of settings. I seem to recall that setting a macro to F1 doesn't work too well, you should what key that is assigned to. The trigger {^You flee (%w)!} should have it script changed to:
Code:
#SWITCH (%1)
 ("northward") {southbac}
 ("southward") {northbac}
 ("eastward") {westbac}
 ("westward") {eastbac}
 ("northeastward") {swbac}
 ("southeastward") {nwbac}
 ("northwestward") {sebac}
 ("southwestward") {nebac}
 ("upward") {downbac}
 ("downward") {upbac}
This change will eliminate the need of the 2 variables Flee_Dir and Flee_DiagDir, you may delete them after making the change to the trigger.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
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