J_Fred
Long time lurker
I've been looking around the worldmap.txt to see if there is a way to make it so, in certain areas, good characters are the target of bounty hunters. It's mainly for an extra challenge, as the higher level bounty hunters are quite formidable in weaponry and armor. I planned on making them occur near areas where "bad" npcs would be more likely to notice (and susbequently want to cull) the Chosen One's good deeds. This would be mainly The Den and New Reno, and possible NCR, Redding or Vault city depending on the political choices made.
However, I'm not sure exactly how the map file checks for karma. For example, here is the regular bounty hunter call in the worldmap.txt file around NCR:
enc_04=Chance:15%,Enc2-5) Bounty_Hunter_Low AMBUSH Player, If(Global(1) > 1) And If(Player(Level) < 7)
enc_05=Chance:15%,Enc2-5) Bounty_Hunter_Low_Mid AMBUSH Player, If(Global(1) > 1) And If(Player(Level) > 6) And If(Player(Level) < 13)
enc_06=Chance:15%,Enc2-5) Bounty_Hunter_High_Mid AMBUSH Player, If(Global(1) > 1) And If(Player(Level) > 12) And If(Player(Level) < 19)
enc_07=Chance:15%,Enc2-6) Bounty_Hunter_High AMBUSH Player, If(Global(1) > 1) And If(Player(Level) > 18)
enc_08=Chance:15%,Enc2-4) Bounty_Hunter_Low AMBUSH Player, If(Global(0) < -500) And If(Player(Level) < 7)
enc_09=Chance:15%,Enc2-4) Bounty_Hunter_Low_Mid AMBUSH Player, If(Global(0) < -500) And If(Player(Level) > 6) And If(Player(Level) < 13)
enc_10=Chance:15%,Enc2-4) Bounty_Hunter_High_Mid AMBUSH Player, If(Global(0) < -500) And If(Player(Level) > 12) And If(Player(Level) < 19)
enc_11=Chance:15%,Enc2-5) Bounty_Hunter_High AMBUSH Player, If(Global(0) < -500) And If(Player(Level) > 18)
I understand hte chance, but the global variables are throwing me off. I'm assuming global(0) is karma, but I'm unaware of what global(1) refers to. I thought about just changing the global(0) variable to > 200 so that they ambush "good" characters, but I'm not sure if I would have to change the naught variable as well.... not to mention I'm not even sure if bounty hunters are always hostile, regardless of player affiliation (that's a different task though!).
So, if I wanted my relative clean player to be ambushed after they reach 200 karma (so, save a few cities here and there), would I be best to alter the worldmap.txt by changing the second global variable to >200, or am I way off the mark here?
Thanks for any help!
However, I'm not sure exactly how the map file checks for karma. For example, here is the regular bounty hunter call in the worldmap.txt file around NCR:
enc_04=Chance:15%,Enc2-5) Bounty_Hunter_Low AMBUSH Player, If(Global(1) > 1) And If(Player(Level) < 7)
enc_05=Chance:15%,Enc2-5) Bounty_Hunter_Low_Mid AMBUSH Player, If(Global(1) > 1) And If(Player(Level) > 6) And If(Player(Level) < 13)
enc_06=Chance:15%,Enc2-5) Bounty_Hunter_High_Mid AMBUSH Player, If(Global(1) > 1) And If(Player(Level) > 12) And If(Player(Level) < 19)
enc_07=Chance:15%,Enc2-6) Bounty_Hunter_High AMBUSH Player, If(Global(1) > 1) And If(Player(Level) > 18)
enc_08=Chance:15%,Enc2-4) Bounty_Hunter_Low AMBUSH Player, If(Global(0) < -500) And If(Player(Level) < 7)
enc_09=Chance:15%,Enc2-4) Bounty_Hunter_Low_Mid AMBUSH Player, If(Global(0) < -500) And If(Player(Level) > 6) And If(Player(Level) < 13)
enc_10=Chance:15%,Enc2-4) Bounty_Hunter_High_Mid AMBUSH Player, If(Global(0) < -500) And If(Player(Level) > 12) And If(Player(Level) < 19)
enc_11=Chance:15%,Enc2-5) Bounty_Hunter_High AMBUSH Player, If(Global(0) < -500) And If(Player(Level) > 18)
I understand hte chance, but the global variables are throwing me off. I'm assuming global(0) is karma, but I'm unaware of what global(1) refers to. I thought about just changing the global(0) variable to > 200 so that they ambush "good" characters, but I'm not sure if I would have to change the naught variable as well.... not to mention I'm not even sure if bounty hunters are always hostile, regardless of player affiliation (that's a different task though!).
So, if I wanted my relative clean player to be ambushed after they reach 200 karma (so, save a few cities here and there), would I be best to alter the worldmap.txt by changing the second global variable to >200, or am I way off the mark here?
Thanks for any help!
Last edited: