ToME: the Tales of Maj'Eyal

Everything about ToME
It is currently Tue Sep 26, 2017 12:15 am

All times are UTC




Post new topic Reply to topic  [ 15 posts ] 
Author Message
 Post subject: NPC Forgiveness
PostPosted: Mon Sep 09, 2013 5:11 pm 
Offline
Uruivellas

Joined: Thu Nov 18, 2010 6:42 pm
Posts: 744
This addon adjusts the way friendly NPC's react to hostile actions by the player.

In most cases, the personal reaction of an NPC to the player (friendly/neutral/hostile) will slowly recover (by 10% each turn, minimum 1 point) back to it's default value over time. If the player doesn't further aggravate the NPC, it will eventually become neutral/friendly again. (Though it will still probably have the player targeted, depending on its ai settings which are not addressed in this addon.) The exception is if the player kills another friendly NPC within LOS, which will result in the NPC becoming permanently hostile to the player in most cases.

Putting a detrimental status effect on the NPC will create a -25 (negative) reaction to the player (in addition to the penalties from any damage caused).

Files affected:
mod.class.NPC.lua (M:timedEffects, _M:onTakeHit, _M:die)

It can be downloaded at http://te4.org/games/addons/tome/npc-forgiveness

_________________
Author of the Infinite 500 and PlenumTooltip addons, and the joys of Scaling in ToME.


Last edited by Hachem_Muche on Tue Sep 10, 2013 11:17 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: NPF Forgiveness
PostPosted: Mon Sep 09, 2013 6:14 pm 
Offline
Spiderkin

Joined: Wed Aug 22, 2012 4:41 pm
Posts: 481
I dont like the idea of changing NPC's attitude gradually with time. What? Are they going to forget you've almost killed them 10 turns ago? Its also looks exploitable. I think there should be an ability to disarm/give up/show excuse. For example in Fable III if you accidentally harmed someone but did not kill and did not steal anything you have an option to confess and remove hostility. If the crime is more serious it won't work though.

I see major problems with hostility gradual reduction like your summons/shades will attack the NPC you accidentally hit and it will become hostile permanently. AoE effects that normally dont hurt allies like mindstar DoT aura will harm the NPC as well further increasing their hostility. That's why I think having an activatable excuse/lay down hands ability is the only option.


Top
 Profile  
 
 Post subject: Re: NPC Forgiveness
PostPosted: Mon Sep 09, 2013 8:03 pm 
Offline
Uruivellas

Joined: Thu Nov 18, 2010 6:42 pm
Posts: 744
I have responded here viewtopic.php?p=161873#p161873

_________________
Author of the Infinite 500 and PlenumTooltip addons, and the joys of Scaling in ToME.


Last edited by Hachem_Muche on Tue Sep 10, 2013 11:14 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: NPF Forgiveness
PostPosted: Tue Sep 10, 2013 7:19 am 
Offline
Sher'Tul Godslayer

Joined: Tue Jun 18, 2013 10:46 pm
Posts: 2275
Location: Ambush!
Awesome. I'm installing this in the firm hopes that I don't need it.

Thank you!

_________________
Check out my addons: Nullpack (classes), Null Tweaks (items & talents), and New Gems fork.


Top
 Profile  
 
 Post subject: Re: NPC Forgiveness
PostPosted: Thu Dec 05, 2013 9:24 pm 
Offline
Uruivellas

Joined: Thu Nov 18, 2010 6:42 pm
Posts: 744
I have pushed version 2.0 for ToME 1.0.5 at http://te4.org/sites/default/files/game ... rgive.teaa and on steam.

The new version will prevent friendly npcs from targeting the player and should prevent friendly towns folk from following the player around in most cases.

PS: This is still not fully compatible with Draconians. This would require a new hook in actor:die.

_________________
Author of the Infinite 500 and PlenumTooltip addons, and the joys of Scaling in ToME.


Top
 Profile  
 
 Post subject: Re: NPC Forgiveness
PostPosted: Wed Dec 11, 2013 12:54 am 
Offline
Sher'Tul Godslayer

Joined: Fri May 07, 2004 8:26 pm
Posts: 2000
Location: Nahgharash
It might be worth mentioning that preventing townfolk from following one around rather breaks any chance at 'Never Look Back and There Again' (the achievement for winning without going west), since drowning Aeryn seems to be the only way to logically start that.

_________________
Currently playing under the name Aura of the Dawn 4 down, 227 to go!
Proud author of Orc Pit Restoration Project, Faction Allies, Dwarven Adventurer addons
SadistSquirrel wrote:
DarkGod has two arms, one with an opened hand, one with a closed fist. You got the fist.


Top
 Profile  
 
 Post subject: Re: NPC Forgiveness
PostPosted: Wed Dec 11, 2013 5:09 am 
Offline
Higher

Joined: Fri Nov 01, 2013 5:54 pm
Posts: 52
Hachem_Muche wrote:
I have pushed version 2.0 for ToME 1.0.5 at http://te4.org/sites/default/files/game ... rgive.teaa and on steam.

The new version will prevent friendly npcs from targeting the player and should prevent friendly towns folk from following the player around in most cases.

PS: This is still not fully compatible with Draconians. This would require a new hook in actor:die.

Does this remove the need for the silly undead cloak?


Top
 Profile  
 
 Post subject: Re: NPC Forgiveness
PostPosted: Wed Dec 11, 2013 7:03 pm 
Offline
Uruivellas

Joined: Thu Nov 18, 2010 6:42 pm
Posts: 744
Crim, I just checked, and you can still drown Aeryn. You just need to be a little more persistent.

Groog, you still need the cloak or else your "Undead" faction will make most friendly npc's hostile to you. If you forget to wear it and walk into town, you can get the townsfolk to stop pursuing you if you put it on, though.

_________________
Author of the Infinite 500 and PlenumTooltip addons, and the joys of Scaling in ToME.


Top
 Profile  
 
 Post subject: Re: NPC Forgiveness
PostPosted: Sun Dec 15, 2013 12:34 am 
Offline
Uruivellas

Joined: Thu Nov 18, 2010 6:42 pm
Posts: 744
I've just uploaded version 2.1 to http://te4.org/sites/default/files/game ... ive_1.teaa and to steam.

This fixes a possible bug with boss agro.

_________________
Author of the Infinite 500 and PlenumTooltip addons, and the joys of Scaling in ToME.


Top
 Profile  
 
 Post subject: Re: NPC Forgiveness
PostPosted: Tue Jun 03, 2014 6:22 pm 
Offline
Uruivellas

Joined: Thu Nov 18, 2010 6:42 pm
Posts: 744
I've uploaded version 2.2 to http://te4.org/sites/default/files/game ... ive_2.teaa and to Steam.

This follows the changes for ToME 1.2.0

_________________
Author of the Infinite 500 and PlenumTooltip addons, and the joys of Scaling in ToME.


Top
 Profile  
 
 Post subject: Re: NPC Forgiveness
PostPosted: Sat Nov 08, 2014 11:50 pm 
Offline
Uruivellas

Joined: Thu Nov 18, 2010 6:42 pm
Posts: 744
I've uploaded version 2.3 to http://te4.org/sites/default/files/game ... ive_3.teaa and to steam.

This is just an update to be compatible with ToME 1.2.4.

_________________
Author of the Infinite 500 and PlenumTooltip addons, and the joys of Scaling in ToME.


Top
 Profile  
 
 Post subject: Re: NPC Forgiveness
PostPosted: Wed Mar 18, 2015 6:00 pm 
Offline
Uruivellas

Joined: Thu Nov 18, 2010 6:42 pm
Posts: 744
I've just uploaded version 2.4 for ToME 1.3.0 at (http://te4.org/download-addon/3161/tome-NPCForgive) and to steam.

This fixes a bug that can cause NPC's to become hostile from detrimental effects that don't land, and ensures that neutral NPC's will untarget the player eventually.

_________________
Author of the Infinite 500 and PlenumTooltip addons, and the joys of Scaling in ToME.


Top
 Profile  
 
 Post subject: Re: NPC Forgiveness
PostPosted: Wed Jun 03, 2015 1:45 pm 
Offline
Cornac

Joined: Mon Mar 02, 2015 12:43 pm
Posts: 31
Hi, is there a way of activating this for an existing character save? My blink blade skill accidently hit Yeek Wayist and now he's hostile to my Shaloren chronomancer.


Top
 Profile  
 
 Post subject: Re: NPC Forgiveness
PostPosted: Sat Jun 13, 2015 4:46 pm 
Offline
Uruivellas

Joined: Thu Nov 18, 2010 6:42 pm
Posts: 744
You can change the addons an existing character uses by updating desc.lua file in your character's save directory. Find the line

addons = {...}

containing a list of your addons and add

, 'NPCForgive'

to the list. (This will not work for all addons, but should be OK for NPCForgiveness.)

I haven't tested this scenario specifically, but don't see any reason this should not work.

_________________
Author of the Infinite 500 and PlenumTooltip addons, and the joys of Scaling in ToME.


Top
 Profile  
 
 Post subject: Re: NPC Forgiveness
PostPosted: Fri Mar 10, 2017 8:46 pm 
Offline
Uruivellas

Joined: Thu Nov 18, 2010 6:42 pm
Posts: 744
I have uploaded version 2.5 (for ToME 1.5.0) at: http://te4.org/download-addon/4530/tome-NPCForgive and to Steam.

This adds some safeguards to prevent NPC's from becoming angry at themselves.

_________________
Author of the Infinite 500 and PlenumTooltip addons, and the joys of Scaling in ToME.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 15 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group