Re: Split: Assassins
Posted: Sat Aug 09, 2014 1:14 pm
player.roleWeights
Here's an example
There's not a universal assumed role - each ship picks its own at random from the list when it's spawned (or copies its group leader's, if possible).
So firing on an asteroid - with a mining laser - will set one of those values to "miner". Keep doing it enough, and other NPCs will start treating you as a miner.
OXPs can both define their own roles (and should usually add them to some of the categories in role-categories.plist if they do) and declare OXP-related actions to be consistent with either their own role or a core role.
Here's an example
Code: Select all
["trader", "trader", "player-unknown", "hunter", "trader", "trader", "player-unknown", "trader-courier+"]
Very broadly, actions in accordance with a role will (sometimes) replace one of the entries in the role list. (This will sometimes replace an entry with itself, of course) Travelling to systems you haven't recently visited is likely to set one of the entries back to "player-unknown".Neelix wrote:I'm curious what it takes to change the assumed role?
So firing on an asteroid - with a mining laser - will set one of those values to "miner". Keep doing it enough, and other NPCs will start treating you as a miner.
OXPs can both define their own roles (and should usually add them to some of the categories in role-categories.plist if they do) and declare OXP-related actions to be consistent with either their own role or a core role.