Skip to content
Snippets Groups Projects
Commit d11e14f4 authored by dg's avatar dg
Browse files

New town: Elvala, the Shaloren home city

git-svn-id: http://svn.net-core.org/repos/t-engine4@2581 51575b47-30f0-44d4-a5cc-537603b46e54
parent 5ad28fbc
No related branches found
No related tags found
No related merge requests found
-- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009, 2010 Nicolas Casalini
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
--
-- Nicolas Casalini "DarkGod"
-- darkgod@te4.org
startx = 0
starty = 40
endx = 0
endy = 40
-- defineTile section
defineTile("#", "HARDWALL")
defineTile("~", "DEEP_WATER")
defineTile("<", "GRASS_UP_WILDERNESS")
defineTile("_", "ROAD")
defineTile(".", "GRASS")
defineTile("t", {"TREE","TREE2","TREE3","TREE4","TREE5","TREE6","TREE7","TREE8","TREE9","TREE10","TREE11","TREE12","TREE13","TREE14","TREE15","TREE16","TREE17","TREE18","TREE19","TREE20"})
quickEntity('2', {show_tooltip=true, name="Armour Smith", display='2', color=colors.UMBER, resolvers.store("ARMOR"), image="terrain/wood_store_armor.png"})
quickEntity('3', {show_tooltip=true, name="Weapon Smith", display='3', color=colors.UMBER, resolvers.store("WEAPON"), image="terrain/wood_store_weapon.png"})
quickEntity('4', {show_tooltip=true, name="Alchemist", display='4', color=colors.LIGHT_BLUE, resolvers.store("POTION"), image="terrain/wood_store_potion.png"})
quickEntity('5', {show_tooltip=true, name="Scribe", display='5', color=colors.WHITE, resolvers.store("SCROLL"), image="terrain/wood_store_book.png"})
-- addSpot section
-- addZone section
-- ASCII map section
return [[
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~###~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~##_##~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~##___##~~~~~~~~t~~~~~~~~~~~~~
~~~~~~~~~~~t~~~~~~~~~##___##~~~~~~~~~~~~~~~~~~~~~~
~~~~~t~~~~~t~~~~~~~~###___###~~~~~~~~~~~~~t~~~~~~~
~~~~~~~~~~~~~~~~~~~~###___###~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~t~~~####___####~~~t~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~####___####~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~t~~~~~~~~~####___####~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~t~~~~~~~~##2##___##3##~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~#___________#..~~~......~~~t~~~~
~~~~~~~~~~~~~~~~~~#___________#............~~~~~~~
~~~~~~~~~~~~~~~~~~#___________#.....tttt...~~~~~~~
~~~~........~~~~~~#___________#.....ttttt.~~~~~~~~
~~~............~~~#___________#......ttttt~~~~~~~~
~~...............##___________##......ttt..~~~~~~~
~~....ttt........#__#########__#...........~~~~~~~
~....ttt.........#_###########_#...........~~~~~~~
~...ttt.....######__#########__######.......~~~~~~
~...t....####_______________________####......~~~~
~......###_______#_____..._____#_______###.....~~~
~.....##________###___.....___###________##....~~~
~....##_________###__..ttt..__###_________##...~~~
~....___________##5__..ttt..__4##___________...~~~
~....##_________###__..ttt..__###_________##...~~~
~~....##________###___.....___###________##.....~~
~~.....###_______#_____..._____#_______###......~~
~~.......####_______________________####........~~
~~..........######__#########__######..........~~~
~~...............#_###########_#...............~~~
~.....t.tt.......#__#########__#...............~~~
~....ttttt.......##___________##..............~~~~
~....ttttt........#___________#......tt.......~~~~
~~...tttt.....t...#___________#.....tttt.....~~~~~
~~...tt.......t...#___________#....ttttt....~~~~~~
~.............t...#___________#...tttttt....~~~~~~
~.................#___________#...tttt......~~~~~~
~..........tt.t...#####___#####..tttt.......~~~~~~
.....tt....t.......####___####...ttt.......~~~~t~~
<...ttt...t....tt..####___####.............~~~~~~~
...tttt............####___####...........~~~~~~~~~
~..tttt....~~.......###___###.........~~~~~~~~~~~~
~..tttt....~~.......###___###........~~~~~~~~~~~~~
~~........~~~~.......##___##........~~~~~~~~~~~~~~
~~.......~~~~~~~.....##___##........~~~~~~~~~~~~~~
~~~..~~~~~~~~~~~~.....##_##........~~~~~~~~~~t~~~~
~~~~~~~~~~~~~~~~~~~~~..###.....~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~.......~~~~~~~~~~~t~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~]]
\ No newline at end of file
......@@ -68,7 +68,7 @@ quickEntity('scintillating-caves', {always_remember = true, show_tooltip=true, n
quickEntity('derth', {always_remember = true, show_tooltip=true, name="Derth (Town)", desc="A quiet town at the crossroads of the north", display='*', color={r=255, g=255, b=255}, back_color=colors.DARK_GREEN, image="terrain/town1.png", notice = true, change_level=1, change_zone="town-derth"})
quickEntity('last-hope', {always_remember = true, show_tooltip=true, name="Last Hope (Town)", desc="Capital city of the Allied Kingdoms ruled by King Tolak", display='*', color={r=255, g=255, b=255}, back_color=colors.DARK_GREEN, image="terrain/town1.png", notice = true, change_level=1, change_zone="town-last-hope"})
quickEntity('shatur', {always_remember = true, show_tooltip=true, name="Shatur (Town)", desc="Capital city of Thaloren lands, ruled by Nessilla Tantaelen", display='*', color={r=255, g=255, b=255}, back_color=colors.DARK_GREEN, image="terrain/town1.png", notice = true})
quickEntity('elvala', {always_remember = true, show_tooltip=true, name="Elvala (Town)", desc="Capital city of Shaloren lands, ruled by Aranion Gayaeil", display='*', color={r=255, g=255, b=255}, back_color=colors.DARK_GREEN, image="terrain/town1.png", notice = true})
quickEntity('elvala', {always_remember = true, show_tooltip=true, name="Elvala (Town)", desc="Capital city of Shaloren lands, ruled by Aranion Gayaeil", display='*', color={r=255, g=255, b=255}, back_color=colors.DARK_GREEN, image="terrain/town1.png", notice = true, change_level=1, change_zone="town-elvala"})
-- Far East
quickEntity('gates-of-morning', {always_remember = true, show_tooltip=true, name="Gates of Morning (Town)", desc="A massive hole in the Sunwall.", display='*', color=colors.GOLD, back_color=colors.CRIMSON, image="terrain/gate-morning.png", tint=colors.GOLD, notice = true, change_level=1, change_zone="town-gates-of-morning"})
......
......@@ -50,7 +50,7 @@ newTalent{
end,
info = function(self, t)
local dam = damDesc(self, DamageType.LIGHTNING, t.getDamage(self, t))
return ([[A lightning emanates from you in a circular wave, doing %0.2f to %0.2f lightning damage and possibly dazing them (75%% chance).
return ([[Lightning emanates from you in a circular wave, doing %0.2f to %0.2f lightning damage and possibly dazing them (75%% chance).
The damage will increase with the Magic stat]]):format(dam / 3, dam)
end,
}
......
-- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009, 2010 Nicolas Casalini
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
--
-- Nicolas Casalini "DarkGod"
-- darkgod@te4.org
load("/data/general/grids/basic.lua")
load("/data/general/grids/forest.lua")
load("/data/general/grids/water.lua")
-- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009, 2010 Nicolas Casalini
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
--
-- Nicolas Casalini "DarkGod"
-- darkgod@te4.org
load("/data/general/npcs/gwelgoroth.lua", function(e) if e.rarity then e.derth_rarity, e.rarity = e.rarity, nil end end)
local Talents = require("engine.interface.ActorTalents")
newEntity{
define_as = "BASE_NPC_DERTH_TOWN",
type = "humanoid", subtype = "human",
display = "p", color=colors.WHITE,
faction = "allied-kingdoms",
anger_emote = "Catch @himher@!",
combat = { dam=resolvers.rngavg(1,2), atk=2, apr=0, dammod={str=0.4} },
body = { INVEN = 10, MAINHAND=1, OFFHAND=1, BODY=1, QUIVER=1 },
lite = 3,
life_rating = 10,
rank = 2,
size_category = 3,
open_door = true,
resolvers.inscriptions(1, "infusion"),
autolevel = "warrior",
ai = "dumb_talented_simple", ai_state = { ai_move="move_dmap", talent_in=3, },
energy = { mod=1 },
stats = { str=12, dex=8, mag=6, con=10 },
}
newEntity{ base = "BASE_NPC_DERTH_TOWN",
name = "derth guard", color=colors.LIGHT_UMBER,
desc = [[A stern-looking guard, he will not let you disturb the town.]],
level_range = {1, nil}, exp_worth = 1,
rarity = 3,
max_life = resolvers.rngavg(70,80),
resolvers.equip{
{type="weapon", subtype="longsword", autoreq=true},
{type="armor", subtype="shield", autoreq=true},
},
combat_armor = 2, combat_def = 0,
resolvers.talents{ [Talents.T_RUSH]=1, [Talents.T_PERFECT_STRIKE]=1, },
}
newEntity{ base = "BASE_NPC_DERTH_TOWN",
name = "halfling slinger", color=colors.UMBER,
subtype = "halfling",
desc = [[A Halfling, with a sling. Beware.]],
level_range = {1, nil}, exp_worth = 1,
rarity = 3,
max_life = resolvers.rngavg(50,60),
resolvers.talents{ [Talents.T_SHOOT]=1, },
ai_state = { talent_in=2, },
autolevel = "slinger",
resolvers.equip{ {type="weapon", subtype="sling", autoreq=true}, {type="ammo", subtype="shot", autoreq=true} },
}
newEntity{ base = "BASE_NPC_DERTH_TOWN",
name = "human farmer", color=colors.WHITE,
desc = [[A weather-worn Human farmer.]],
level_range = {1, nil}, exp_worth = 1,
rarity = 1,
max_life = resolvers.rngavg(30,40),
combat_armor = 2, combat_def = 0,
}
newEntity{ base = "BASE_NPC_DERTH_TOWN",
name = "halfling gardener", color=colors.WHITE,
subtype = "halfling",
desc = [[A Halfling, he seems to be looking for plants.]],
level_range = {1, nil}, exp_worth = 1,
rarity = 1,
max_life = resolvers.rngavg(30,40),
}
newEntity{ base = "BASE_NPC_DERTH_TOWN",
define_as ="ARENA_AGENT",
name = "Shady cornac man", color=colors.DARK_BLUE, unique = true,
level_range = {1, nil}, exp_worth = 1,
can_talk = "arena-unlock",
can_quest = true,
never_move = 1,
rarity = false,
max_life = resolvers.rngavg(70,80),
}
\ No newline at end of file
-- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009, 2010 Nicolas Casalini
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
--
-- Nicolas Casalini "DarkGod"
-- darkgod@te4.org
load("/data/general/objects/objects.lua")
-- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009, 2010 Nicolas Casalini
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
--
-- Nicolas Casalini "DarkGod"
-- darkgod@te4.org
return {
name = "Elvala",
level_range = {1, 1},
actor_adjust_level = function(zone, level, e) return zone.base_level + e:getRankLevelAdjust() + level.level-1 + rng.range(-1,2) end,
max_level = 1,
width = 196, height = 80,
decay = {300, 800, only={object=true}, no_respawn=true},
persistent = "zone",
all_remembered = true,
all_lited = true,
ambient_music = "Virtue lost.ogg",
generator = {
map = {
class = "engine.generator.map.Static",
map = "towns/elvala",
},
actor = {
class = "engine.generator.actor.Random",
nb_npc = {10, 10},
},
object = {
class = "engine.generator.object.Random",
nb_object = {0, 0},
},
},
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment