JcHARP Posted March 15, 2013 Share Posted March 15, 2013 I have an idea where I would like to make it so that if you kill ANYTHING in the mojave it puts caps in a stashbox somewhere. How would I be able to do that with scripting? So far I have SCN BSPHitmanQuestScript Short DoOnce Begin Gamemode If DoOnce == 1 && Player.IsKiller Caucasian Set DoOnce to 0 EndIf If Player.IsKiller Caucasian && DoOnce == 0 Set DoOnce to 1 BDSHitmanBoxREF.Additem Caps001 25 EndIf End As you can see this script doesn't work. My idea was if I killed someone who belonged to a specific race then it would add caps to a box I placed. However, I don't think IsKiller works off of BaseId's like that. Any help or fresh ideas to try would be appreciated :) Link to comment Share on other sites More sharing options...
Slikpik Posted March 15, 2013 Share Posted March 15, 2013 The problem with this is that you would have to put this onto every NPC for it to work Link to comment Share on other sites More sharing options...
JcHARP Posted March 15, 2013 Author Share Posted March 15, 2013 That's what I am fearful of :( Link to comment Share on other sites More sharing options...
Slikpik Posted March 15, 2013 Share Posted March 15, 2013 I will try to work it out after I've finished helping another guy Link to comment Share on other sites More sharing options...
Slikpik Posted March 15, 2013 Share Posted March 15, 2013 Ok gimme some time and I'll get it working for you Link to comment Share on other sites More sharing options...
Hazardousbio Posted March 15, 2013 Share Posted March 15, 2013 Use onhit as your blocktype. Then set a variable to your target. The target gets hit and dies and it will still call the function and run everything in your block. Link to comment Share on other sites More sharing options...
Slikpik Posted March 15, 2013 Share Posted March 15, 2013 I think I've got it, I'm just testing it now Link to comment Share on other sites More sharing options...
Slikpik Posted March 15, 2013 Share Posted March 15, 2013 This is annoying me. My script works but it doesn't add 25 caps once he's killed, it adds 25 caps like, every 0.1 seconds your fighting the npc. This is something you're better off talking to Xaranth about. He's a really good help. Link to comment Share on other sites More sharing options...
JcHARP Posted March 15, 2013 Author Share Posted March 15, 2013 Do you have the code? Maybe I can work with it? Link to comment Share on other sites More sharing options...
Slikpik Posted March 15, 2013 Share Posted March 15, 2013 Hold on, I've had an idea that might work. Link to comment Share on other sites More sharing options...
Recommended Posts