Here's the applicable code (this is repeated for the other buttons, I didn't think it necessary to include all of them). If I cut the format string for GetMenuFloatValue down to 45 characters it saves fine but anything more and it causes CS to crash.
if (isKeyPressed3 25 ) ; Persuade set buttonVisible to GetMenuFloatValue "dialog_topics\dialog_button_layout\dialog_persuade\visible" 1009 if (buttonVisible == 2) ClickMenuButton "dialog_topics\dialog_button_layout\dialog_persuade" 1009 endif set curKey to 25elseif...
Any help would be appreciated. The mod will work without that function but it causes some buggy behavior.