Crossfire Server, Trunk
navar-midane_apply.py
Go to the documentation of this file.
1 import Crossfire
2 import random
3 
4 obj = Crossfire.WhoAmI()
5 
6 Crossfire.SetReturnValue(1)
7 
8 messages = ["Midane says: I don't see what could interest you in this %s.",
9  "Midane says: Trust me, there is nothing interesting in this %s.",
10  "Midane says: Leave this poor %s alone!"
11  ]
12 
13 obj.Map.Print(messages[random.randint(0, len(messages)-1)] %obj.Name, Crossfire.MessageFlag.NDI_NAVY + Crossfire.MessageFlag.NDI_UNIQUE)