NPC: plants

All development conversation and discussion takes place here

Moderator: Moderator

Post Reply
Message
Author
Shoob
Reaper
Posts: 1535
Joined: Mon Jan 22, 2007 6:31 pm
Location: East of the sun, west of the moon

NPC: plants

#1 Post by Shoob »

plant.lua

plants in:
- poison ivy
- giant venus flytrap
- huorn
- honey tree (needs a combat=false)

needs to be put in:
- shambling mound


comments/ideas/suggestions? put them here below.
Oliphant am I, and I never lie.

Shoob
Reaper
Posts: 1535
Joined: Mon Jan 22, 2007 6:31 pm
Location: East of the sun, west of the moon

Re: NPC: plants

#2 Post by Shoob »

Code: Select all

-- last updated:  9:34 AM 1/29/2010

local Talents = require("engine.interface.ActorTalents")

newEntity{
	define_as = "BASE_NPC_PLANT",
	type = "immovable", subtype = "plants",
	display = "#", color=colors.WHITE,
	desc = "A not-so-strange growth on the dungeon floor.",
	body = { INVEN = 10 },
	autolevel = "warrior",
	ai = "dumb_talented_simple", ai_state = { talent_in=1, },
	stats = { str=10, dex=10, mag=3, con=10 },
	energy = { mod=1 },
	combat_armor = 1, combat_def = 1,
	never_move = 1,
}

newEntity{ base = "BASE_NPC_PLANT",
	name = "giant venus flytrap", color=colors.GREEN,
	desc = "This flesh eating plant has grown to enormous proportions and seeks to quell it hunger",
	level_range = {7, 50}, exp_worth = 1,
	rarity = 6,
	max_life = resolvers.rngavg(5,9),
	combat = { dam=5, atk=15, apr=10 },
}

newEntity{ base = "BASE_NPC_PLANT",
	name = "huorn", color=colors.GREEN,
	desc = "A very strong near-sentient tree, which has become hostile to other living things.",
	level_range = {12, 50}, exp_worth = 1,
	rarity = 7,
	max_life = resolvers.rngavg(100,130),
	life_rating = 15,
	combat = { dam=resolvers.rngavg(8,13), atk=15, apr=5 },
	never_move = 0,
}

newEntity{ base = "BASE_NPC_PLANT",
	name = "poison ivy", color=colors.GREEN,
	desc = "This harmless little plant makes you all itchy.",
	level_range = {3, 25}, exp_worth = 1,
	rarity = 7,
	max_life = resolvers.rngavg(1,1),
	combat = { dam=3, atk=15, apr=3 },
	can_multiply = 2,

	on_melee_hit = {[DamageType.POISON]=5},
}

newEntity{ base = "BASE_NPC_PLANT",
   name = "honey tree", color=colors.UMBER,
   desc = "As you approach it, you hear a high pitched buzzing sound.",
   level_range = {10, 50}, exp_worth = 1,
   rarity = 7,
   max_life = resolvers.rngavg(100,130),
   life_rating = 15,
   combat = { dam=0, atk=0, apr=0 },

      summon = {
         {type="insect", subtype="swarms", name="bee swarm", number=1, hasxp=true},
         {type="insect", subtype="swarms", name="bee swarm", number=1, hasxp=true},
         {type="insect", subtype="swarms", name="bee swarm", number=1, hasxp=true},
         {type="insect", subtype="swarms", name="bee swarm", number=2, hasxp=true},
         {type="insect", subtype="swarms", name="bee swarm", number=2, hasxp=true},
         {type="animal", subtype="bear", number=1, hasxp=true},
      },

   talents = resolvers.talents{ [Talents.T_SUMMON]=1 },
   }}
Oliphant am I, and I never lie.

madmonk
Reaper
Posts: 2257
Joined: Wed Dec 12, 2007 12:21 am
Location: New Zealand

Re: NPC: plants

#3 Post by madmonk »

Giant Pitcher Plant.
Tumbleweed (malevolent)
Regards

Jon.

darkgod
Master of Eyal
Posts: 10750
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: NPC: plants

#4 Post by darkgod »

Are you sure about the honey tree ?
It WILL summon each turns that's a lot :)
(And it is easily scumable for EXP too)
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

darkgod
Master of Eyal
Posts: 10750
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: NPC: plants

#5 Post by darkgod »

Included for next RFT
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

Shoob
Reaper
Posts: 1535
Joined: Mon Jan 22, 2007 6:31 pm
Location: East of the sun, west of the moon

Re: NPC: plants

#6 Post by Shoob »

hehehe... oops :/ forgot to change the talent option:

here:

Code: Select all

-- last updated:  7:34 PM 2/2/2010

local Talents = require("engine.interface.ActorTalents")

newEntity{
	define_as = "BASE_NPC_PLANT",
	type = "immovable", subtype = "plants",
	display = "#", color=colors.WHITE,
	desc = "A not-so-strange growth on the dungeon floor.",
	body = { INVEN = 10 },
	autolevel = "warrior",
	ai = "dumb_talented_simple", ai_state = { talent_in=3, },
	stats = { str=10, dex=10, mag=3, con=10 },
	energy = { mod=1 },
	combat_armor = 1, combat_def = 1,
	never_move = 1,
}

newEntity{ base = "BASE_NPC_PLANT",
	name = "giant venus flytrap", color=colors.GREEN,
	desc = "This flesh eating plant has grown to enormous proportions and seeks to quell it hunger",
	level_range = {7, 50}, exp_worth = 1,
	rarity = 6,
	max_life = resolvers.rngavg(5,9),
	combat = { dam=5, atk=15, apr=10 },
}

newEntity{ base = "BASE_NPC_PLANT",
	name = "huorn", color=colors.GREEN,
	desc = "A very strong near-sentient tree, which has become hostile to other living things.",
	level_range = {12, 50}, exp_worth = 1,
	rarity = 7,
	max_life = resolvers.rngavg(100,130),
	life_rating = 15,
	combat = { dam=resolvers.rngavg(8,13), atk=15, apr=5 },
	never_move = 0,
}

newEntity{ base = "BASE_NPC_PLANT",
	name = "poison ivy", color=colors.GREEN,
	desc = "This harmless little plant makes you all itchy.",
	level_range = {3, 25}, exp_worth = 1,
	rarity = 7,
	max_life = resolvers.rngavg(1,1),
	combat = { dam=3, atk=15, apr=3, damtype=DamageType.POISON},
	can_multiply = 2,

	on_melee_hit = {[DamageType.POISON]=5},
}

newEntity{ base = "BASE_NPC_PLANT",
   name = "honey tree", color=colors.UMBER,
   desc = "As you approach it, you hear a high pitched buzzing sound.",
   level_range = {10, 50}, exp_worth = 1,
   rarity = 7,
   max_life = resolvers.rngavg(100,130),
   life_rating = 15,
   combat = false,

      summon = {
         {type="insect", subtype="swarms", name="bee swarm", number=1, hasxp=true},
         {type="insect", subtype="swarms", name="bee swarm", number=1, hasxp=true},
         {type="insect", subtype="swarms", name="bee swarm", number=1, hasxp=true},
         {type="insect", subtype="swarms", name="bee swarm", number=2, hasxp=true},
         {type="insect", subtype="swarms", name="bee swarm", number=2, hasxp=true},
         {type="animal", subtype="bear", number=1, hasxp=true},
      },

   talents = resolvers.talents{ [Talents.T_SUMMON]=1 },
   }}
Oliphant am I, and I never lie.

Post Reply