Page 1 of 1

NPC: ants

Posted: Wed Feb 03, 2010 6:46 pm
by Shoob
ants... 'nuff said.

ants in:
- giant white ant
- giant brown ant
- giant carpenter ant
- giant blue ant
- giant green ant
- giant yellow ant
- giant red ant
- giant black ant
- giant fire ant
- giant lightning ant
- giant acid ant
- giant ice ant
- giant army ant

not in yet:
- giant poisonous ant?

if you notice there are not worker or soldier or queen ants yet... I plan on these being egos (with a 40/59/1% distribution) and ants will always be ego typed (ego will be a suffix). workers wont really have any change... soldiers will have another +1 damage and 10 health, queens will have another 50-100 health, +2 life_rating and able to summon kin 1 in 5 (ish, probably a tad high).

Re: NPC: ants

Posted: Wed Feb 03, 2010 6:46 pm
by Shoob

Code: Select all

-- last updated:  10:46 AM 2/3/2010

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

newEntity{
	define_as = "BASE_NPC_ANT",
	type = "insect", subtype = "ant",
	display = "a", color=colors.WHITE,
	body = { INVEN = 10 },
	autolevel = "warrior",
	ai = "dumb_talented_simple", ai_state = { talent_in=1, },
	stats = { str=12, dex=10, mag=3, con=13 },
	energy = { mod=1 },
	combat_armor = 1, combat_def = 1,
	combat = { dam=5, atk=15, apr=7 },
	max_life = resolvers.rngavg(10,20),
}

newEntity{ base = "BASE_NPC_ANT",
	name = "giant white ant", color=colors.WHITE,
	desc = "It's a large white ant.",
	level_range = {1, 15}, exp_worth = 1,
	rarity = 4,
}

newEntity{ base = "BASE_NPC_ANT",
	name = "giant brown ant", color=colors.UMBER,
	desc = "It's a large brown ant.",
	level_range = {1, 15}, exp_worth = 1,
	rarity = 4,
}

newEntity{ base = "BASE_NPC_ANT",
	name = "giant carpenter ant", color=colors.BLACK,
	desc = "It's a large black ant with huge mandibles.",
	level_range = {2, 25}, exp_worth = 1,
	rarity = 4,
	combat = { dam=6 },
}

newEntity{ base = "BASE_NPC_ANT",
	name = "giant green ant", color=colors.GREEN,
	desc = "It's a large green ant.",
	level_range = {5, 50}, exp_worth = 1,
	rarity = 4,
	combat = { DamageType.POISON },
}

newEntity{ base = "BASE_NPC_ANT",
	name = "giant red ant", color=colors.RED,
	desc = "It's a large red ant.",
	level_range = {5, 50}, exp_worth = 1,
	rarity = 4,
	combat = { damtype=DamageType.FIRE },
}

newEntity{ base = "BASE_NPC_ANT",
	name = "giant blue ant", color=colors.BLUE,
	desc = "It's a large blue ant.",
	level_range = {5, 50}, exp_worth = 1,
	rarity = 4,
	combat = { damtype=DamageType.COLD },
}

newEntity{ base = "BASE_NPC_ANT",
	name = "giant yellow ant", color=colors.YELLOW,
	desc = "It's a large yellow ant.",
	level_range = {5, 50}, exp_worth = 1,
	rarity = 4,
	combat = { damtype=DamageType.LIGHTNING },
}

newEntity{ base = "BASE_NPC_ANT",
	name = "giant black ant", color=colors.BLACK,
	desc = "It's a large black ant.",
	level_range = {5, 50}, exp_worth = 1,
	rarity = 4,
	combat = { damtype=DamageType.ACID },
}

newEntity{ base = "BASE_NPC_ANT",
	name = "giant fire ant", color=colors.RED,
	desc = "It's a large red ant, wreathed in flames.",
	level_range = {15, 50}, exp_worth = 1,
	rarity = 4,
	max_life = resolvers.rngavg(20,40),
	combat = { damtype=DamageType.FIRE },
	combat_armor = 5, combat_def = 5,
	on_melee_hit = {[DamageType.FIRE]=5},
   }

newEntity{ base = "BASE_NPC_ANT",
	name = "giant ice ant", color=colors.WHITE,
	desc = "It's a large white ant. The air is frigid around this ant.",
	level_range = {15, 50}, exp_worth = 1,
	rarity = 4,
	max_life = resolvers.rngavg(20,40),
	combat = { damtype=DamageType.ICE },
	combat_armor = 5, combat_def = 5,
	on_melee_hit = {[DamageType.ICE]=5},
}

newEntity{ base = "BASE_NPC_ANT",
	name = "giant lightning ant", color=colors.YELLOW,
	desc = "It's a large yellow ant with sparks arching across its body.",
	level_range = {15, 50}, exp_worth = 1,
	rarity = 4,
	max_life = resolvers.rngavg(20,40),
	combat = { damtype=DamageType.LIGHTNING },
	combat_armor = 5, combat_def = 5,
	on_melee_hit = {[DamageType.LIGHTNING]=5},
}

newEntity{ base = "BASE_NPC_ANT",
	name = "giant acid ant", color=colors.BLACK,
	desc = "It's a large black ant.  Its porous skin oozes acid.",
	level_range = {15, 50}, exp_worth = 1,
	rarity = 4,
	max_life = resolvers.rngavg(20,40),
	combat = { damtype=DamageType.ACID },
	combat_armor = 5, combat_def = 5,
	on_melee_hit = {[DamageType.ACID]=5},
}

newEntity{ base = "BASE_NPC_ANT",
	name = "giant army ant", color=colors.ORANGE,
	desc = "It's a large ant with a heavy exoskeleton, geared for war.",
	level_range = {18, 50}, exp_worth = 1,
	rarity = 4,
	max_life = resolvers.rngavg(50,60),
	combat_armor = 15, combat_def = 7,
}

Re: NPC: ants

Posted: Wed Feb 03, 2010 6:49 pm
by Shoob
hmmm... should I be mean(er) with the ice ant and make its return attack also be ICE instead of COLD :D

Re: NPC: ants

Posted: Wed Feb 03, 2010 7:10 pm
by darkgod
Yes ! :)

Re: NPC: ants

Posted: Thu Feb 04, 2010 5:24 pm
by Shoob
ok... I thought I would warn you with this one... there are several ants that have elemental sheaths... so you cant just do a find and replace all.

the above is fixed though.