This makes me picture a greasy Hulk Hogan D:HaunterV wrote:Montis wrote:I don't think there's a (documented) way to do this. -> Feature request!Starnice wrote:Did you find a way to choose the traits?
custom traits just out of reach!
I want a Butterfingers trait where you drop a wepon on a 15% chance, counterbalanced by an additional +2 to all stats except dex.
[Script] SetDefaultParty (SDP)
Re: [Script] SetDefaultParty (SDP)
"I'm okay with being referred to as a goddess."
Community Model Request Thread
See what I'm working on right now: Neikun's Workshop
Lead Coordinator for Legends of the Northern Realms Project
Community Model Request Thread
See what I'm working on right now: Neikun's Workshop
Lead Coordinator for Legends of the Northern Realms Project
- Message me to join in!
- Shloogorgh
- Posts: 45
- Joined: Sat Sep 22, 2012 12:24 am
Re: [Script] SetDefaultParty (SDP)
by the way, there's a small error several times in the code relating to the player 1 character. You have his name as ContarStonesKull, when it should be Contar Stoneskull. This is only a problem if you want to use the sdpUseDefaultOnly, which only turns on sdp if the player is using the default party. Well, sdp won't realize you're using the default party with the incorrect name, so the whole script ceases to function.
Code: Select all
if sdpEnable then
if sdpUseDefaultOnly and party:getChampion(1):getName() == "ContarStonesKull" then
setDefaultParty()
elseif sdpUseDefaultOnly == false then
setDefaultParty()
end
end
Re: [Script] SetDefaultParty (SDP)
Dex and Willpower are not properly working on champion #2. Seems to keep using Mork's default stats for that.
I simply used this to override it.
I simply used this to override it.
Code: Select all
party:getChampion(2):setStat("dexterity", 10)
party:getChampion(2):setStat("willpower", 10)
Re: [Script] SetDefaultParty (SDP)
haha.. or 15% chance the weapon slips from your hands and gets launched at the monster as well as damaging yourself. ;pHaunterV wrote:Montis wrote:I don't think there's a (documented) way to do this. -> Feature request!Starnice wrote:Did you find a way to choose the traits?
custom traits just out of reach!
I want a Butterfingers trait where you drop a wepon on a 15% chance, counterbalanced by an additional +2 to all stats except dex.
Re: [Script] SetDefaultParty (SDP)
Hello, nice work.
I have question: How can I set default party (for example enable char 1 and other disable) and change it later (some chcarter will be found in the dungeon)?
Thanx a lot.
I have question: How can I set default party (for example enable char 1 and other disable) and change it later (some chcarter will be found in the dungeon)?
Thanx a lot.
Re: [Script] SetDefaultParty (SDP)
No one can help me?
Re: [Script] SetDefaultParty (SDP)
It's in the scripting reference:
http://www.grimrock.net/modding/scripting-reference/or
or
http://www.grimrock.net/modding/scripting-reference/
You use it like:Champion:setEnabled(enabled)
Enables or disables the champion. A disabled champion is essentially an empty party slot.
Code: Select all
party:getChampion(2):setEnabled(false)
Code: Select all
for i=2,4 do party:getChampion(i):setEnabled(false) end
Code: Select all
party:getChampion(2):setEnabled(true)
Finished Dungeons - complete mods to play
Re: [Script] SetDefaultParty (SDP)
Komag wrote:It's in the scripting reference:
http://www.grimrock.net/modding/scripting-reference/You use it like:Champion:setEnabled(enabled)
Enables or disables the champion. A disabled champion is essentially an empty party slot.orCode: Select all
party:getChampion(2):setEnabled(false)
orCode: Select all
for i=2,4 do party:getChampion(i):setEnabled(false) end
Code: Select all
party:getChampion(2):setEnabled(true)
Thank You very much, its working! I try it previous, but I isn't working, may by I write something wrong. Thank you again.
Re: [Script] SetDefaultParty (SDP)
Did anyone try to use custom portraits?
In editor, work perfect, but if I export dungeon and try play normally, the portraits are used defaults, not what I set...
In editor, work perfect, but if I export dungeon and try play normally, the portraits are used defaults, not what I set...
Re: [Script] SetDefaultParty (SDP)
II solved it, the portraits must be in .dds, not in .tga.tymur wrote:Did anyone try to use custom portraits?
In editor, work perfect, but if I export dungeon and try play normally, the portraits are used defaults, not what I set...