new potions/scrolls - temporary talents

All new ideas for the upcoming releases of ToME 4.x.x should be discussed 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

new potions/scrolls - temporary talents

#1 Post by Shoob »

I decided to make a base case for temporary talents, all that is needed now is more cases, and maybe some tweaking. I was thinking that there could be scrolls that let you know a talent for a few turns as well (such as stunning blow or other stuff), but the effect wears off after a bit.

Code: Select all

newEntity{ base = "BASE_POTION",
	name = "dragon's blood",
	color = colors.LIGHT_RED, image="object/potion-0x3.png",
	level_range = {30, 50},
	rarity = 7,
	cost = 20,

	use_simple = { name="brings out the dragon in you", use = function(self, who)
		self:setEffect(self.EFF_DRAGONS_FIRE, self:getWil()+15, {})
		return "destroy", true
	end}
}


newEffect{
	name = "DRAGONS_FIRE",
	desc = "Your throat feels like it is burning.",
	type = "magical",
	status = "beneficial",
	parameters = {},
	on_gain = function(self, err) return "#Target#'s throat seems to be burning.", "+Dragon's fire" end,
	on_lose = function(self, err) return "#Target#'s throat seems to cool down.", "-Dragon's fire" end,
	activate = function(self, eff)
		self.talents.T_FIRE_BREATH = (self.talents.T_FIRE_BREATH or 0) + 2
	end,
	deactivate = function(self, eff)
		self.talents.T_FIRE_BREATH = self.talents.T_FIRE_BREATH - 2
		if self.talents.T_FIRE_BREATH == 0 then self.talents.T_FIRE_BREATH = nil end
	end,
}
I purposely left out the math.min on the adjustments, allowing the max to temporarily go above the normal player max.
Oliphant am I, and I never lie.

Mithril
Archmage
Posts: 327
Joined: Fri Oct 01, 2010 5:43 pm

Re: new potions/scrolls - temporary talents

#2 Post by Mithril »

Nice! Great way to greatly increase item variety.

yufra
Perspiring Physicist
Posts: 1332
Joined: Tue Jul 13, 2010 2:53 pm

Re: new potions/scrolls - temporary talents

#3 Post by yufra »

I like it!
<DarkGod> lets say it's intended

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

Re: new potions/scrolls - temporary talents

#4 Post by darkgod »

Fun!
Fixed & added; )
[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