Search found 25 matches

by CrEaToXx
Sun Jan 29, 2017 4:19 pm
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3955
Views: 3194554

Re: Ask a simple question, get a simple answer

So far, you're the second person to mod on the vanilla map. It highly unlikely someone will use the vanilla map for their mod because people prefer making their own unique adventure. (Thats better in my opinion) I agree, though I'd wish there'd be more people expanding vanilla content. The one pers...
by CrEaToXx
Sun Jan 29, 2017 1:14 pm
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3955
Views: 3194554

Re: Ask a simple question, get a simple answer

What's wrong with adding a script entity that triggers itself? Nothing. I just want to prevent editing the original dungeon, to raise compatibility with other mods. As far as I understand, if I would want to make the race mod compatible with others, I'd need to merge changes from both mods made in ...
by CrEaToXx
Sun Jan 29, 2017 12:29 pm
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3955
Views: 3194554

Re: Ask a simple question, get a simple answer

Yup, that exactly what it does. Uhhh, works flawlessly... 8-) But I can't get around triggering the script without placing a script entity into the dungeon, correct? Like f.e. triggering it from inside the init.lua? Or placing a script entity via .lua without the need to edit the original dungeon? ...
by CrEaToXx
Sun Jan 29, 2017 12:08 pm
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3955
Views: 3194554

Re: Ask a simple question, get a simple answer

function extraSkillPoints() for i = 1,4 do local cChampion = party.party:getChampion(i) hudPrint(tostring(cChampion:getName())) local cRace = cChampion:getRace() hudPrint(tostring(cChampion:getRace())) if cRace == "dwarf" then cChampion:addSkillPoints(1) end end end Now I just need to fin...
by CrEaToXx
Sun Jan 29, 2017 12:21 am
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3955
Views: 3194554

Re: Ask a simple question, get a simple answer

Ok, so I made a script entity placed besides the starting cage and connected it to a wall button for testing purpose, but pressing the button gives me a "invalid script blablabla function" in console when testing in game. Here's the code: --- wrong code removed --- Edit: Ha, fixed. There w...
by CrEaToXx
Sat Jan 28, 2017 9:13 pm
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3955
Views: 3194554

Re: Ask a simple question, get a simple answer

I think you fundamentally misunderstand what addStatModifier does. All stats have both a "base" value and a "current" value. Every time stats are recomputed (which is basically once every frame), the "current" value is reset to the "base" value. Then onRecomp...
by CrEaToXx
Sat Jan 28, 2017 8:35 pm
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3955
Views: 3194554

Re: Ask a simple question, get a simple answer

onRecomputeStats is called every frame, so the champion to whom this applies will have their skill points set to 2 or 3 every frame. Then why doesn't this happen for stats as well? It does happen for stats as well. Ok, I got the checker bug fixed. But isn't there a solution for giving skill extra p...
by CrEaToXx
Sat Jan 28, 2017 6:03 pm
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3955
Views: 3194554

Re: Ask a simple question, get a simple answer

onRecomputeStats is called every frame, so the champion to whom this applies will have their skill points set to 2 or 3 every frame.
Then why doesn't this happen for stats as well?
by CrEaToXx
Sat Jan 28, 2017 2:46 pm
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3955
Views: 3194554

Re: Ask a simple question, get a simple answer

Hey guys, so far I'm making good progress on my race pack mod. But there's another problem I'm encountering when trying to add 1 extra skill point as racial trait. Unfortunately I did not find any source code related to the "skilled" trait as well, neither in the .lua's nor here in the for...
by CrEaToXx
Sat Jan 21, 2017 10:05 pm
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3955
Views: 3194554

Re: Ask a simple question, get a simple answer

When trying to make new icon portraits for races inside skills.dds, the next index to follow would be 111. I've correctly placed the modded base game skill.dds into... myMod/mod_assets/textures/gui ...but the icon for new race is not showen in game. To exclude error from wrong import, does the edito...