Pyroblasta Posted October 8, 2018 Share Posted October 8, 2018 (edited) I know this is doable, but I do not know what I am doing wrong. I want to make a mod that allows me to spawn Keeper Lanaya to join the final battle against the Archdemon when Zathrian is either sacrificed or killed during NTB events. modded files clipt_generic_actions.plo clipt_generic_actions.nsscli_functions_h.nsscli_constants_h.nssCreated Cli220Lanaya.utc Cli220Lanaya.utcI duplicated Lanaya from NTB and upgraded her gear to fit the final battle. I added cli000cr_army_member to her script. I added her unique identifier tag to cli_constants_h.nss I added a main flag to .plo file and used it for cli_functions_h.nss then compiled clipt_generic_actions.nss but when I get to the final battle at Fort Draken every other NPC spawns except Lanaya.If anyone out there is able to please help me with these scripts? Edited October 8, 2018 by Pyroblasta Link to comment Share on other sites More sharing options...
theskymoves Posted October 8, 2018 Share Posted October 8, 2018 (edited) Did you try the 'conventional' method of spawning an NPC to an existing map (PRCSCR)? For adding anything other than adding a new NPC merchant, that's how I'd approach it. PRCSCR Script TemplatesInsert content into an existing area I don't have the wiki page on M2DAs bookmarked, but it should be easy to find. Edited October 8, 2018 by theskymoves Link to comment Share on other sites More sharing options...
Pyroblasta Posted October 9, 2018 Author Share Posted October 9, 2018 (edited) You're the bomb!I followed your suggestion and created the PRCSCR scripts and 2DAI just took it for a run and here's what happened... Lanaya now spawns which is good. UpdateI fixed the condition where Lanaya will still spawn when there are werewolves. Now Lanaya will spawn only if Zathrian is either sacrificed or killed. UpdateThe issue I still got is for Lanaya to follow the cli000cr_army_member script. Whenever the enemy is out of range instead follow the leader, she runs back to her original spawn location. CreateObject( OBJECT_TYPE_CREATURE, R"cli220lanaya.utc", Location(oMap, lLocation, -90.0f), sScript, <-- Issue lies right here TRUE sScript is supposed to be a string. That what the parameters allow. I keep getting syntax errors and I don't know how to properly turn that script to string. Edited October 9, 2018 by Pyroblasta Link to comment Share on other sites More sharing options...
theskymoves Posted October 9, 2018 Share Posted October 9, 2018 Yay! I'm glad that the suggestion was helpful! Hopefully someone more versed in scripting will be along to weigh in on the follow issue... I'm inept at DAO scripting, if it's anything more complex than establishing conditionals for spawning something in game. Link to comment Share on other sites More sharing options...
sapphim Posted October 10, 2018 Share Posted October 10, 2018 It's been a while since I've messed around with non-party followers, but try string sScript = "cli000cr_army_member";or if that doesn't work, try string sScript = ResourceToString(R"cli000cr_army_member.ncs"); Link to comment Share on other sites More sharing options...
Pyroblasta Posted October 10, 2018 Author Share Posted October 10, 2018 (edited) Success! No syntax error that last bit allowed the compiling to work.Thanks for the contribution. Heres what happenedLanaya follows when there are enemies but she gets 1 hit killed by even Genlocks...?? Mind boggling to try gettin to the root of the issue. I have a feeling that cli000cr_army_member.ncs script might not be the only thing that is controlling the AIs to behave like the other spawned allies or army members you can summon. UpdateSpend last couple hours looking into this and editing even Cli220cr_Archdemon script to add spawn alliesI'm running into dead ends... For now, I am not in the mood to go through all that trouble. Edited October 10, 2018 by Pyroblasta Link to comment Share on other sites More sharing options...
theskymoves Posted October 10, 2018 Share Posted October 10, 2018 (edited) Ne'er mind... posted before I really thought about it. *facepalm* Edited October 10, 2018 by theskymoves Link to comment Share on other sites More sharing options...
LadyHonor Posted October 29, 2018 Share Posted October 29, 2018 she may not have an autolevelup table. so she's probably just a little ol' nothing. you could try creating a duplicate of her (to avoid having to make edits of core resources) and give the duplicate an autolevelup table or you could just set her immortal in your script. Link to comment Share on other sites More sharing options...
Pyroblasta Posted November 5, 2018 Author Share Posted November 5, 2018 (edited) Somehow I figure all that scripting is not so straightforward. If I duplicate Lanaya and use that cli000cr_army_member script then Lanaya gets 1 hit killed by any enemy including genlocks.Even with the autolevelup added into the scripts she still gets killed in 1 hit, my guess? the HP had never changed who knows...? I could also be doing this autolevelup wrong. If I set the duplicate Lanaya to immortal while using the cli000cr_army_member script then she stands still like a training dummy taking hits from all kinds of enemies.Lanaya the Training Dummy is good for a few laughs, but definitely not the end result I'm looking for. So far due to my limited knowledge in this scripting, I decided to go about the sloppy approach default to the creature_core script.That is my best "autolevelup", due to my limited knowledge... The issue with this one is when enemy is out of range Lanaya just goes back to her original spawn location.My best work around? As the battle progresses the Archdemon will jump around the map. My best follow the leader approach is warping her to waypoints close to the Archdemon... Not the most perfect one, but at least this version of Lanaya can still put up a decent fight before going down. Unless someone can really know how to help figure the right scripting. Or someone is a programmer who really know how to get this AI to properly follow scripts exactly like the Climax Army. Edited November 5, 2018 by Pyroblasta Link to comment Share on other sites More sharing options...
theskymoves Posted November 5, 2018 Share Posted November 5, 2018 Stupid question: have you double-checked that your endgame Lanaya's UTC is exporting with a commensurate rank, equivalent to that of other Fort Drakon friendlies? (Probably Lieutenant?) Link to comment Share on other sites More sharing options...
Recommended Posts