![](templates/Classic/images/spacer.gif) |
mikeC130 Apprentice
Joined: 03 Jul 2006 Posts: 110
|
Posted: 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 |
|
|
![](templates/Classic/images/spacer.gif) |
chaossdragon Apprentice
Joined: 09 Apr 2008 Posts: 168
|
Posted: 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 |
|
|
|
![](templates/Classic/images/spacer.gif) |
mikeC130 Apprentice
Joined: 03 Jul 2006 Posts: 110
|
Posted: Tue Feb 14, 2023 1:07 pm |
Just what I was looking for - thank you very much good dragon!
|
|
|
![](templates/Classic/images/spacer.gif) |
Rappy Wanderer
Joined: 15 Jul 2005 Posts: 96
|
Posted: Sat Feb 18, 2023 3:49 am |
; works as well.
|
|
_________________ Windows 11 Pro,
cMUD 3.34 |
|
|
![](templates/Classic/images/spacer.gif) |
|
|