I have made my 8th multiplayer level. It’s called Burning Ices.
I have received complaints, that all my levels were mountain terrains. Well, this is a new glacier level!
This is forked from Ace Of Coders.
There are the control points, blah blah blah.
There are several major differences.
Differences for units:
Removed artillery and arrow-towers.
Added knights, rangers, alchemists, and barbarians.
Knight Stats:
15 dmg, 600 health, 50 bash dmg, 15 cleave dmg… Warcry enabled.
Must be commanded.
Knight commanding code to make it cleave and attack enemies.
victims = []
targets = hero.findEnemies()
for target in targets:
if friend.distanceTo(target) < 15 and target.type <> 'munchkin' and target.type <> 'thrower':
victims.append(target)
anchor = friend.findNearest(victims)
if len(victims) >= 2 and friend.isReady("cleave") and anchor:
hero.command(friend, "cleave", anchor)
else:
target = friend.findNearest(targets)
if target:
hero.command(friend, "attack", target)
You can command knights to cleave, and I added isReady to it’s API, so its commanable to bash, cleave, and warcry.
Alchemist:
120 health, 200 dmg, 5 sec attack cooldown.
Spells:
[‘heal’, ‘grow’, ‘slow’, ‘dispel’, ‘haste’, ‘regen’, ‘poison-cloud’]
CanCast and findFriends are added to it’s API.
Code for making it cast regen on itself, and attack:
if enemy:
hero.command(friend, "attack", enemy)
targets = friend.findFriends()
if friend.canCast("regen") and friend.health < 100:
hero.command(friend, "cast", 'regen', friend)
Ranger
80 health, 20 dmg, backstab dmg 600, invisibility spell.
CanCast and isReady has been added to it’s API.
Backstab has been added to the Commandable methods.
Code for making it back stab the nearest enemy:
enemy = friend.findNearestEnemy()
if friend.isReady("backstab"):
hero.command(friend, 'backstab', enemy)
elif enemy:
hero.command(friend, 'attack', enemy)
Barbarian:
100 health, 80 dmg
Cannot hurl, stomp, or throw.
Commandable Methods:
[‘move’, ‘attack’, ‘cast’, ‘defend’, ‘backstab’, ‘warcry’, ‘bash’, ‘cleave’]
CommandableTypes:
[‘soldier’, ‘archer’, ‘barbarian’, ‘alchemist’, ‘knight’, ‘ranger’]
Play here.
Probably much harder then Ace Of Coders.