Any reason as to why Subdual is still a widget? I know that I had run into issues with it working correctly from a menu before, but this worked for me.
//::///////////////////////////////////////////////
//:: Name Subduel Toggle switch.
//:: FileName ant_sd_toggle
//:: Copyright (c) 2007 - 2012
//:://////////////////////////////////////////////
/*
This allows a player to set subduel to being turned on or off.
*/
//:://////////////////////////////////////////////
//:: Created By: Tim (HazNpho)
//:: Created On: July 05, 2007
//:: Modified By: Tim (HazNpho)
//:: Modified On: April 28, 2010
//:: Reason: Added debug and cleaned up.
//:://////////////////////////////////////////////
#include "ant_mod_func_01"
void main()
{
object oPC = GetPCSpeaker();
string sDebug = "Debug Mode: Sub Duel\nPlayer: "+GetName(oPC); //Begin Debug
string sSDToggle; //Toggle string for debug
int iSubD = GetLocalInt(oPC, "iSubD");
switch (iSubD)
{
case FALSE:
FloatingTextStringOnCreature("Subduel has been turned on.", oPC, FALSE);
sSDToggle = "ON";
break;
case TRUE:
FloatingTextStringOnCreature("Subduel has been turned off.", oPC, FALSE);
sSDToggle = "OFF";
break;
}
sDebug += "The player has turned "+sSDToggle+" subduel in "+GetName(GetArea(oPC))+".\nValue is: "+IntToString(iSubD);
DebugSys(3, oPC, sDebug); //send debug
SetLocalInt(oPC, "iSubD", !iSubD); //Apply opposite int to PC
}
Ignore me if this isn't a matter of conversation issue.