JcHARP Posted March 15, 2013 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 haveSCN 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 EndAs 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 :)
Slikpik Posted March 15, 2013 Posted March 15, 2013 The problem with this is that you would have to put this onto every NPC for it to work
Slikpik Posted March 15, 2013 Posted March 15, 2013 I will try to work it out after I've finished helping another guy
Slikpik Posted March 15, 2013 Posted March 15, 2013 Ok gimme some time and I'll get it working for you
Hazardousbio Posted March 15, 2013 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.
Slikpik Posted March 15, 2013 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.
JcHARP Posted March 15, 2013 Author Posted March 15, 2013 Do you have the code? Maybe I can work with it?
Recommended Posts