Junior Member
Join Date: Dec 2014
Posts: 4
|
Hey all,
I'm new to HL scripting and am trying to add the Favored Soul sorcerous origin using the editor. I'm stuck on trying to add a Class Special or Custom Ability to the portfolio using Eval Scripts. I've created Chosen of the Gods as a Class Special with an Array-Based Menu where each item in the array is a Domain name (Knowledge, Life, etc.). I've created Class Special & Custom Abilities for testing with the corresponding names (since I don't know which I should be using or will work). Now I want to setup an Eval Script so you can pick one of those domain names from the array and it will add the corresponding Class Special or Class Ability to the portfolio. Where I'm running into trouble is trying to figure out what Group ID the Class Special Or Class Ability belongs to? Eval Script (copied/modified from Dragon Ancestor): Code:
doneif (tagis[Helper.ShowSpec] = 0) doneif (tagis[Helper.Disable] <> 0) if (field[usrIndex].value = 0) then perform assign[GroupID???.TagID4Knowledge] elseif (field[usrIndex].value = 1) then perform assign[GroupID???.TagID4Light] ... endif |
#1 |
Senior Member
Join Date: Jan 2016
Location: Adelaide, Australia
Posts: 2,294
|
I'm useless with scripting but I have started collecting information in a single place that may be useful to you. Feel fee to add to it with your learnings.
https://github.com/Sklore/HL_DD_5e_C...Common-Scripts |
#2 |
Senior Member
Join Date: Sep 2012
Location: Ottawa, Canada
Posts: 788
|
Isn't favored soul in the Community pack? If not I'll have to upload it to GIT. I've had it for months . .
Watch your back, Conserve your ammo, and NEVER cut a deal with a dragon! |
#3 |
Member
Join Date: Aug 2016
Posts: 30
|
I haven't seen it show up in my HL. But it is possible I have some source unchecked that needs to be checked.
|
#4 |
Senior Member
Join Date: Sep 2012
Location: Ottawa, Canada
Posts: 788
|
I uploaded Favored Soul to the GIT site. It should be available when these is time. I am not sure if it can be downloaded from where I uploaded it too . . .
Watch your back, Conserve your ammo, and NEVER cut a deal with a dragon! |
#5 |
Senior Member
Join Date: Jan 2016
Location: Adelaide, Australia
Posts: 2,294
|
Tip: If you are trying to figure out how to do something the GitHub Repo for the community pack is a great resource.
https://github.com/Sklore/HL_DD_5e_Colab Simply use the search bar up the top to type the name of the thing you are trying to work with. The search results will show you all of the code where that named thing has been worked with previously giving you examples of how to achieve things that have already been achieved. |
#6 |
Junior Member
Join Date: Dec 2014
Posts: 4
|
Thank you @Mergon and @daplunk! I can't tell you how much time you saved me trying to reinvent the wheel
I saw others around the web looking for this as well, so in case they stumble across this post, the file on Git is here: https://github.com/Sklore/HL_DD_5e_Colab/issues/435 |
#7 |
Member
Join Date: Aug 2014
Posts: 30
|
How do I add content from git? Just clone the repo locally and copy it's content into my C:\ProgramData\Hero Lab\data\5e directory?
|
#8 |
Senior Member
Join Date: Jan 2016
Location: Adelaide, Australia
Posts: 2,294
|
That's it.
|
#9 |
|
|