37 Crossfire.Log(Crossfire.LogDebug,
"QuestTriggerConnect.py: triggering connection number %d (%s)" % (conn, name))
38 Crossfire.WhoAmI().Map.TriggerConnected(conn, state, player)
41 player = Crossfire.WhoIsActivator()
42 params = Crossfire.ScriptParameters()
46 raise IndexError(
"QuestTriggerConnect used with incorrect number of arguments")
50 if type(player) != Crossfire.Player:
53 currentstep = player.QuestGetState(questname)
55 if condition.find(
"-") == -1:
56 startstep =
int(condition)
59 startstep =
int(condition.split(
"-")[0])
60 endstep=
int(condition.split(
"-")[1])
61 if currentstep >= startstep
and currentstep <= endstep: