Page 1 of 1
Level-Up Button?
Posted: Fri Feb 01, 2013 8:58 pm
by welchdrew
Well its been a while since I last worked on my LoG custom dungeon, and I remember seeing in someone elses dungeon that they had this test button that leveled up the person in the bottom right of the party, I am just wondering how to do that because I'd like to have such a button for test purposes in my dungeon.
I am a serious newbie at scripting.
Re: Level-Up Button?
Posted: Fri Feb 01, 2013 10:04 pm
by Komag
see the scripting reference page:
http://www.grimrock.net/modding/scripting-reference/
under the Champion section:
Champion:levelUp()
Gives just enough experience points to get to the next level.
Re: Level-Up Button?
Posted: Fri Feb 01, 2013 10:05 pm
by thomson
1. Add a script to the library. Put in the script this:
Code: Select all
function levelup()
party:getChampion(1):levelUp()
end
2. Add a lever or other trigger that activates that script. This will level up first champion.
You can call it 4 times with values 1 to 4 if you want all your party member to level up.
Re: Level-Up Button?
Posted: Sat Feb 02, 2013 9:44 am
by welchdrew
thomson wrote:1. Add a script to the library. Put in the script this:
Code: Select all
function levelup()
party:getChampion(1):levelUp()
end
2. Add a lever or other trigger that activates that script. This will level up first champion.
You can call it 4 times with values 1 to 4 if you want all your party member to level up.
Thanks alot! Now I have a level up button for testing purposes!