View Single Post
Colen
Senior Member
Lone Wolf Staff
 
Join Date: Dec 2008
Posts: 4,690

Old August 30th, 2007, 03:54 PM
Ravencloak wrote:
>
>
> Thanks, Colen, you've definitely pointed me in the right direction and I
> see how I can easily bootstrap in automatic languages. However, it's a
> bit more complicated than that...isn't it always.
>
> They also use these regions to determine which additional bonus
> languages (beyond those assigned by race) are available to a character.
> Evidently, in the Forgotten Realms not all languages are available as
> bonus languages for humans, instead the character's home region
> determines which languages are available as bonus languages.
>
> So, unless I miss my mark, it looks like I need to learn more about
> scripting and portals. I think that I need to figure out the name of the
> portal responsible for allowing bonus language picks and then "enable"
> the appropriate bonus languages by setting their values to 1.
>
> I'm certain I'll run into more problems along the way Smile but for now
> I haven't got a clue as to how I identify the name of the portal. While
> I'd greatly appreciate just getting the name of this specific portal,
> I'd be even happier if you could tell me in general how to go about
> "finding" the names of portals.


I don't think you need to worry about portals for this stuff. Here's
what you'll need to do:

1) Create these 'regional' languages in the editor, and mark them as
"Secret Languages". This will ensure that humans, half-elves, and other
races that can choose "Any" language won't be able to pick them by default.

2) Now, create a script that runs at an early priority, that assigns the
"Language" tags for those languages to the hero.


For example, let's say that "Gnothic" is a regional language that you
want to add. First, you add it as a language with the unique id
"lGnothic", and mark it as a secret language.

Now, on the "Gnothic Native" template, add a script with phase "First"
and priority 10000 that does this:


~ Add the Gnothic language as a possible bonus language
var result as number
result = hero.assign[Language.lGnothic]


This should make the Gnothic language available when that template is
taken - otherwise it will be greyed out.

Hope this helps,

--
Colen McAlister (colen@wolflair.com)
Chief Engineer, Lone Wolf Development
http://www.wolflair.com/
Colen is offline   #4 Reply With Quote