PDA

View Full Version : Is it possible to delineate monster names?



eegee
09-19-2011, 04:20 PM
When making the Custom Combat Script, is possible to put multiple location names or multiple monster names? If so, what should I use to delineate them?

p.s. I couldn't find the answer here (http://kolmafia.sourceforge.net/combat.html) or here (http://wiki.kolmafia.us/index.php?title=Custom_Combat_Script).

roippi
09-19-2011, 04:39 PM
Er.. the wiki link explains that pretty thoroughly. You put each monster's name in brackets, as shown.

eegee
09-19-2011, 04:54 PM
I understand that, but I would like to merge the same command for multiple monsters/locations.

For example:

[monster A <delineation> monster B]
attack with weapon
vs

[monster A]
attack with weapon

[monster B]
attack with weapon

slyz
09-19-2011, 05:26 PM
You can't. What you can do is:


[ monster A ]
section monstersAB

[ monster B ]
section monstersAB

[ monstersAB ]
attack with weapon

heeheehee
09-19-2011, 07:18 PM
Call an ASH script, which does something like "foreach i in $monsters[a, b, c] ... "?

eegee
09-20-2011, 04:42 AM
Thank you slyz, I see I missed that in both links. I didn’t realize that there was a “goto” in CSS. That will work just as well.

Thanks as well heeheehee, I’ll look into calling an ASH if my scenarios become too complex.