In welchem Reich man spawnt oder in welchem Reich man ist?
In welchem Reich man ist:
PHP Code:
Reich = ({"Rot", "Gelb", "Blau"})[pc.get_empire()]
say("Du bist in Reich ".. Reich)
Liefert 1 = Gelb, 2 = Rot, 3 = Blau
In welchem Reich man spawnt:
PHP Code:
if pc.get_map_index()==1 then
Reich = ("Rot")
elseif pc.get_map_index()==21 then
Reich = ("Gelb")
elseif pc.get_map_index()==41 then
Reich = ("Blau")
end
say("Du spawnst in Reich ".. Reich)