summaryrefslogtreecommitdiff
path: root/example/scripts/monster/settings.lua
diff options
context:
space:
mode:
authorErik Schilling <ablu.erikschilling@googlemail.com>2013-05-05 10:35:36 +0200
committerErik Schilling <ablu.erikschilling@googlemail.com>2013-08-26 22:56:47 +0200
commit9314e60fc37d4940d80a4c110ead5c0b8c324947 (patch)
treed0573aacf448d6eafc95080661955c5749be6f78 /example/scripts/monster/settings.lua
parentc3506577da37bb25cbb42bd534e74b05910d1580 (diff)
downloadmanaserv-9314e60fc37d4940d80a4c110ead5c0b8c324947.tar.gz
manaserv-9314e60fc37d4940d80a4c110ead5c0b8c324947.tar.bz2
manaserv-9314e60fc37d4940d80a4c110ead5c0b8c324947.tar.xz
manaserv-9314e60fc37d4940d80a4c110ead5c0b8c324947.zip
Added a first very basic monster ai version
The ai is similar to the old c++ version. Only the target searching is executed every 10 ticks only now to prevent performance issues with too many lua calls.
Diffstat (limited to 'example/scripts/monster/settings.lua')
-rw-r--r--example/scripts/monster/settings.lua28
1 files changed, 28 insertions, 0 deletions
diff --git a/example/scripts/monster/settings.lua b/example/scripts/monster/settings.lua
new file mode 100644
index 00000000..b095a2d7
--- /dev/null
+++ b/example/scripts/monster/settings.lua
@@ -0,0 +1,28 @@
+return {
+ ["Maggot"] = {
+ strollrange = TILESIZE,
+ aggressive = false,
+ trackrange = 5 * TILESIZE,
+ attack_distance = TILESIZE,
+ },
+ ["Scorpion"] = {
+ strollrange = 2 * TILESIZE,
+ aggressive = false,
+ trackrange = 5 * TILESIZE,
+ attack_distance = TILESIZE,
+ },
+ ["Red Scorpion"] = {
+ strollrange = TILESIZE,
+ aggressive = true,
+ trackrange = 5 * TILESIZE,
+ attack_distance = TILESIZE,
+ ability_id = 2,
+ damage = 1,
+ },
+ ["Green Slime"] = {
+ strollrange = TILESIZE,
+ aggressive = true,
+ trackrange = 5 * TILESIZE,
+ attack_distance = TILESIZE,
+ },
+}