regice93 Posted February 11, 2011 Posted February 11, 2011 i'm new to scripting and the sites i've used don't seem to help at all, this is my script currently: #include "utility_h"#include "plt_bark_plot"void main (){ if (wr_getplotflag)(plt_bark_plot, my_item_check_flag) = true return; event ev = getcurrentevent(); int neventtype = geteventtype(ev); switch (neventtype) { case event_type_module_load: { ut_additemtoinventory(r"bark_bow.uti",1) ut_additemtoinventory(r"bark_chest.uti",1) wr_setplotflag( plt_bark_plot, my_item_check_flag, true ); break; } default: break; }} the error that comes up is 'E: 13:32:12 - bark_skin.nss - bark_skin.nss(5): Unknown state in compiler' i've followed a tutorial to the letter and i'm really confused XD
nezroy Posted February 14, 2011 Posted February 14, 2011 This line is wrong: if (wr_getplotflag)(plt_bark_plot, my_item_check_flag) = true It should be: if (wr_getplotflat(plt_bark_plot, my_item_check_flag)) == true)
Recommended Posts