Thank you for the reply!

Originally Posted by LaughingLeader

One non-story editor option is to override Player.charScript and create an event for OnInit(). What I usually do is override Player.charScript with the exact same contents as the original, but add an #Include MyBaseScript and USING MyBaseScript after the INIT section.

Example:
[Linked Image]

Then, inside your event triggered by OnInit(), you send a CharacterItemEvent(__Me, null, "EventInitialLevelUp") to your script in the story editor. That way it'll trigger for each player.


I had no idea this was an option. I had only loaded up the regular script editor once before when I was trying all the buttons but no guide or tutorial I've found has pointed to it. The only thing I've found is the Script Editor Technical Doc which has the "what" but not the "how". I can see from that page it has a solution open for Shared scripts. Do these scripts need to be built? I searched my game directory and didn't find a single ".charScript" file.

Originally Posted by LaughingLeader

I've not tried that function myself, but something to note is these methods exist (in case it ends up increasing your level, but not your points):

Code
CharacterAddTalentPoint
CharacterAddAbilityPoint
CharacterAddAttributePoint
PartyAddActualExperience

So if all else fails, you could try adding experience to the whole party.


I actually did try adding experience to the whole party (since that's effectively what I wanted to do anyway) and got an error... and I tried to do it just now to copy/paste the error but it worked. I think part of the problem was I needed to re-load the entire project for this type of script to work properly, not just reload the level/story.

Edit: I have a new problem now after loading the script editor. When I load a project I get an error saying it can't load "Surfaces.gameScript", "Environments.gameScript" and "Statuses.gameScript". I suspect I broke something.

Last edited by Chumble; 28/09/17 10:35 PM.