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
mikeC130
Apprentice


Joined: 03 Jul 2006
Posts: 108

PostPosted: Mon Feb 13, 2023 4:15 pm   

Comments within settings
 
Apologies if this is already documented in some obvious location that I should have already found, but is there a way to enter comments within a long script (say, a multistage trigger) where you can detail such things as variable purpose, etc? I know that notes can be entered for a setting as a whole, which show up when you look at the setting in the package editor - what I am looking for is some type of comment or remark line that can be entered into a script which will be ignored at compile time.

Mike
Reply with quote
chaossdragon
Apprentice


Joined: 09 Apr 2008
Posts: 167

PostPosted: Tue Feb 14, 2023 5:41 am   
 
I use

// script ignores this line

actual sample...
Code:
 combo alias

//master combo list
$comboList="opener|blind|basic|DfA|dahleg|slow"

// command check with echo syntax
#IF (!%ismember(%1,$comboList)) {#echo "Syntax : combo <ARG> - where ARG is : opener|blind|basic|DfA|dahleg|slow"}

//switch function for combo order
charStats.combo = %1

#SWITCH (%1 = opener) {#VAR comboTemp @opener}
  (%1 = blind) {#VAR comboTemp @blind}
  (%1 = stun) {#VAR comboTemp @stun}

#EXE {%pop(@comboTemp)}
#T+ ComboSeq
Reply with quote
mikeC130
Apprentice


Joined: 03 Jul 2006
Posts: 108

PostPosted: Tue Feb 14, 2023 1:07 pm   
 
Just what I was looking for - thank you very much good dragon!
Reply with quote
Rappy
Wanderer


Joined: 15 Jul 2005
Posts: 96

PostPosted: Sat Feb 18, 2023 3:49 am   
 
; works as well.
_________________
Windows 11 Pro,
cMUD 3.34
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