Author Topic: Good Guard script  (Read 824 times)

Legacy_The Mad Poet

  • Hero Member
  • *****
  • Posts: 715
  • Karma: +0/-0
Good Guard script
« on: May 06, 2015, 08:26:57 pm »


               

I'm looking to see if anyone has made any good script sets for guards. I let my guards wander randomly around, but I do want them to do more than just smack PC's that hit commoners. I'd like to see them be able to arrest players, be bribed to look the other way, things like that. I'm just wondering if anything has already been done. I've looked and haven't found anything on the new vault.



               
               

               
            

Legacy_Proleric

  • Hero Member
  • *****
  • Posts: 1750
  • Karma: +0/-0
Good Guard script
« Reply #1 on: May 07, 2015, 12:10:40 am »


               I suspect guard scripts tend to be bespoke for a campaign, because they intersect with so many different aspects of AI and other game systems.


I can give examples, but they're implemented as snippets.
               
               

               
            

Legacy_The Mad Poet

  • Hero Member
  • *****
  • Posts: 715
  • Karma: +0/-0
Good Guard script
« Reply #2 on: May 07, 2015, 01:02:00 am »


               

That's fine. Heck if I get anything I'll be happy to have a starting point. If I have to strap on my big pants and do it myself... so be it.



               
               

               
            

Legacy_Tchos

  • Sr. Member
  • ****
  • Posts: 454
  • Karma: +0/-0
Good Guard script
« Reply #3 on: May 07, 2015, 01:46:14 am »


               

Mad Poet: You may find this useful.



               
               

               
            

Legacy_The Mad Poet

  • Hero Member
  • *****
  • Posts: 715
  • Karma: +0/-0
Good Guard script
« Reply #4 on: May 07, 2015, 04:56:57 am »


               

My thanks. I'll take a look over this.



               
               

               
            

Legacy_Proleric

  • Hero Member
  • *****
  • Posts: 1750
  • Karma: +0/-0
Good Guard script
« Reply #5 on: May 07, 2015, 06:30:45 am »


               Here are some options I have working - let me know if you'd like to see snippets for any of them.
  • Guard behaviour can depend on how the player is dressed (rich, poor, average)
  • Guard arrests player on request to clear reputation elsewhere
  • Guard arrests player on sight if wanted for crime, armed, masked or improperly dressed
  • "Armed" can include carrying large weapons in inventory
  • Guard arrests player on conversation only
  • Guard turns a blind eye
  • Guard arrests player on death
  • A town can have multiple factions, each with their own jail
  • Player can pay for a clean cell or risk disease
  • Opportunity to talk to inmates
  • Released from jail after a random period
None of this is rocket science, but I can share snippets if you need them.
               
               

               
            

Legacy_The Mad Poet

  • Hero Member
  • *****
  • Posts: 715
  • Karma: +0/-0
Good Guard script
« Reply #6 on: May 07, 2015, 08:18:02 am »


               

I'm pretty sure I can cobble together what is needed. The reason I ask is that if someone else has already done it... why reinvent the wheel, right?


 


Arrests player to clear reputation elsewhere.


Arrests player if wanted for a crime.


Arrests player on conversation only


Arrests player on death. (Ok, this is either a stupid question, or an obvious one... do you mean arrests the player when the guard is killed, or when the guard kills the player?)


Released from jail after a random period.


 


Thanks, I appreciate it.



               
               

               
            

Legacy_Tchos

  • Sr. Member
  • ****
  • Posts: 454
  • Karma: +0/-0
Good Guard script
« Reply #7 on: May 07, 2015, 08:23:32 am »


               

Everything you ask for here, and more, is included in Rusty's system, except perhaps the arrest on death.  Instead, the guards arrest the PC if they detect that the PC has committed one of numerous possible crimes.  Jail time can cause a decrease in stats, and a guard will actually walk to your cell and unlock the door when it's time to release you.  Etc., etc.  Try out the demo module.



               
               

               
            

Legacy_Proleric

  • Hero Member
  • *****
  • Posts: 1750
  • Karma: +0/-0
Good Guard script
« Reply #8 on: May 07, 2015, 09:59:17 pm »


               "Arrest player on death" means that when the player "dies" they wake up in jail, having merely been beaten unconcious.


Sounds like you'd want to check Rusty's system first.
               
               

               
            

Legacy_Who said that I

  • Hero Member
  • *****
  • Posts: 931
  • Karma: +0/-0
Good Guard script
« Reply #9 on: May 25, 2015, 10:52:46 am »


               


Everything you ask for here, and more, is included in Rusty's system, except perhaps the arrest on death.  Instead, the guards arrest the PC if they detect that the PC has committed one of numerous possible crimes.  Jail time can cause a decrease in stats, and a guard will actually walk to your cell and unlock the door when it's time to release you.  Etc., etc.  Try out the demo module.




I like the demo though it has a lot of bugs, especially during onversation....I do not see this working on a persistent world module unless someone has a way around the bug?


               
               

               
            

Legacy_Tchos

  • Sr. Member
  • ****
  • Posts: 454
  • Karma: +0/-0
Good Guard script
« Reply #10 on: May 25, 2015, 11:57:25 am »


               

A persistent world?  I have no idea.  I don't know the first thing about scripting for a PW.  My interest is in single-player modules.



               
               

               
            

Legacy_The Mad Poet

  • Hero Member
  • *****
  • Posts: 715
  • Karma: +0/-0
Good Guard script
« Reply #11 on: May 25, 2015, 04:56:31 pm »


               

I downloaded the script package suggested and found it to be pretty good for PW's actually. It does take a lot of work. As the author explains it wasn't really finished completely, it is a prototype. I've used it as a base to start working in pick pocket options for players, variable jail time. There is still more work being done on it, but my players have been pretty nice about testing it for me. We're currently working on getting the arrest on death working right with HABD as there has been a few issues with the players waking up dead in their cells, and eventually we'll be setting up to allow rogues to break into randomized NPC homes and rob the place.


 


Though definitely not a polished and finished package it works well enough for a starting point.