Extracting one type of resources
» Siedler Map Source Forum » Siedler DEdK Script Forum » Extracting one type of resources
Seiten: 1
SH
|
#1 13.09.2020 10:35 Beiträge: 127 |
Extracting one type of resources
Hi
How can I make that the serfs extract only one resource type (e.g. in SetupPlayerAi)
SH
____________________
Sorry for my German
Play4FuN
|
#2 13.09.2020 11:04 Beiträge: 704 |
Unless you plan to use the S5Hook to manually control serfs (tell serf X to extract iron at position Y) I would say you are out of luck. There is a function AI.Village_SetResourceFocus, however until now I have not seen this method to have any effect.
____________________
LG Play4FuN
Siedler DEdK Mapping + Scripting Tutorials
SH
|
#3 13.09.2020 12:02 Beiträge: 127 |
Yes, it doesn't work
I also found an attribute to SetupPlayerAi:
resourceFocus = ResourceType.Wood,
but it doesn't work too.
____________________
Sorry for my German
Play4FuN
|
#4 13.09.2020 12:15 Beiträge: 704 |
Exactly, this is what happens:
if _description.resourceFocus ~= nil then AI.Village_SetResourceFocus(_playerId,_description.resourceFocus) end
inside SetupPlayerAi(_playerId,_description) ... :/
____________________
LG Play4FuN
Siedler DEdK Mapping + Scripting Tutorials
SH
|
#5 13.09.2020 14:21 Beiträge: 127 |
Okay, thank you for the answer
____________________
Sorry for my German
SH
|
#6 13.09.2020 20:59 Beiträge: 127 |
Interesting thing:
When you set ResourceType.WoodRaw (or any other raw resources), serfs will extract... stones.
____________________
Sorry for my German
Seiten: 1