hi i made my own item set and i used a script i found. it adds the item to the inventory of the player on the game loading. it works fine with games created before the mod was added. but it does not work with new games.
#include "utility_h"#include "plt_my_custom_plot"
void main(){
if ( WR_GetPlotFlag( PLT_MY_CUSTOM_PLOT, MY_ITEM_CHECK_FLAG ) == TRUE ) return;
event ev = GetCurrentEvent(); int nEventType = GetEventType(ev);
switch ( nEventType ) {
case EVENT_TYPE_MODULE_LOAD: {
UT_AddItemToInventory(R"cousland_honor.uti", 1); UT_AddItemToInventory(R"family_armor.uti", 1); UT_AddItemToInventory(R"family_boots.uti", 1); UT_AddItemToInventory(R"family_gloves.uti", 1); UT_AddItemToInventory(R"family_helm.uti", 1);
WR_SetPlotFlag( PLT_MY_CUSTOM_PLOT, MY_ITEM_CHECK_FLAG, TRUE );s break; } default: break; }}
help with item adding script
Débuté par
larry77777
, mars 23 2010 03:03
#1
Posté 23 mars 2010 - 03:03
#2
Posté 24 mars 2010 - 04:48
Are your files global, by any chance?
#4
Posté 24 mars 2010 - 03:09
Chargen does indeed wipe items most of the time. That's certainly the simplest and most likely reason this isn't working as expected.
#5
Posté 25 mars 2010 - 12:18
yup that's the problem.
thanks
thanks
#6
Posté 25 mars 2010 - 01:11
is there a way to force the game to reset a plot flag? (using console commands)





Retour en haut






