Voici mon commencement
actions
CanAgripp;
components
Grappers: TGrappers;
Grapper: TObjectTool
ObjectDef: Grappers;
FindMessage: '';
end;
AgrippPlugin: TAgrippPlugin;
object TGrappers
name 'Grappin';
action CanAgripp;
end;
plugin TAgrippPlugin
on PressKey do
var
Square: TSquare;
Position: T3DPoint;
begin
Square := Player.Map[Position];
if Key <> Ord('G') then
Exit;
if Player cannot CanAgripp then
Exit;
if not (Square is TGround) then
Exit;
end;
end;
end.