if {rand()<$rndval} {
if {[im_in_campaign]} {
set zone 0
set UMK 0;set UTP 0; set UUM 0
catch {set UMK [sm_get_event Uebergang_Met_Kris]}
if {$UMK} {
set zone 3
} else {
catch {set UTP [sm_get_event Titanic_Pumpe_aktiviert]}
if {$UTP} {
set zone 2
} else {
catch {set UUM [sm_get_event Uebergang_Urw_Met]}
if {$UUM} {
set zone 1
}
}
}
} else {
global civ_state
set zone [hmax 0 [hmin [expr {int($civ_state*10.0)}] 3]]
}
set mix [lindex {{0.0 1.1} {0.0 0.7 0.9 1.1} {0.0 0.5 0.66 0.94 1.1} {0.0 0.3 0.45 0.7 0.8 1.1}} $zone]
set rnd [random]
set idx -1
foreach entry $mix {
if {$rnd<$entry} {
break
} else {
incr idx
}
}
set cc [lindex {Stein Eisenerz Kohle Golderz Kristallerz} $idx]
sel /obj
set present [new $cc "" $digpoint {0 0 0}]
set_physic $present true
set_autolight $present false
set_owner $present -1
}
I think need in game depends on event jump in other world. No! Replace part code.
if {[im_in_campaign]} {
set zone 0
set UMK 0;set UTP 0; set UUM 0
catch {set UMK [sm_get_event Uebergang_Met_Kris]}
if {$UMK} {
set zone 3
} else {
catch {set UTP [sm_get_event Titanic_Pumpe_aktiviert]}
if {$UTP} {
set zone 2
} else {
catch {set UUM [sm_get_event Uebergang_Urw_Met]}
if {$UUM} {
set zone 1
}
}
}
} else {
global civ_state
set zone [hmax 0 [hmin [expr {int($civ_state*10.0)}] 3]]
}
global civ_state
set zone [hmax 0 [hmin [expr {int($civ_state*10.0)}] 3]]
Will any campain and solo nice dependes on level civilization.