View Full Version : Switch .ccs files in ASH
dawdawdo
05-23-2008, 07:54 AM
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
05-23-2008, 09:38 PM
This will adventure 3 times at the specified location using mayfly.css, then adventure for your remaining adventures using default.css:
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.
dawdawdo
05-23-2008, 10:59 PM
This is the part I didn't know about:
set_property("customCombatScript","mayfly.ccs");
Thanks a lot.
Powered by vBulletin® Version 4.1.12 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.