Forums Ubisoft  Hop To Forum Categories  The Settlers La Nascita di un Impero    Editor mappe , come poter creare pioggia e neve.

Moderatori: turko_75, woody_ubiit
Vai in
Nuovo
Cerca
Notifica
Strumenti
Rispondi
  
-star Rating Vota questo Topic!  [Accedi / Registrati] 
Immagine di grunt_343
Postato il
Incollo quì il test script dell'editor , è come un tutorial , copiatelo nel vostro test script (prima copiate quello che metto qua sotto , poi cancellate il test script che avete e mettete : edit -->paste)

Ecco lo script :


--------------------------------------------------------------------------------
-- MapName: XXX
--
-- Author: XXX
--
--------------------------------------------------------------------------------

-- Include main function
Script.Load( Folders.MapTools.."Main.lua" )
IncludeGlobals("MapEditorTools")

--++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-- This function is called from main script to initialize the diplomacy states
function InitDiplomacy()
end


--++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-- This function is called from main script to init all resources for player(s)
function InitResources()
-- set some resources
AddGold (1000)
AddSulfur(1000)
AddIron (1000)
AddWood (1000)
AddStone (1000)
AddClay (1000)
end

--++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-- This function is called to setup Technology states on mission start
function InitTechnologies()
end

--++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-- This function is called on game start and after save game is loaded, setup your weather gfx
-- sets here
function InitWeatherGfxSets()
SetupNormalWeatherGfxSet()
end

--++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-- This function is called on game start you should setup your weather periods here
function InitWeather()
AddPeriodicSummer(10)
AddPeriodicRain(45)
AddPeriodicSummer(40)
AddPeriodicRain(40)
AddPeriodicWinter(40)
end

--++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-- This function is called on game start and after save game to initialize player colors
function InitPlayerColorMapping()
end

--++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-- This function is called on game start after all initialization is done
function FirstMapAction()

local VictoryConditionType = 1

if VictoryConditionType == 1 then
MapEditor_SetupResourceVictoryCondition(
1000,
1000,
1000,
1000,
1000,
1000 )
elseif VictoryConditionType == 2 then
MapEditor_SetupDestroyVictoryCondition(2)
end

-- Level 0 is deactivated...ignore
MapEditor_SetupAI(2, 0, 0, 0, "", 0, 0)
MapEditor_SetupAI(3, 0, 0, 0, "", 0, 0)
MapEditor_SetupAI(4, 0, 0, 0, "", 0, 0)
MapEditor_SetupAI(5, 0, 0, 0, "", 0, 0)
MapEditor_SetupAI(6, 0, 0, 0, "", 0, 0)
MapEditor_SetupAI(7, 0, 0, 0, "", 0, 0)
MapEditor_SetupAI(8, 0, 0, 0, "", 0, 0)

-- HQ Defeat Condition
MapEditor_CreateHQDefeatCondition()

end

-- Quest data
MapEditor_QuestTitle = ""
MapEditor_QuestDescription = ""



In questo modo otterrete un'estate di 10 secondi , un autunno di 45 secondi , un'estate di 40 secondi , un autunno di 40 secondi e un inverno di 40 secondi.
 
Posts: 133 | Registrato il: 11 January 2006Rispondi QuotandoModifica o Cancella il PostSegnala questo Post
Postato il Nascondi Post
Per quale "The settlers" vale? mumble
 
Posts: 3750 | Registrato il: 31 May 2006Rispondi QuotandoModifica o Cancella il PostSegnala questo Post
Immagine di grunt_343
Postato il Nascondi Post
per the settlers 5 , expansion disk...
 
Posts: 133 | Registrato il: 11 January 2006Rispondi QuotandoModifica o Cancella il PostSegnala questo Post
Postato il Nascondi Post
Azz...io c'ho il 3 Gold!!! tsk
 
Posts: 3750 | Registrato il: 31 May 2006Rispondi QuotandoModifica o Cancella il PostSegnala questo Post
  Powered by Eve Community  
 

    Forums Ubisoft  Hop To Forum Categories  The Settlers La Nascita di un Impero    Editor mappe , come poter creare pioggia e neve.

Condizioni d'uso