Town reputation

Lexx

Testament to the ghoul lifespan
Moderator
Modder
Can someone tell me if the town reputation stuff is hardcoded? I am trying to figure out, how the town reputations are working.

In the global.h, we can find all entries for GVAR_TOWN_REP_x, etc. but these are normal global variables. How can I say that location x has town variable y? Is it even possible at all?

I have some locations, where I would like to get rid of the reputation entry in the character screen and some locations, where I would like these entries.
 
Yes, they're hardcoded. Luckly sfall already has them covered.
Code:
;Use this line to modify the list of cities and their associsated global variables used for city reputations
;Syntax is 'city id : global id',with each city/global pair seperated by a comma.
;CityRepsCount=19
;CityRepsList=0:47,2:48,1:49,4:50,5:51,3:52,8:53,6:54,7:55,13:56,10:57,11:59,14:61,17:63,19:64,18:65,25:66,9:294,20:308
 
Oh damn, works. Thanks. :) I wasn't sure if there has been something written about it already and after I used the forum search function and couldn't find much useful so far, I thought there was nothing...
 
Back
Top