Game_object *obj = get_item(parms[0]); int flag = parms[1].get_int_value(); if (obj) { obj->set_flag(flag); if (flag == Actor::dont_render) { gwin->paint(); gwin->show(); } }
USECODE_INTRINSIC(set_npc_flag){	// Set npc flag(item, flag#).	Game_object *obj = get_item(parms[0]);	int flag = parms[1].get_int_value();	if (obj)		{		obj->set_flag(flag);		if (flag == Actor::dont_render)			{	// Show change in status.			gwin->paint();			gwin->show();			}		}	return(no_ret);}