I am bumping this old thread to support adding a member function to set the town ratings in a game script.Aphid wrote:GSTown::SetRating(CompanyID cid,TownID tid, int rating )
Set the rating of the company specified to the amount specified.
Range of the int: -1000 - 1000
int GSTown::GetExactRating(CompanyID cid, TownID tid)
Get the exact rating value of a specified company as an integer.
From playing some of the "Goal-Based" game scripts, I was looking at trying to set a town rating to "Attrocious" if a company fails a goal for a specified town. In reading the API documentation, I saw that there were no functions for setting the Town Rating for a particular town and company as a penalty (or boon, I suppose).
Personally, I'd like to set the town to the lowest rating to make it hostile to a company that ignores it, but I suppose that percent deductions (instead of absolute deductions) would be useful to, thereby requiring a function to get the exact amount.
Steve