Map

» Siedler Map Source Forum » Mapping » Map

Seiten: 1

polaster64
#1
04.12.2014 21:22
Beiträge: 184

Map

Hi, can Somebody add this script to map Kyrana. Maybe The Autor will do it and give me to download. Please help.


--++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-- This function is called on game start and after save game to initialize player colors
function InitPlayerColorMapping()
Display.SetPlayerColorMapping(1, FRIENDLY_COLOR2) --This sets displayed color of player 1 (human player) to yellow.
end
	
--++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-- This function is called on game start after all initialization is done
function FirstMapAction()
SpawnVargArmy
end

function SpawnVargArmy()
 if Counter.Tick2(60) then --when 60 seconds pass
 
 local ArmyOne = {player = 1}
 
 local banditbow = { 
 minNumberOfSoldiers = 0, 
 maxNumberOfSoldiers = 4, 
 experiencePoints = MEDIUM_EXPERIENCE, 
 leaderType = Entities.CU_BanditLeaderBow1, 
 position = GetPosition("VargArmy") 
 } 
 
 local banditsword = {
 minNumberOfSoldiers = 4,
 maxNumberOfSoldiers = 8,
 experiencePoints = MEDIUM_EXPERIENCE,
 leaderType = Entities.CU_BanditLeaderSword2,
 position = GetPosition("VargArmy") 
 }
 
 local barbarianleader = {
 minNumberOfSoldiers = 0, 
 maxNumberOfSoldiers = 4, 
 experiencePoints = MEDIUM_EXPERIENCE, 
 leaderType = Entities.CU_Barbarian_LeaderClub2, 
 position = GetPosition("VargArmy")
 }
 
 local blackknights = {
 minNumberOfSoldiers = 0, 
 maxNumberOfSoldiers = 4, 
 experiencePoints = MEDIUM_EXPERIENCE, 
 leaderType = Entities.CU_BlackKnight_LeaderMace2 ,
 position = GetPosition("VargArmy")
 }
 CreateTroop (ArmyOne, banditbow)
 CreateTroop (ArmyOne, banditsword)
 CreateTroop (ArmyOne, barbarianleader)
 CreateTroop (ArmyOne, barbarianleader)
 CreateTroop (ArmyOne, blackknights)
 CreateTroop (ArmyOne, blackknights)
 
end
end
-- Quest data
MapEditor_QuestTitle				= ""
MapEditor_QuestDescription 	= ""


     --*****Countdown*****--

function CountdownTick()
    local empty = true
    for i = 1, Counter.Index do
        if Counter.IsValid("counter" .. i) then
            if Counter.Tick("counter" .. i) then
                Counter["counter" .. i].Finished = true
            end
            if Counter["counter" .. i].Finished and not IsBriefingActive() then
                if Counter["counter" .. i].Show then
                    MapLocal_StopCountDown()
                end
                -- callback function
                if type(Counter["counter" .. i].Callback) == "function" then
                    Counter["counter" .. i].Callback()
                end
                Counter["counter" .. i] = nil
            end
            empty = false
        end
    end
    if empty then
        Counter.JobId = nil
        Counter.Index = nil
        return true
    end
end
function CountdownIsVisisble()
    for i = 1, Counter.Index do
        if Counter.IsValid("counter" .. i) and Counter["counter" .. i].Show then
            return true
        end
    end
    return false
end	

AdeBont
#2
05.12.2014 11:02
Beiträge: 666

Hi polaster

I really don't have a clue what you're trying to request here, neither do I understand what you intend to do with this map.

Also your code won't work as you have an error at the very first part:

function FirstMapAction()
SpawnVargArmy
end

Should be:

function FirstMapAction()
StartSimpleJob("SpawnVargArmy")
end



____________________
AdB
---------------------------------
Now faith is the substance of things hoped for,
the evidence of things not seen.
Heb 11:1

Peter-FS
#3
05.12.2014 13:41
Beiträge: 1086

did you create your own map?

Hi,

At first, you should learn to create the landscape.
- do you start creating the landscape?

Then start the map with some resources for the player and create a victory condition. e.g. if the player kills the headquarter.
- do you know this simple start conditions?

Then start with simple army control.
- create an army that attacks the player

And you need some briefings.
- create a simple briefing




____________________
Man muss nicht alles wissen, man muss nur wissen wo es steht!

polaster64
#4
05.12.2014 13:43
Beiträge: 184

AdeBont I didnt write it, a user I dont remember nickname wrote it.
I am newbie to create maps and I think its so hard ;c

Peter-FS
#5
05.12.2014 14:27
Beiträge: 1086

it isn't hard, but you have to start from the beginning.
Step by step you will learn how to create a map.

Please do it how described before!

Did you start the landscape? Do you have questions about this?

____________________
Man muss nicht alles wissen, man muss nur wissen wo es steht!

polaster64
#6
05.12.2014 15:02
Beiträge: 184

Whats that?

Peter-FS
#7
05.12.2014 21:21
Beiträge: 1086

What do you mean?

____________________
Man muss nicht alles wissen, man muss nur wissen wo es steht!

polaster64
#8
06.12.2014 10:49
Beiträge: 184

I just want to edit script on Map Kyrana Eng by the author and let me download it. It would be great c;

Peter-FS
#9
06.12.2014 12:04
Beiträge: 1086

Edit script

Every mapper on this board could edit the script for you, but I think they won't do that! (only my opinion)

And why?
Because, if you will create a map, then you have to learn it! We will help you on this way!

Or am I just this opinion!
_____________________________________________________________
Hat noch jemand eine Meinung dazu? Wäre für mich interessant!

____________________
Man muss nicht alles wissen, man muss nur wissen wo es steht!

Fire_Bird
#10
06.12.2014 13:45
Beiträge: 719

Zitat von Peter-FS:
Hat noch jemand eine Meinung dazu? Wäre für mich interessant!



I completely agree to Peter's opinion.
And on top of that, the creator of the map won't be happy if anyone just edits his map. He is the owner of the copyright.

Just try to build your own map, start little.
Many people will have you when you've got a problem.

But in this way it's not good...

polaster64
#11
06.12.2014 15:28
Beiträge: 184

I cannot do that, I cannot create maps. dreams are gone...

Fire_Bird
#12
06.12.2014 15:47
Beiträge: 719

Zitat von polaster64:
I cannot do that, I cannot create maps. dreams are gone...



Try it! You'll get great support when you ask questions in the forum. Or ask a good mapper to help you, there are so many chances to get help and getting started!

polaster64
#13
06.12.2014 16:08
Beiträge: 184

If I want to made a high rock or something I dont know how to do this.

AdeBont
#14
06.12.2014 16:09
Beiträge: 666

Zitat von polaster64:
I cannot do that, I cannot create maps. dreams are gone...


Stop wailing and either start mapping (from scratch) or play the maps as they are available...

____________________
AdB
---------------------------------
Now faith is the substance of things hoped for,
the evidence of things not seen.
Heb 11:1

jugl
#15
06.12.2014 17:51
Beiträge: 803

Zitat von polaster64:
I cannot do that, I cannot create maps. dreams are gone...



Take it or leave it

____________________
Si tus vi late, in isse tabernit.

totalwarANGEL
#16
06.12.2014 18:23
Beiträge: 2123

Pepole who think others will do their work won't ever see their dreams come true. Try the tutorial on the settlers HoK Gold Edition and ask the nice and friendly mappers for help but do NOT ask them to do YOUR work.


If you get enough knowledge about mapping it's like cycling. You will never forget.

____________________
Die Welt ist arschlochförmig und wir leben in der Mitte.

Peter-FS
#17
06.12.2014 21:02
Beiträge: 1086

Hi Polaster64,
You are creating a map, very good!

I found at YouTube only a german tutorial, but I think you can see how to start a New map.

Try to search "Siedler 5 mapeditor Grundlagen teil1"

____________________
Man muss nicht alles wissen, man muss nur wissen wo es steht!

polaster64
#18
07.12.2014 10:21
Beiträge: 184

I cannot find the village center u know the 1st what u build from. Where is it?

Peter-FS
#19
07.12.2014 10:35
Beiträge: 1086

You can find the xd_VillageCenter at doodads

____________________
Man muss nicht alles wissen, man muss nur wissen wo es steht!

polaster64
#20
07.12.2014 15:11
Beiträge: 184

Its too hard for me to create a map ;c.
And tell me where I should place this script to dont crash map ;c

--++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-- This function is called on game start and after save game to initialize player colors
function InitPlayerColorMapping()
Display.SetPlayerColorMapping(1, FRIENDLY_COLOR2) --This sets displayed color of player 1 (human player) to yellow.
end
	
--++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-- This function is called on game start after all initialization is done
function FirstMapAction()
StartSimpleJob("SpawnVargArmy")
end



function SpawnVargArmy()
 if Counter.Tick2(60) then --when 60 seconds pass
 
 local ArmyOne = {player = 1}
 
 local banditbow = { 
 minNumberOfSoldiers = 0, 
 maxNumberOfSoldiers = 4, 
 experiencePoints = MEDIUM_EXPERIENCE, 
 leaderType = Entities.CU_BanditLeaderBow1, 
 position = GetPosition("VargArmy") 
 } 
 
 local banditsword = {
 minNumberOfSoldiers = 4,
 maxNumberOfSoldiers = 8,
 experiencePoints = MEDIUM_EXPERIENCE,
 leaderType = Entities.CU_BanditLeaderSword2,
 position = GetPosition("VargArmy") 
 }
 
 local barbarianleader = {
 minNumberOfSoldiers = 0, 
 maxNumberOfSoldiers = 4, 
 experiencePoints = MEDIUM_EXPERIENCE, 
 leaderType = Entities.CU_Barbarian_LeaderClub2, 
 position = GetPosition("VargArmy")
 }
 
 local blackknights = {
 minNumberOfSoldiers = 0, 
 maxNumberOfSoldiers = 4, 
 experiencePoints = MEDIUM_EXPERIENCE, 
 leaderType = Entities.CU_BlackKnight_LeaderMace2 ,
 position = GetPosition("VargArmy")
 }
 CreateTroop (ArmyOne, banditbow)
 CreateTroop (ArmyOne, banditsword)
 CreateTroop (ArmyOne, barbarianleader)
 CreateTroop (ArmyOne, barbarianleader)
 CreateTroop (ArmyOne, blackknights)
 CreateTroop (ArmyOne, blackknights)
 
end
end
-- Quest data
MapEditor_QuestTitle				= ""
MapEditor_QuestDescription 	= ""


     --*****Countdown*****--

function CountdownTick()
    local empty = true
    for i = 1, Counter.Index do
        if Counter.IsValid("counter" .. i) then
            if Counter.Tick("counter" .. i) then
                Counter["counter" .. i].Finished = true
            end
            if Counter["counter" .. i].Finished and not IsBriefingActive() then
                if Counter["counter" .. i].Show then
                    MapLocal_StopCountDown()
                end
                -- callback function
                if type(Counter["counter" .. i].Callback) == "function" then
                    Counter["counter" .. i].Callback()
                end
                Counter["counter" .. i] = nil
            end
            empty = false
        end
    end
    if empty then
        Counter.JobId = nil
        Counter.Index = nil
        return true
    end
end
function CountdownIsVisisble()
    for i = 1, Counter.Index do
        if Counter.IsValid("counter" .. i) and Counter["counter" .. i].Show then
            return true
        end
    end
    return false
end	





I DONT KNOW WHERE AND ALWAYS WHEN I WANT TO PLACE IT IN EDIT SCRIPT AND SAVE MAP CRASHES :c

Peter-FS
#21
07.12.2014 20:46
Beiträge: 1086

Zitat von Peter-FS:
Hi,
At first, you should learn to create the landscape.
- do you start creating the landscape?

Then start the map with some resources for the player and create a victory condition. e.g. if the player kills the headquarter.
- do you know this simple start conditions?



Please don't start at the end!
You can't copy something and think it runs!!!!!!!! Don't copy and paste. We will help you, but not with copy and paste.

Please start with the first two points.


____________________
Man muss nicht alles wissen, man muss nur wissen wo es steht!

Peter-FS
#22
08.12.2014 16:04
Beiträge: 1086

Script structur for newbie

Here is a little info for you!
It's in German, but let it translate at translate.google.com

http://www.siedler-maps.de/for...mp;postid=129600#posting129600

____________________
Man muss nicht alles wissen, man muss nur wissen wo es steht!

polaster64
#23
08.12.2014 21:31
Beiträge: 184

Ok close that topic, Im not good in it, without deutsch .

Seiten: 1

SiteEngine v1.5.0 by nevermind, ©2005-2007
Design by SpiderFive (www.siedler-games.de) - English translation by juja

Impressum