And yet another Tower Defense — File Browser
AndyetanotherTowerDefensev1.0 / AndyetanotherTowerDefensev1.0 / tower / maps / test / test.txt
test.txt — 14.18 KB — Download this file
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; map
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
map test {
name = testing map
desc = map used for testing
cash = 700
background = test.jpg
width = 500
height = 500
onInit = on_map_init
onNextLevel = on_spawn_next_level
onBuildFinish = on_build_finish
onConsoleInput = on_command
lives = 20
; percentage of interest at the end of each level
interest_rate = 0.03
; num of milliseconds between each level
timeBetweenLevel = 15000
; num of milliseconds between each creep spawn
SpawnInterval = 1000
toolset = canon1, arrow1
; the regions that the creeps have to walk throught
WalkPath = way1, way2, way3, way4
; if Levels total doesnt match maxLevel, it will loop through the list to fill missing levels
maxLevel = 40
levels = 15 girl, 15 rat, 15 mushroom, 10 plane, 15 spider, 15 caveman, 15 swordman, 10 plane, 15 ninja, 15 witch, 15 skeletal, 10 plane, 15 mummy, 15 troll, 15 zombie, 10 plane, 15 ghost, 15 devil, 15 death, 10 plane
; sounds effect
sfxLevelStart = levelstart.wav
sfxLoseLife = wilhelm.wav
}
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; events
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
event on_map_init {
td.showFloatingText -n 20 45 14000 0 Welcome to 'And yet another tower defense'!
td.showFloatingText -n 20 65 14000 0 Protect your castle by building towers!
td.showFloatingText -n 20 85 14000 0 Upgrade your towers to kill creeps more easily!
td.showFloatingText -n 20 105 14000 0 Good luck and have fun!
td.showFloatingText -n 20 125 14000 0 Oh... and type Enter and then Help to have help :)
}
event on_build_finish {
td.showFloatingText -fs $td.centerTextX(Work complete!,$2,$4) $3 650 100 Work complete!
}
event show_help {
td.showFloatingText -n 20 45 15000 0 ****** Help ********
td.showFloatingText -n 20 65 15000 0 > Type 'SetDiff <1-6>' to set the difficulty (1 is very easy, 6 is impossible)
td.showFloatingText -n 20 85 15000 0 > You get cash bonuses if you play at a more difficult level
td.showFloatingText -n 20 105 15000 0 > When you create combos, the FIRST tower you select will be the combo tower
td.showFloatingText -n 20 125 15000 0 > Your towers gain bonus when leveling up
td.showFloatingText -n 20 145 15000 0 > Remember to get ready for Air round (type Air to see what rounds)
td.showFloatingText -n 20 165 15000 0 > You can skip waiting time between rounds by typing Skip
}
event on_command {
; skip waiting time
if ($1 == skip) then
hadd tower game.nextLevel 0
endif
; show help text
if ($1 == help) then
td.callEvent show_help
endif
; show air round info
if ($1 == air) then
td.showFloatingText -n $calc($td.build.x + 20) $calc($td.build.y + $td.build.h - 40) 8000 0 Air levels are every four levels (4-8-12-16-20,...)
endif
if ($1 == setDiff) then
if ($2 isnum) then
td.setDifficulty $2
endif
endif
; show or hide regions rect
if (($1 == show || $1 == hide) && $2 == region) then
hadd tower show.region $iif($1 == show,1,0)
endif
; show or hide zones
if (($1 == show || $1 == hide) && $2 == zone) then
hadd tower show.zone $iif($1 == show,1,0)
endif
; show or hide tidzones on mousehover
if (($1 == show || $1 == hide) && $2 == tidzone) then
hadd tower show.tidzone $iif($1 == show,1,0)
endif
; show or hide floating text
if (($1 == show || $1 == hide) && $2 == text) then
hadd tower show.text $iif($1 == show,1,0)
endif
}
event on_spawn_next_level {
if ($1 > 1) then
td.showFloatingText -n 160 50 5000 0 Congrats, you've made it to the next level!
endif
}
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Creeps
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
creep girl {
name = Girl
desc = Little girl with evil urges
basehp = 300
gold = 1-2
speed = 4
type = ground
lifeCost = 1
width = 38
height = 38
img = units\girl.bmp
sfxDie = units\die.wav
}
creep rat {
name = Rat
desc = There is a rat in every game!
basehp = 300
gold = 3-4
speed = 4
type = ground
lifeCost = 1
width = 38
height = 38
img = units\rat.bmp
sfxDie = units\die.wav
}
creep mushroom {
name = Mushroom
desc = Big walking mushroom... right
basehp = 300
gold = 5-6
speed = 3
type = ground
lifeCost = 1
width = 38
height = 38
img = units\mushroom.bmp
sfxDie = units\die.wav
}
creep spider {
name = Spider
desc = Horrible monsterous spider
basehp = 300
gold = 7-8
speed = 3
type = ground
lifeCost = 1
width = 38
height = 38
img = units\spider.bmp
sfxDie = units\die.wav
}
creep caveman {
name = Caveman
desc = Blast from the past
basehp = 300
gold = 9-10
speed = 4
type = ground
lifeCost = 1
width = 38
height = 38
img = units\caveman.bmp
sfxDie = units\die.wav
}
creep swordman {
name = Sword man
desc = He's gonna cut you open
basehp = 300
gold = 11-12
speed = 4
type = ground
lifeCost = 1
width = 38
height = 38
img = units\swordman.bmp
sfxDie = units\die.wav
}
creep ninja {
name = Ninja
desc = Fast as fuck
basehp = 300
gold = 13-14
speed = 8
type = ground
lifeCost = 1
width = 38
height = 38
img = units\ninja.bmp
sfxDie = units\die.wav
}
creep witch {
name = Witch
desc = She probably has bad breath issues
basehp = 300
gold = 15-16
speed = 4
type = ground
lifeCost = 1
width = 38
height = 38
img = units\witch.bmp
sfxDie = units\die.wav
}
creep skeletal {
name = Skeletal
desc = Bad to the bone
basehp = 300
gold = 17-18
speed = 4
type = ground
lifeCost = 1
width = 38
height = 38
img = units\skeletal.bmp
sfxDie = units\die.wav
}
creep mummy {
name = Mummy
desc = Madness wrapped in toilet paper
basehp = 300
gold = 19-20
speed = 4
type = ground
lifeCost = 1
width = 38
height = 38
img = units\mummy.bmp
sfxDie = units\die.wav
}
creep troll {
name = Troll
desc = A big fat troll
basehp = 300
gold = 21-22
speed = 4
type = ground
lifeCost = 1
width = 38
height = 38
img = units\troll.bmp
sfxDie = units\die.wav
}
creep zombie {
name = Zombie
desc = Mother fucking zombie
basehp = 300
gold = 23-24
speed = 3
type = ground
lifeCost = 1
width = 38
height = 38
img = units\zombie.bmp
sfxDie = units\die.wav
}
creep ghost {
name = Ghost
desc = Scary ghost
basehp = 300
gold = 25-26
speed = 4
type = ground
lifeCost = 1
width = 38
height = 38
img = units\ghost.bmp
sfxDie = units\die.wav
}
creep devil {
name = Devil
desc = He's back from Hell to hurt you
basehp = 300
gold = 27-28
speed = 4
type = ground
lifeCost = 1
width = 38
height = 38
img = units\devil.bmp
sfxDie = units\die.wav
}
creep death {
name = Death
desc = The Death itself
basehp = 300
gold = 29-30
speed = 4
type = ground
lifeCost = 1
width = 38
height = 38
img = units\death.bmp
sfxDie = units\die.wav
}
creep plane {
name = Plane
desc = Flying evilness
basehp = 300
gold = 15-18
speed = 6
type = air
lifeCost = 1
width = 32
height = 32
img = units\plane.bmp
}
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Regions
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
region way1 {
desc = way point 1
x = 2
y = 6
width = 4
height = 4
walk = 1
build = 0
}
region way2 {
desc = way point 2
x = 32
y = 6
width = 4
height = 4
walk = 1
build = 0
}
region way3 {
desc = way point 3
x = 2
y = 28
width = 4
height = 4
walk = 1
build = 0
}
region way4 {
desc = way point 4
x = 32
y = 28
width = 4
height = 4
walk = 1
build = 0
}
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Towers
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
tower default {
desc = Tower
width = 2
height = 2
range = 50
; the % of money you get back for selling tower
sell = .75
; time taken for the tower to finish building
buildtime = 3000
; maximum number of creeps that the tower can attack at the same time
maxTarget = 1
}
tower canon1 : use default {
name = Canon tower
desc = Does splash damage, only attack ground
cost = 75
attack = 20-40
range = 100
speed = 300
target = ground
img = towers\canon1.bmp
upgrade = canon2
}
tower canon2 : use default {
name = Canon tower 2
desc = Does splash damage, only attack ground
cost = 800
attack = 130-150
range = 100
speed = 300
target = ground
img = towers\canon2.bmp
}
tower arrow1 : use default {
name = Arrow tower
desc = Most basic tower in the game
cost = 50
attack = 8-15
range = 50
width = 2
height = 2
speed = 150
upgrade = arrow2
maxTarget = 1
target = ground, air
img = towers\arrow1.bmp
}
tower arrow2 : use default {
name = Arrow tower 2
desc = A better version of the arrow tower
cost = 800
attack = 50-70
range = 70
speed = 150
maxTarget = 1
target = ground, air
img = towers\arrow2.bmp
}
tower bonus : use default {
name = Bonus tower
desc = Bonus tower +5
cost = 200
range = 70
; this line means that the tower can't receive any modifier (ie, not affected by other bonus tower :))
accept_modifiers = 0
attack_mod = 5
speed_mod = -5
range_mod = 10
target = None
img = towers\bonus1.bmp
upgrade = bonus2
buildtime = 5000
}
tower bonus2 : use default {
name = Bonus tower 2
desc = Bonus tower +40
cost = 1000
target = None
range = 90
; this line means that the tower can't receive any modifier (ie, not affected by other bonus tower :))
accept_modifiers = 0
attack_mod = 40
speed_mod = -5
range_mod = 20
buildtime = 5000
img = towers\bonus2.bmp
}
tower firetower : use default {
name = Fire tower
desc = The love child of an arrow tower and a cannon tower. Can hit multiple targets at the same time. Awesome.
cost = 1200
attack = 200-200
range = 80
speed = 200
maxtarget = 2
target = ground, air
img = towers\firetower.bmp
}
tower icetower : use default {
name = Ice tower
desc = The love child of an arrow tower and a cannon tower. Can hit multiple targets at the same time. Awesome.
cost = 200
attack = 10-20
range = 60
speed = 250
maxtarget = 1
target = ground, air
img = towers\icetower.bmp
on_hit = slow
}
tower coldfire : use default {
name = Cold fire
desc = Powerfull tower that throws ice cold fire on the creeps, damaging them badly and slowing them
cost = 2500
attack = 300-400
range = 120
speed = 200
maxtarget = 2
img = towers\coldfire.bmp
target = ground, air
on_hit = slow
}
tower poison : use default {
name = Poison tower
desc = Tower that poison creeps, damaging them 10 points each time they walk
cost = 800
attack = 1-1
range = 60
speed = 200
maxtarget = 1
img = towers\poison1.bmp
target = ground, air
on_hit = poison
}
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; combos
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
combo cboFireTower {
name = Fire tower
desc = Merges an arrow tower and a canon tower to get a flaming tower
tower = firetower
require = arrow2, canon2
}
combo cboIceTower {
name = Ice tower
desc = Merges an arrow tower and a canon tower to get an ice tower
tower = icetower
require = arrow2, canon2
}
combo cboBonus {
name = Bonus tower
desc = merges two arrow towers to create a bonus tower
tower = bonus
require = arrow1,canon1
}
combo cboPoison {
name = Poison tower
desc = Creates a poison tower
tower = Poison
require = bonus,arrow1
}
combo cboFireIce {
name = Cold fire
desc = Merges an ice tower and a fire tower to create a powefull cold fire tower
tower = coldfire
require = icetower, firetower
}
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; effects
; list of modifiers
; ----------------
; on_hit_speed_mod
; damage_per_second
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
effect slow {
name = Slow
desc = Slows the creep for 8 sec
duration = 8000
on_hit_speed_mod = -2
}
effect poison {
name = Poison
desc = Poison the creep for 10 sec
duration = 10000
damage_per_second = 40
}