Switch .ccs files in ASH

dawdawdo

Member
Does anyone know how to switch between custom combat scripts (i.e. use a different .ccs file) from within an ASH script?

Here's my intention: I want to adventure in the same area, but summon mayflies for the first several turns, then switch to my normal ccs.
 

zarqon

Well-known member
This will adventure 3 times at the specified location using mayfly.css, then adventure for your remaining adventures using default.css:

Code:
void mayfly_somewhere(location sw) {
  set_property("battleAction","custom combat script");
  set_property("customCombatScript","mayfly.ccs");
  adventure(3,sw);
  set_property("customCombatScript","default.ccs");
  adventure(my_adventures(),sw);
}

void main(location where) {
  mayfly_somewhere(where);
}

Hope it's a good starting point for you.
 
Top