Only problem is, it doesn't work. I know the plot flags aren't the issue because I have tested with those checks disabled - in fact, the entire block doesn't work because the floaty message never shows up. I've tried a few different event types, and made sure to change things so I know 100% it should work (like removing the variables there), but no success so far.case EVENT_TYPE_AREALOAD_SPECIAL:
{
if (WR_GetPlotFlag(PLT_DESPERATE_MOTHER, MOTHER_MODULE_CHECK_IN_PROGRESS) == TRUE)
{
object oPC = GetHero();
int nMoney = GetCreatureMoney(oPC);
int nMoneyTheft = FloatToInt(nMoney * 0.1);
if (nMoney > 9)
{
UT_MoneyTakeFromObject(oPC, nMoneyTheft);
DisplayFloatyMessage(oPC, "<desc>You suddenly notice your wallet feels a little lighter. Damned pickpockets.</desc>", FLOATY_MESSAGE, 16777215, 3.0);
}
WR_SetPlotFlag(PLT_DESPERATE_MOTHER, MOTHER_MODULE_CHECK_IN_PROGRESS, FALSE);
}
break;
}
So, my question is - is there a way to actually do this, or do I have to fake it using, say, triggers? Is there any sort of elegant solution?
Modifié par sea-, 25 mars 2012 - 08:08 .





Retour en haut






