2 reputation_trigger_connect.py -- trigger connections based on reputation
4 Use in a check_inv trigger with a event_trigger.
7 faction - name of faction to check against
8 threshold - number between -100 and 100
9 conn_geq - connection to trigger if reputation greater or equal than thresh
10 conn_lt - connection to trigger if reputation less than thresh
12 If any connection is 0, the connection will not be used.
19 player = Crossfire.WhoIsActivator()
20 if player.Type != Crossfire.Type.PLAYER:
22 params = Crossfire.ScriptParameters()
26 conn_geq =
int(args[2])
27 conn_lt =
int(args[3])
31 if rep[0][1] >= thresh:
33 player.Map.TriggerConnected(conn_geq, 1, player)
35 player.Map.TriggerConnected(conn_lt, 1, player)