From 4a43dd1cbbf101ebce9d33156946c557236281f9 Mon Sep 17 00:00:00 2001 From: Alejandro Akbal <37181533+VoidlessSeven7@users.noreply.github.com> Date: Thu, 30 Apr 2020 11:04:48 +0200 Subject: [PATCH] Testing another way of removing droids to no avail --- src/Items/Nothing.gml | 27 +++++++++++++++++++++++++++ src/Main.gml | 3 +++ 2 files changed, 30 insertions(+) create mode 100644 src/Items/Nothing.gml diff --git a/src/Items/Nothing.gml b/src/Items/Nothing.gml new file mode 100644 index 0000000..126d83e --- /dev/null +++ b/src/Items/Nothing.gml @@ -0,0 +1,27 @@ +// #define CreateNothingCommand +// CommandCreate("createNothing", 0, ScriptWrap(CreateNothing)); + +#define CreateNothing() + global.Nothing = ItemCreate( + undefined, + "Nothing", + "Does absolutely nothing", + sprPoop, + ItemType.Consumable, + ItemSubType.None, + 0, + 0, + 0, + [Item.Droid, 1], + ScriptWrap(HandleNothingOnUse), + 0, + true + ); + + StructureAddItem(Structure.SewingStation, global.Nothing) + + // Message + Trace("Added Item 'Nothing' to 'SewingStation'"); + +#define HandleNothingOnUse + \ No newline at end of file diff --git a/src/Main.gml b/src/Main.gml index f5dbe76..0e865d6 100644 --- a/src/Main.gml +++ b/src/Main.gml @@ -11,3 +11,6 @@ SetXPCommand(); SetLevelCommand(); KillAllDroidsCommand(); + +// Items +// CreateNothing(); \ No newline at end of file