• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Adding a language to a character

saintaurik

Well-known member
HI I searched the forums I just didn't happen to see anything about how to do this. I have an item that allows the players to speak and read dwarven and dwarf runes as long as they have it on.

Any idea how I would be able to add the language to the characters language list of known languages?

Any help would be great thanks in advance!
 
Add the following code to the item in the Editor and make sure it is activated when it is equipped on the character.

Code:
doneif(field[gIsEquip].value = 0)

herofield[tLangsSpk].value += 1

That will give the character the additional language, which you could then either 1) simply choose and add the language normally or 2) bootstrap the language directly to the item. If you bootstrap it, it will appear on the character as a language, so you will have to set the condition in the bootstrap to check if the item is on.

Code:
fieldval:gIsEquip <> 0

This is the general idea. I've not tested it though. Let me know if it needs 'tweaking'.
 
Back
Top