Thx dude !
___
shayologo wrote: ↑Thu Apr 11, 2019 9:00 am
Hello
It's a way to detect easily if player don't play custom party but use game standar party? I want customise this standar party
It's a possibility to add in my mod custom portrait or player must download it from external link and add it manualy?
I would check champion's name class and level. If the name, the class and the level of each four champions are standard it's high probability that it is the default party.
Here is a working example with level and names :
Code: Select all
function testDefaultParty()
name1 = party.party:getChampion(1):getName()
name2 = party.party:getChampion(2):getName()
name3 = party.party:getChampion(3):getName()
name4 = party.party:getChampion(4):getName()
level1 = party.party:getChampion(1):getLevel()
level2 = party.party:getChampion(2):getLevel()
level3 = party.party:getChampion(3):getLevel()
level4 = party.party:getChampion(4):getLevel()
if (name1 == "Shadow" and name2 == "Mulrag" and name3 == "Fang" and name4 == "Astaroth" and level1 == 1 and level2 == 1 and level3 == 1 and level4 == 1 ) then
hudPrint("Default Party")
else
hudPrint("Custom Party")
end
end
You can go further with class, sex, skills with the "get" methods here :
http://www.grimrock.net/modding/scripti ... /#Champion
Once you know it's the standard party, you can customise what you want with the "set" methods (same url than above)
___
I'm currenlty working on a custom dungeon. I exported it to test it with standard conditions.
As long as I play it straightforward, evrything is fine.
But If I save, quit and then load the savegame, multiple bugs appear ! Buttons does'nt work anymore, initial state are not respected, etc.
As I use many add-ons ( sxtown, sxriver, vb under dungeon) I suspected a Ram problem. I decreased the texture quality. The problem is still there. Any Idea where it can come from ? Did you experiences somthing similar ?