Bad Boy JH
2010-10-10 06:23:29
I don't really know if this is commit worthy or not, but it was very useful for me. You input the tile, and it prints out the ID of the object (must be interactable, you can mod it to be non-interactable) and writes the 'newobject' procedure for it.
Procedure DumpInteractableAt(TheTile: TTile);
var
TheObject: TRSOBject;
begin
TheObject := GetInteractableAt(TheTile);
Writeln('ID: ' + IntToStr(TheObject.ID));
Writeln('NewObject(' + IntToStr(TheObject.ID) + ', ' + IntToStr(TheObject.objType) + ', Tile' ToStr(TheObject.Tile) + ');');
end;