Jump to content

Codex entry aint working right on custom item.


Muusa

Recommended Posts

I have a problem with my mod.

 

If i give item directly to players inv it works just great and gives Codex right away but on second version where you need to buy item it still gives codex entry right away after i load game even i havent bought the item yet.

 

I have tried and tried but i just cant get it right.

 

I am using:

 

if ( WR_GetPlotFlag( PLT_PLOT2, MY_FLAG ) == TRUE )

return;

 

and later on code

 

WR_SetPlotFlag( PLT_PLOT2, MY_FLAG, TRUE );

 

 

I can completely remove "if ( WR_GetPlotFlag( PLT_PLOT2, MY_FLAG ) == TRUE )" whitout eny effect, but if i set it to false whole mod aint wroking.

If i set "WR_SetPlotFlag( PLT_PLOT2, MY_FLAG, TRUE );" to FALSE it doesnt give Codex entry when i load the game...mod works but it doesnt give codex entry even when i buy the item from vendor.

 

What am I doing wrong?

 

In short: As it is codex entry pops ups after i load the game. It shoud load when I buy the item.

Link to comment
Share on other sites

Thank you=)

That is nearly there, if I only could understand what Gralamin means with:

"Do note, this does not work if you want to be able to find or buy the item. INVENTORY_ADDED is not sent to the core script. To fix this, make the custom item variable ITEM_SEND_ACQUIRED_EVENT = 1, and use CAMPAIGN_ITEM_ACQUIRED. Otherwise, good work."

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...