Search found 15 matches

by bazuso
Mon Jul 31, 2017 9:03 am
Forum: Mod Creation
Topic: New modder, need help (Default party, custom class)
Replies: 33
Views: 42815

Re: New modder, need help (Default party, custom class)

Classes and races automatically give traits. The definition includes the race & class—which includes the traits. What you can do for some (but not all) of the traits, is manually remove them by name. Put a script_entity on the map with the floor_trigger connected to it; and placed under the sta...
by bazuso
Mon Jul 31, 2017 7:56 am
Forum: Mod Creation
Topic: New modder, need help (Default party, custom class)
Replies: 33
Views: 42815

Re: New modder, need help (Default party, custom class)

This script allows for custom PCs: --Set a Custom Party: --By Isaac function setCustomPC() local function rnd(min,max) if max then return math.random(min,max) else return math.random(min) end end -- Character stats can optionally be set to a random value instead of fixed numbers, by using the rnd()...
by bazuso
Mon Jul 31, 2017 6:47 am
Forum: Mod Creation
Topic: New modder, need help (Default party, custom class)
Replies: 33
Views: 42815

Re: New modder, need help (Default party, custom class)

This was a test script, to make sure that everything worked as expected. And it does. For custom portraits (with this script) you would need to edit the path variable: local path = "assets/textures/portraits/" It needs to be changed to: local path = "mod_assets/textures/portraits/&qu...
by bazuso
Mon Jul 31, 2017 2:47 am
Forum: Mod Creation
Topic: New modder, need help (Default party, custom class)
Replies: 33
Views: 42815

Re: New modder, need help (Default party, custom class)

Sometimes the editor has to be closed and restarted for certain things to take effect. Does this script not work in a new project? (leave out the floor_trigger) function setPortraits() local images = { "minotaur_male_03", "minotaur_male_02", "human_female_05", "hu...
by bazuso
Sun Jul 30, 2017 5:12 am
Forum: Mod Creation
Topic: New modder, need help (Default party, custom class)
Replies: 33
Views: 42815

Re: New modder, need help (Default party, custom class)

That could work. It does not have to be separate scripts, but it shouldn't cause any problem. Does it cause this problem in a new project? (as before, with setPortraits) The names and races are changed to the altered ones but the portraits remain default. I put both the scripts into one entity this...
by bazuso
Sun Jul 30, 2017 4:56 am
Forum: Mod Creation
Topic: New modder, need help (Default party, custom class)
Replies: 33
Views: 42815

Re: New modder, need help (Default party, custom class)

Just to be sure... Did you choose the setCustomPC function as the target in the floor_trigger connection menu? Connectors only call one function. If one is set to call setPortraits(), you need a second connector to call setCustomPC(). Optionally, other functions can be called from within the called...
by bazuso
Sun Jul 30, 2017 4:32 am
Forum: Mod Creation
Topic: New modder, need help (Default party, custom class)
Replies: 33
Views: 42815

Re: New modder, need help (Default party, custom class)

The problem is that the floor_trigger cannot call your statements unless they are in a function block. Outside of a function, it runs earlier, and doubtless gets overwritten later. When the floor_trigger runs, it never calls them. function setCustomPC() party.party:getChampion(1):setName("test...
by bazuso
Sun Jul 30, 2017 3:55 am
Forum: Mod Creation
Topic: New modder, need help (Default party, custom class)
Replies: 33
Views: 42815

Re: New modder, need help (Default party, custom class)

Post your script, and I will look at it. function setPortraits() local images = { "minotaur_male_11", "minotaur_male_10", "human_female_10", "human_male_10" } for x = 1, #images do local champ = party.party:getChampion(x) local path = "assets/textures/po...
by bazuso
Sun Jul 30, 2017 3:48 am
Forum: Mod Creation
Topic: New modder, need help (Default party, custom class)
Replies: 33
Views: 42815

Re: New modder, need help (Default party, custom class)

I'm only around two hours into making the current map. I don't have any other scripts on the map besides the one that activates when the players spawn, which changes their name and race.
by bazuso
Sun Jul 30, 2017 3:37 am
Forum: Mod Creation
Topic: New modder, need help (Default party, custom class)
Replies: 33
Views: 42815

Re: New modder, need help (Default party, custom class)

That means it ~seems~ to work for me, and not for you. What happens if you start a new project, and add my script & floor_trigger? (Test it in-game using the custom map.) * Check the About Box in the editor's Help menu. Ensure that the editor version is 2.2.4. The script works in the new test d...