The TAVERNBRAWL_FROMDIALOG toggle is meant to prevent such tavern brawls altogether. Just for people who are annoyed by it.
I'll include it for the soldier raids too then.
Then you can call it with:Code:void Random_Brawl() { ref PChar = GetMainCharacter(); if (TAVERNBRAWL_FISTSONLY) PChar.TAVERNBRAWL = true; //MT: makes spawned enemies fight with their fists LAi_LocationFightDisable(LoadedLocation, false); Random_Raid("smugglers", 5, PIRATE,"enemy","friend",LanguageConvertString(tmpLangFileID,"TAVERNBRAWL") + "!!!!"); DeleteAttribute(PChar,"TAVERNBRAWL"); //MT: makes spawned enemies fight with normal weapons again }
Code:if (TAVERNBRAWL_FROMDIALOG) Random_Brawl();
So the first 'if' has no {} because it's on the same line, and second 'if' got removed because deleting something that wasn't there in the first place doesn't cause errors?