Different ccs per login

amisam

New member
Hi all,

Is it possible to have a different set of ccs sets per login or do I need to name my ccs scripts to reflect the login that will be using them?

Thanks.
 

StormCrow42

Member
The CCS scripts are the same across all your logins, but you can pick which one to use at any time, so you can pick a different named one for each login.
 

matt.chugg

Moderator
I think (and I will attempt to test later if I have time) that it should be possible to use set_property in an ash script and set your ccs in a login script, if you create a ccs for each id, naming it the same as the id, you could possibly use something like the following

Code:
void main() {
	set_property("customCombatScript",my_name()+".ccs");
}
 

matt.chugg

Moderator
I just looked in my prefs files, and the value for customCombatScript is stored in the user_prefs.txt not in the GLOBAL_prefs.txt so in fact it should be entirly possible to just set a different one for each username. they will all be available from any username, but mafia should remember which one you pick accross logins.

which also may have been the point stormcrow was making!
 

kain

Member
Mafia does indeed remember which char is using which combat option/script. They're all visible to all accounts, though.

Part of my login script is as follows:
cli_execute("ccs " + to_lower_case(my_name()));

Each of my characters have a CCS called their name that has enough options to get them through an ascension based on the skills they have.
 

Bale

Minion
Why do you use that? Each character will remember the last CCS that they used, so it would never be needed if they always use the CCS with their name, right?
 

amisam

New member
Thanks for all the responses. The reason that I was asking was that I have an ash script that I wanted to use across a couple of characters which sets different ccs's at different points in the script. However, the two characters use slightly different skills/familiar behaviour during combat so I was trying to reference a single ccs name in the ash script without having to have a copy of the ash script for each character. It wouldn't really be a big deal to have 2 scripts and using the example in kain's post I can keep it as a single script by programmatically generating the name of ccs to use.
 
Last edited:

kain

Member
I call that because it saves me a manual step to verify that I'm using the right CCS. If my chars are in aftercore/casual (and several other conditions are right) they'll auto-run a bounty as the final step in their login script. kain.ccs (as an example) uses FTF/SS/casualcombat and will exploit my olfaction and occasionally putty to complete a bounty hunt. If I was previously basementing, that CCS (basement.ccs) only contains the expensive (120mp) hobopolis spells and noodles ... that I wouldn't want cast at a goat or an astronomer.

It's a little overkill probably, and I could, if I tried, smash it all into one CCS, but I'm lazy and this works for now.
 

zarqon

Well-known member
As far as I know there is no way to specify a certain CCS from within ASH. You can tell the script to use a CCS, but not which one to use.
 

Bale

Minion
Wrong. I've long since learned that it works just like matt.chugg said.

Code:
set_property("battleAction", "custom combat script");
set_property("customCombatScript", "Standard");
 
Top