TheCoredump Posted October 30, 2020 Share Posted October 30, 2020 Hello How to add an act to an existing character ? I have tried GetPlayerBackground( "ROOK" ) :AddAct{ but with no success, I get the following error : 21:17.47-Lua: Error calling function from engine: scripts/game_profile.lua:532: attempt to index a nil value (local 'act_data') stack traceback: scripts/game_profile.lua:532: in method 'GetMaxAdvancement' Thanks in advance (and for your great game !) Link to comment Share on other sites More sharing options...
TheCoredump Posted October 30, 2020 Author Share Posted October 30, 2020 Oops, wrong forum Link to comment Share on other sites More sharing options...
RageLeague Posted October 30, 2020 Share Posted October 30, 2020 It's kinda confusing, but you need to also call AddPlayerActData with the newly created act, but since PlayerBackground:AddAct returns the player background rather than the act(so the devs can chain add acts), you have to access the newly created act using background.acts[act_id] Link to comment Share on other sites More sharing options...
TheCoredump Posted October 31, 2020 Author Share Posted October 31, 2020 Thanks, Strangly I didn't managed to add the act via AddPlayerActData ( GetPlayerBackground("ROOK").acts["MY_ACT_ID"] ) but only with AddPlayerActData ( GetPlayerBackground("ROOK").acts[4] ) And more strange, Rook has no battle deck Link to comment Share on other sites More sharing options...
TheCoredump Posted October 31, 2020 Author Share Posted October 31, 2020 Nevermind, don't know what I have changed, his battle deck is back Thanks again for your assistance Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.