A couple new monsters for your horror subtype

All new ideas for the upcoming releases of ToME 4.x.x should be discussed here

Moderator: Moderator

Post Reply
Message
Author
edge2054
Retired Ninja
Posts: 3756
Joined: Fri May 28, 2010 4:38 pm

A couple new monsters for your horror subtype

#1 Post by edge2054 »

Code: Select all

newEntity{ base = "BASE_NPC_HORROR",
	name = "worm that walks", color=colors.BROWN,
	desc = [[A maggot filled robe with a vaguely humanoid shape.]],
	level_range = {20, nil}, exp_worth = 1,
	rarity = 5,
	max_life = 120,
	life_rating = 16,
	rank = 3,
		
	see_invisible = 100,
	instakill_immune = 1,
	stun_immune = 1,
	blind_immune = 1,
	
	resists = { [DamageType.PHYSICAL] = 50, [DamageType.FIRE] = -50},
	
	body = { INVEN = 10, MAINHAND=1, OFFHAND=1, BODY=1 },
	resolvers.drops{chance=20, nb=1, {} },
	resolvers.equip{
		{type="weapon", subtype="sword", autoreq=true},
		{type="weapon", subtype="waraxe", autoreq=true},
		{type="armor", subtype="robe", autoreq=true}
	},
	
	resolvers.talents{
		[Talents.T_BONE_GRAB]=5,
		[Talents.T_DRAIN]=5,
		[Talents.T_CORRUPTED_STRENGTH]=5,
		[Talents.T_VIRULENT_DISEASE]=5,
		[Talents.T_CURSE_OF_DEATH]=5,
		[Talents.T_REND]=5,
		[Talents.T_BLOODLUST]=5,
		[Talents.T_RUIN]=5,
	
		[Talents.T_WEAPON_COMBAT]=5,
		[Talents.T_WEAPONS_MASTERY]=3,
	},
	resolvers.sustains_at_birth(),

	summon = {
		{type="vermin", subtype="worms", name="carrion worm mass", number=2, hasxp=false},
	},
	make_escort = {
		{type="vermin", subtype="worms", name="carrion worm mass", number=2},
	},
}
And the aforementioned carrion worm mass.

Code: Select all

newEntity{ base = "BASE_NPC_WORM",
	name = "carrion worm mass", color=colors.BROWN,
	level_range = {20, nil}, exp_worth = 1,
	rarity = 4,
	max_life = resolvers.rngavg(5,9),
	combat = { dam=1, atk=15, apr=100 },

	resolvers.talents{ [Talents.T_CRAWL_POISON]=2, [Talents.T_ROTTING_DISEASE]=4, [Talents.T_MULTIPLY]=1 },
}
Last edited by edge2054 on Tue Nov 09, 2010 4:12 am, edited 1 time in total.

edge2054
Retired Ninja
Posts: 3756
Joined: Fri May 28, 2010 4:38 pm

Re: A couple new monsters for your horror subtype

#2 Post by edge2054 »

I can't get the horror to load the talents for some reason.

Returns...

Code: Select all

Lua Error: /data/general/npcs/horror.lua:34: attempt to index global 'Talents' (a nil value)
Line 34 is the first talent. I tried commenting out that talent and it won't load the next one either. When I comment out all the talents it loads fine.

Not sure what's wrong with it.

*edit* NM. I didn't put the local function at the top of my horror file.

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

Re: A couple new monsters for your horror subtype

#3 Post by darkgod »

Added thanks !
[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 ;)

Post Reply