The forum has been set to read-only mode. For community discussion and questions, head over to our Discord: https://discord.taleoftwowastelands.com

TTW Reputation dialog scripts use wrong variable to modify discounts

General help and technical troubleshooting. Ask for help here if you can't find an answer in the FAQ.
Post Reply
helpful_visitor
Posts: 7
Joined: Mon Sep 17, 2012 8:07 pm

TTW Reputation dialog scripts use wrong variable to modify discounts

Post by helpful_visitor » Fri Nov 07, 2014 6:44 pm

All of the dialogs in TTW_Reputation.esp that are supposed to modify the discount based on reputation are using the wrong variable in the script.  Here is an example from xx038E03:


short rep

short discount

 

;Get positive rep and increase discount

set rep to GetReputationThreshold RepTTWLittleLamplight 1

set discount to (rep - 1) * 5

 

;Get negative rep and decrease discount

set rep to GetReputationThreshold RepTTWLittleLamplight 2

set discount to discount - ((rep - 1) * 5)



ShowBarterMenu rep


The last "ShowBarterMenu rep" should read "ShowBarterMenu discount".  The same code was copied throughout the vendors so they all have the same issue.


I'll see if I can fix it.. but I've never made scripting changes in dialog's, so we'll see how it goes.


EDIT:  Seems pretty easy to fix.  Tested it and it seems to be working for me so I thought I would upload it for anyone else who wants it.


 


You do not have the required permissions to view the files attached to this post.

User avatar
RoyBatty
Gary
Posts: 7742
Joined: Sun Apr 27, 2014 10:26 am
Location: Vault 108

Best to just let Retlaw see

Post by RoyBatty » Fri Nov 07, 2014 7:04 pm

Best to just let Retlaw see this and he'll fix it.


Image

User avatar
RoyBatty
Gary
Posts: 7742
Joined: Sun Apr 27, 2014 10:26 am
Location: Vault 108

Retlaw has been very busy at

Post by RoyBatty » Thu Dec 18, 2014 5:37 am

Retlaw has been very busy at work, I'm going to integrate this into the plugin, thanks.


Image

Post Reply