thx, but how come I delete the whole "if" lines
things are still the same? do I need to restart the comp or something ? coz I have already run the game again each time I made some changes
Also, here is the whole procedure
procedure armour_change begin
// This function is based on code provided in the B-Team MOD by Jargo of the Fallout Modding Centre (fmc.prv.pl)
if (critter_inven_obj(self_obj,0)!=ArmourVal) then begin
ArmourVal:=obj_pid(critter_inven_obj(self_obj,0));
if (critter_inven_obj(self_obj,0)== 0 ) then begin
// Basic, no armour worn
metarule3(107,self_obj,16777279,0);
floater( random(6000, 6001) );
end
else if ((ArmourVal==PID_LEATHER_ARMOR) or (ArmourVal==PID_LEATHER_ARMOR_MK_II)) then begin
metarule3(107,self_obj,16777221,0);
floater( random(6005, 6006) );
end
else if ((ArmourVal==PID_LEATHER_JACKET) or (ArmourVal==PID_CURED_LEATHER_ARMOR)) then begin
metarule3(107,self_obj,16777222,0);
floater( random(6010, 6011) );
end
else if ((ArmourVal==PID_METAL_ARMOR) or (ArmourVal==PID_METAL_ARMOR_MK_II) or (ArmourVal==PID_TESLA_ARMOR)) then begin
metarule3(107,self_obj,16777223,0);
floater( random(6015, 6016) );
end
else if ((ArmourVal==PID_COMBAT_ARMOR) or (ArmourVal==PID_COMBAT_ARMOR_MK_II) or (ArmourVal==PID_BROTHERHOOD_COMBAT_ARMOR)) then begin
metarule3(107,self_obj,16777219,0);
floater( random(6020, 6021) );
end
else if ((ArmourVal==PID_POWERED_ARMOR) or (ArmourVal==PID_HARDENED_POWER_ARMOR)) then begin
metarule3(107,self_obj,16777217,0);
floater( random(6025, 6026) );
end
else if ((ArmourVal==PID_ADVANCED_POWER_ARMOR) or (ArmourVal==PID_ADVANCED_POWER_ARMOR_MK2)) then begin
metarule3(107,self_obj,16777287,0);
floater( random(6030, 6031) );
end
else if ((ArmourVal==524) or (ArmourVal==PID_PURPLE_ROBE)) then begin
metarule3(107,self_obj,16777218,0);
floater( random(6035, 6036) );
end
restock_obj := critter_inven_obj(self_obj, 1);
debug_msg("armour pid == " + obj_pid(restock_obj));
rm_obj_from_inven(self_obj, restock_obj);
add_obj_to_inven(self_obj, restock_obj);
end
end
Because I wanna keep the floater without changing her look
Please point me out