The forum has been set to read-only mode. For community discussion and questions, head over to our Discord: https://discord.taleoftwowastelands.com

help

General modding guides and authoring tutorials.
Post Reply
tawatabak
Posts: 79
Joined: Sat Aug 23, 2014 11:09 pm

help

Post by tawatabak » Tue Nov 10, 2015 7:34 pm

is there a way to add every npc in one faction to another faction so all npc*s use both factions


at once


or do i really need to go through every npc and add them one by one to the new faction?


 


i have no clue about scripting so please dont point me to


http://geck.bethsoft.com/index.php?title=Scripting_for_Beginners


its a pain to read


and i have no idea how to use that in geck


 


pls if u can explain it as easy as possible because im a dummy



TJ
Posts: 2181
Joined: Mon Sep 17, 2012 1:06 pm

Create a start game enabled

Post by TJ » Wed Nov 11, 2015 3:21 pm

Create a start game enabled quest in the Geck. Name it whatever you want. Then create a quest script and place this inside it:


[collapsed title=Quest Script]


scn addfactionSCPT ;script name = add faction script


Begin Gamemode  ;Start a gamemode block.


;Any thing in this block will run in EVERY frame when the game is not in a menu / pipboy screen / dialog.


;Load this section down with [NPCRef] .AddToFaction [Faction to be added to] [rank in faction], like so:



;BuddyRef.AddToFaction AntFaction 1 - Adds BuddyRef to AntFaction at Rank 1.

 


;Make sure they are all before this section


stopquest yourquestname ;change this to the EditorID of your quest so that it kills the quest when it's done running.


end


[/collapsed]


Note that I came up with all that on the fly. Scripting is only difficult if you try starting with difficult scripts. Instead of using "Scripting for beginners" use this page.


My project Dash is on Kickstarter!



Post Reply