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.
Level-Up Button?
Re: Level-Up Button?
see the scripting reference page:
http://www.grimrock.net/modding/scripting-reference/
under the Champion section:
http://www.grimrock.net/modding/scripting-reference/
under the Champion section:
Champion:levelUp()
Gives just enough experience points to get to the next level.
Finished Dungeons - complete mods to play
Re: Level-Up Button?
1. Add a script to the library. Put in the script this:
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.
Code: Select all
function levelup()
party:getChampion(1):levelUp()
end
You can call it 4 times with values 1 to 4 if you want all your party member to level up.
- welchdrew
- Posts: 15
- Joined: Thu Sep 27, 2012 3:20 am
- Location: Home of the Yoopers, Michigan's Upper Peninsula
Re: Level-Up Button?
thomson wrote:1. Add a script to the library. Put in the script this:2. Add a lever or other trigger that activates that script. This will level up first champion.Code: Select all
function levelup() party:getChampion(1):levelUp() end
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!