-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2f8c367
commit 57d7cad
Showing
2 changed files
with
28 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#define KillAllDroidsCommand | ||
CommandCreate("killAllDroids", 0, ScriptWrap(KillAllDroids)); | ||
|
||
#define KillAllDroids() | ||
/// @desc Kills all droids | ||
|
||
if (!InGame()) return Trace(global.notInGameMessage) | ||
|
||
// Droid variables | ||
var totalDroids = ItemCount(Item.Droid) | ||
var activeDroids = instance_number(objDroid) | ||
|
||
// Debug droid data | ||
Trace("Total Droid count: " + string(totalDroids)); | ||
Trace("Active Droid count: " + string(activeDroids)); | ||
|
||
// Drones respawn on reload | ||
instance_destroy(objDroid) | ||
|
||
// Message | ||
Trace("Killed " + string(activeDroids) + " Droids"); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
#define Main | ||
|
||
// Global | ||
globalMessages() | ||
globalMessages(); | ||
|
||
// Player | ||
GiveItemCommand() | ||
GiveItemCommand(); | ||
|
||
SetXPCommand() | ||
SetXPCommand(); | ||
|
||
SetLevelCommand() | ||
SetLevelCommand(); | ||
|
||
KillAllDroidsCommand(); |