python/misc/connect.py
raw| 1 | # -*- coding: utf-8 -*- |
| 2 | # Simple script to trigger the connection given as a parameter. |
| 3 | # Setting the script option to "3" will turn the connection 3 on in the map it was called from. |
| 4 | |
| 5 | import Crossfire |
| 6 | |
| 7 | if Crossfire.ScriptParameters().isdigit(): |
| 8 | Crossfire.WhoAmI().Map.TriggerConnected(int(Crossfire.ScriptParameters()), 1) |