carpg icon indicating copy to clipboard operation
carpg copied to clipboard

Allow to make citizens peaceful

Open Tomash667 opened this issue 7 years ago • 0 comments

When player team is marked as bandits:

  • spawn temple in random location
    • icon
    • inside there is room with altar and candles
    • priest with priest robes (1 level, if killed don't spawn temple again)
  • player can pay for crimes or do quest (level * 100 gold)
  • quest is to recover holy relic (dungeon level = player level) and deliver it to temple

It should be possible to just stay in jail.

Add global flag "int bandit" - 0 not bandit, 1 - crime, 2 - kill. When 1 - npc take out weapon but not attack, tells to hide weapon. When all players hide weapon nearest guard will talk and offer jail/fine. >10 seconds near guard will change flag to 2. Hitting npc 3 times will change flag to 2. Reentering location changes it back to 1. Nearest guard move toward leader, other npcs follow.

There is crime counter (1 for hit, 10 for kill). Sentence is crime*100 gold and crime*1 days in jail. When not enough gold every 100 gold is 1 extra day. Show game message about how many days it taken. After jail sentence spawn in front of barracks.

Tomash667 avatar Sep 04 '17 06:09 Tomash667