1 import Crossfire,random,math
2 whoami=Crossfire.WhoAmI()
3 Params=Crossfire.ScriptParameters()
5 if Params==
"GenerateFog":
7 Fogs=
int(whoami.Weight/10000)
14 if whoami.Name==
"fog":
17 z=whoami.CreateObject(
"temp_fog")
18 Z=z.CreateObject(
"event_destroy")
21 Z.Slaying=
"/python/pshop/Ice.py"
22 z.Weight=(Fogs-50)*1000
29 z=whoami.CreateObject(
"temp_fog")
31 z.Weight=(0+random.randint(1,15+
int(math.sqrt(FogsTmp))))*1
32 Rand=random.randint(1,2+
int(FogsTmp/10))
34 z.Weight*=
int(Rand/10)+1
36 y=z.CreateObject(
"event_time")
39 y.Slaying=
"/python/Move_Fog.py"