avhill Posted July 28, 2014 Share Posted July 28, 2014 Hello, I'm well into making a mod and know basic knowledge of the GECK and certain things within the GECK, but when it comes to the most important thing, scripting, I am clueless. So I am making a mod that adds the Tunnel Snakes back in and they stole something from you, and at first you talk to them, but then through dialogue you attack them. How would I do this? I've made it so I put something like "[Attack] You'll pay for that!". How do I make it so when you select that option, that him and his two friends become hostile? Thanks, I really appreciate it. Link to comment Share on other sites More sharing options...
TheSHO1BANG Posted July 29, 2014 Share Posted July 29, 2014 You could use 'startcombat player'Put it in the result script of the line you want to trigger the fight. And before the startcombat you should insert their references.For example, if you called one TunnelSnake1REF you'd have to write "TunnelSnake1REF.startcombat player" and for the other guy just inserting his reference there. Hope this helped. Link to comment Share on other sites More sharing options...
avhill Posted July 29, 2014 Author Share Posted July 29, 2014 You could use 'startcombat player'Put it in the result script of the line you want to trigger the fight. And before the startcombat you should insert their references.For example, if you called one TunnelSnake1REF you'd have to write "TunnelSnake1REF.startcombat player" and for the other guy just inserting his reference there. Hope this helped.So I put 0butc.startcombat player on the attack sequence under Result Script (End) and nothing happened. I also tried putting it in both result script (start) and result script (end) and still nothing happened when I selected that options. 0butch is his id btw. What am I doing wrong? Thanks for the help as well. Link to comment Share on other sites More sharing options...
TheSHO1BANG Posted July 29, 2014 Share Posted July 29, 2014 When you double click on the NPC you get a new window. On top of it is 'Reference Editor ID' That's what you need to use for the script, if you have given him one. If you haven't just insert something there and use it for the scripts. Link to comment Share on other sites More sharing options...
Fallout2AM Posted July 29, 2014 Share Posted July 29, 2014 If you can't manage in other ways, after setting his reference ID as TheSHO1BANG said (i.e. MyButchREF), try this. Set him as Aggressive inside his stats, and add him to PlayerFaction. Then in the End Result Script you can write something like this: MyButchREF.RemoveFromFaction PlayerFactionMyButchREF.StartCombat Player Link to comment Share on other sites More sharing options...
avhill Posted July 29, 2014 Author Share Posted July 29, 2014 When you double click on the NPC you get a new window. On top of it is 'Reference Editor ID' That's what you need to use for the script, if you have given him one. If you haven't just insert something there and use it for the scripts. If you can't manage in other ways, after setting his reference ID as TheSHO1BANG said (i.e. MyButchREF), try this. Set him as Aggressive inside his stats, and add him to PlayerFaction. Then in the End Result Script you can write something like this: MyButchREF.RemoveFromFaction PlayerFactionMyButchREF.StartCombat PlayerThank you both for helping me, once I set the reference editor ID and did the player faction thing and startcombat it worked, thank you both. Link to comment Share on other sites More sharing options...
Recommended Posts