Author Topic: Need help with anti-theft + faction-reputation scripts  (Read 323 times)

Legacy_Telwen

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
Need help with anti-theft + faction-reputation scripts
« on: January 08, 2013, 04:17:58 pm »


               Hello everyone

I hope someone here can help me put together some scripts that I can use in my mod that im making. And please before you start ranting about the scripts, its mostly like alien language to me ':alien:'. I really dont understand most of it and usually just copy/paste the things I need. ':blink:'

Let me explain what im trying to do in my mod.

I would like to be able to put anti-theft scripts on certain npcs which would only be linked to certain obects of the same faction. And also give a reputation hit if the theft is spotted etc.

Now, I already have a anti-theft script that does most of what im looking for.  You can find the scripts here on nwvault:
nwvault.ign.com/View.php

If possible, could someone help me modify these scripts so I can use them for specific custom factions.

So for example, if guild A and guild B have guild houses opposit eachother on the same street. They are great rivals to eachother, and would only take joy in seeing the other suffer as long they dont get in trouble themselves.
So when a guard from guild A sees a thief(PC) stealing from Guild B.. he does nothing at all to interfere. And the guards from Guild B will only interfere if they notice the theft.

And if possible make it so if you kill these guards after being spotted during ones theft you will get a reputation hit.

If you guys can help me out ill love you forever. '<img'>

Tel.

P.S If you want me to paste the anti-theft scripts here just let me know.
               
               

               
            

Legacy_Fester Pot

  • Hero Member
  • *****
  • Posts: 1698
  • Karma: +0/-0
Need help with anti-theft + faction-reputation scripts
« Reply #1 on: January 08, 2013, 06:01:13 pm »


               The Personal Reputation and Reaction System sounds more to your liking, if you're willing to look into using another script.

FP!
               
               

               


                     Modifié par Fester Pot, 08 janvier 2013 - 06:05 .
                     
                  


            

Legacy_meaglyn

  • Hero Member
  • *****
  • Posts: 1451
  • Karma: +0/-0
Need help with anti-theft + faction-reputation scripts
« Reply #2 on: January 08, 2013, 10:35:00 pm »


               PRR which FP referenced will do what you need. Especially as it sounds like you have a specific
set of objects you are worried about for each faction. You make the guards owners of those objects
and you are basically done. The reaction by default is a conversation of increasing warnings.

The anti-theft scripts you are currently using can do this as well but as you say need modification to do it.  The changes would not be difficult. There are only a couple of places where the thief is detected, Assuming the objects are all known to the scripts (which I'm not sure of in some cases) it would be a matter of conditionalizing the detection based on GetFactionEqual() and adding
adjust reputation. Look for the places that set the SPOTTED_THIEF variable on the guards.

But I think PRR may be a better choice here. It would do this with no modifications.

cheers,
meaglyn
               
               

               
            

Legacy_Telwen

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
Need help with anti-theft + faction-reputation scripts
« Reply #3 on: January 09, 2013, 10:06:06 pm »


               Ive downloaded the PRR scripts and have looked a little at them and it certainly looks very promising.

Without knowing the full scope of the scripts I do believe it has everything I need.

Thanks fellas.

Tel.
               
               

               
            

Legacy_henesua

  • Hero Member
  • *****
  • Posts: 6519
  • Karma: +0/-0
Need help with anti-theft + faction-reputation scripts
« Reply #4 on: January 09, 2013, 11:33:56 pm »


               PRR is indeed a nice package, and at present there is nothing better, but keep an eye out for improvements to it. I in particular did not like how it was using a separate database for each faction, and rewrote that for myself (My present faction list is over 100.) And I went about cleaning up some of its other functions. None of my work is ready for release, I am sorry to say, but if you need help ask away, and I'll share what I've got.
This thread shows some of my work on PRR and using it for a larger system, but I've been side-tracked with other things lately.

DM Vecna is also working on it.