Basically as a test I'm trying to duplicate one of the tutorial plot flags that cause a journal entry to get created. (Note: I originally did duplicate one but found the documented duplication bug which duplicates the same UID value, so I re-created my plot to get a new UID)
My plot is pretty much a copy/paste of tut_inventory, including the text and I created a couple of test scripts to set/testthe plot flag using the console along the lines of:
#include "plt_test_plot"
#include "wrappers_h"
void main()
{
string sVar = GetLocalString(GetModule(),"RUNSCRIPT_VAR");
WR_SetPlotFlag(PLT_TEST_PLOT, TUT_INVENTORY_1, TRUE);
}
Note that the test scripts I'm using work fine for the tut_inventory plot flag, so I don't believe it's the scripts. However when I set my custom plot flag and then test it's value, the flag is never set!
I have full logging turned on and I can see my plot UID getting set to '1' and then the subsequent check for the value returns '0' (I've verified the UID is indeed my custom plot):
Script SetPlot [0B54077109A94ED683A9E8484994573F] [] -> [1]
Script GetPlot [0B54077109A94ED683A9E8484994573F] [] = [0]
I must be missing something fundamental about plot flags here, any advice?
Edit: I forgot to mention this is in a standalone campaign, if that makes a difference?
Thanks!
Framnk
Modifié par FramnkRulez, 23 juillet 2010 - 03:59 .





Retour en haut






