The rm_obj_from_inven (sic) commands

I Must Be Crazy 2

First time out of the vault
I read in the documentation that came with the official FO2 mapper that this command will not only remove the object from a critter's inventory but also relocate the object to position (0, 1) on the critter's current map. I am curious if this might be a hidden explanation behind the 'too many items' bug.

Also, is there a command or a set of commands that will automatically eradicate everything on position (0, 1) on a map (perhaps this code can be put in map_exit_proc (sic) ) so that the HDD doesn't have to remember so many hidden dropped items on every save?

I can see this being a problem with scripts that overutilize the rm_obj_from_inven commands.
 
Also, is there a command or a set of commands that will automatically eradicate everything on position (0, 1) on a map

I think this should work:(need testing)
Code:
procedure Clear_items_on_map
begin
variable i := 1;   //just a counter

while i < 600 do    //Items pids start from 1 to 5xx
begin   
    if tile_contains_obj_pid(1,0,i) then
    begin      
      destroy_object(tile_contains_pid_obj(1,0,i));
    end
    else
      i := i + 1 ;
end

end
 
Back
Top