Hey all on this dead site. I've delved back in RoN scripting for a project I plan to work on. Anyways as I relearn and learn much more of the scripting for BHS I will generally get extra little bits and pieces that I can share. I just created a no attrition script for all of you who hate getting attrition in game, currently its tracking number is 2156, but I'll also put the code in this post.
Time of Tea
Still in the Dark Age
Don't be a melodramatic clown. ~Mr Wednesday
/*No_Attrition
*Disables attrition for all players
*Script by MrMew, can be found as MrMew on Heavengames or on the RoN discord channel athttps://discord.gg/keTGNHn*/
scenario
{
run_once {
for(p=0;p<9;p++){ //for loop that counts from 0 to 8, runs through loop 8 times, once for each player (p=player)
disable_building_attrition(p);
disable_give_attrition(p);
disable_take_attrition(p);
//Honestly could probably just have give or just take, but hey this is short enough already
}
}
}
Still in the Dark Age
Don't be a melodramatic clown. ~Mr Wednesday