Page 1 of 1

possible to tie an encounter to a class at birth?

Posted: Thu Jan 10, 2013 4:57 pm
by daftigod
Some races have their own starting areas: Shalore, Yeeks, Undead. I love the flavor that those areas add to the races.

But is it possible to do the same for a Class? Or to intercept the default starting area, and add something else that happens even before that in time? Like a pre-story area.

I'm thinking about adding a starter birth area to my barbarian addon. A brief encounter in the Zigur arena as the child version of the player, to be specific. This would be before anything else can be accomplished, literally it would the first gameplay the player sees, like the necromancer for undead. I'm not sure if it's possible. I checked the race brith files for the sections that add starter areas, and I can see how it' s done, but there aren't any classes that have their own start zones.

Barbarian is a Wilder, so this wouldn't interfere with the undead starting zone since they can't be wilders anyway. It would interfere with the Yeek, Shalore, and Dwarf starts though. If I could make it so that the Zigur Arena loads first, and then the rest of the race starters load normally after that, that would be sweet.

Any advice from the Lua pros here?

Re: possible to tie an encounter to a class at birth?

Posted: Thu Jan 10, 2013 5:46 pm
by daftigod
nevermind, found it :)

Code: Select all

copy = {
-- Mages start in angolwen
		class_start_check = function(self)
			if self.descriptor.world == "Maj'Eyal" and (self.descriptor.race == "Human" or self.descriptor.race == "Elf" or self.descriptor.race == "Halfling") then
				self.archmage_race_start_quest = self.starting_quest
				self.default_wilderness = {"zone-pop", "angolwen-portal"}
				self.starting_zone = "town-angolwen"
				self.starting_quest = "start-archmage"
				self.starting_intro = "archmage"
				self.faction = "angolwen"
				self:learnTalent(self.T_TELEPORT_ANGOLWEN, true, nil, {no_unlearn=true})
			end
		end,

I just thought of a neat start for yeek babies though!

-Yeek Baby spawns with a bunch of other yeeks on one side of a wilderness map. on the other side is a beach, with the edge of the ocean showing and a large raft tied to a tree.
-A pack of halflings show up and kill the baby's mother in full sight of the young one. Like sunwall, the rest of the yeeks form a living wall and attempt to block the halflings from you, yelling RUN YEEK BABBY!!
-You sprint/crawl to the raft where a couple of elder yeeks are waiting, screaming RUN BABBY RUUUUUN!!!
-you make it to the raft and set sail for...

-Normal start

Re: possible to tie an encounter to a class at birth?

Posted: Thu Jan 10, 2013 7:04 pm
by Sradac
I think if it interfered with the yeek or dwarf it would be ok, you just need some flavor text about leaving your home at a young age to study under the masters of battling against the mages, because you are a paranoid psycho and think the spellblaze will happen again.

Maybe not that last bit

Re: possible to tie an encounter to a class at birth?

Posted: Sun Jan 13, 2013 4:14 am
by Ragnarok
Chronomancers have that point zero place, so it is more then possible.