Aller au contenu

Photo

Plot flag issue...


  • Veuillez vous connecter pour répondre
1 réponse à ce sujet

#1
FramnkRulez

FramnkRulez
  • Members
  • 19 messages
First time messing with plots and they seem pretty straightforward, but just trying to test a simple plot flag is stumping me for some reason.  I've read through the tutorials and a few forums posts and I seem to be doing what others have succeeded with but I can't get my plot flag value to set properly...

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 .


#2
CID-78

CID-78
  • Members
  • 1 124 messages
you have read the wiki right? I think it's quite detailed and you need to get more then the script right for it to work.



http://social.biowar.../index.php/Plot