.ash function for activating clover safety

padamdam

New member
I'm wondering if there is a function to enable/disable the cloverProtectActive=true in the global_prefs file via an .ash command.

I want to disable this feature for one person, only while adventuring with him.
I'd like to turn it on again afterwards.

Does anyone know of a way to do this?
Thanks in advance.
 

Grotfang

Developer
Code:
set_property( "cloverProtectActive" , "true" );

Code:
set_property( "cloverProtectActive" , "false" );
 

Rahmuss

Member
Hmmm.... not working for me. Says it can't invoke that.

I even changed it in the two files:

GLOBAL_prefs.txt
prefs_GLOBAL.txt

And it still uses the ten-leaf clovers to return them back to disassembled clovers.
 
Last edited:

lostcalpolydude

Developer
Staff member
Hmmm.... not working for me. Says it can't invoke that.

I even changed it in the two files:

GLOBAL_prefs.txt
prefs_GLOBAL.txt

And it still uses the ten-leaf clovers to return them back to disassembled clovers.

I bet you edited those files while mafia was running, which means it did no good.
 
The code lines posted above by Grotfang are ASH commands and are for use in an .ash script. From the gCLI to do the same thing you would simply use:

set
cloverProtectActive=true
set cloverProtectActive=false


However you can use ASH comands from the gCLI by typing ASH before the command:

ash
set_property( "cloverProtectActive" , "false" );

For changes to the GLOBAL_prefs.txt file to be saved you must edit the file when mafia is not running.
 
Last edited:
Top