Jump to content

can anyone help me with my problem?


kamilapsha

Recommended Posts

hi, i was trying to retexture a armor, just for fun and curiosity. but it seems i get a lot of problem with the script:

 

 

 

 

here it is

 

 

 

// ---- SCRIPT STARTS HERE ----

 

#include "utility_h"

#include "plt_greekarmor_plot"

 

void main()

{

 

if ( WR_GetPlotFlag(PLT_greekarmor_plot, MY_ITEM_CHECK_FLAG ) == TRUE )

return;

 

event ev = GetCurrentEvent();

int nEventType = GetEventType(ev);

 

switch ( nEventType )

{

 

 

 

case EVENT_TYPE_MODULE_LOAD:

{

 

UT_AddItemToInventory(R"greekarmor.uti", 1);

 

 

WR_SetPlotFlag( PLT_greekarmor_plot, MY_ITEM_CHECK_FLAG, TRUE );

 

 

break;

}

default:

break;

}

}

 

 

 

and i keep getting problem with this E: 15:45:27 - greekarmor_script.nss - greekarmor_script.nss(11): Variable defined without type (while compiling var_constants_h.nss)

this revered to

 

 

if ( WR_GetPlotFlag(PLT_greekarmor_plot, MY_ITEM_CHECK_FLAG ) == TRUE )

return;

 

 

i tried to trouble shotting it by myself yet nothing comes to my brain where did i do wrong:?

Edited by kamilapsha
Link to comment
Share on other sites

Plot and flag names are case sensitive and must match exactly. Pretty sure the plot ID is always uppercase: PLT_GREEKARMOR_PLOT.

 

Generally you should be able to find the actual script file exported by the plot in your toolsetexport folder (it'll be something like plt_greekarmor_plot.nss) so you can double-check the constants defined in there to make sure you have the names correct.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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