Auto-translated
So? What’s wrong? Or is it the maps?
Added 12 hours and 3 minutes ago
If there are several resources, should I add the resource type?
Added 5 minutes ago
By the way, a character with the Goblin King skill cannot be created on the map. Could this be why he doesn’t switch sides?
Added 48 minutes ago
function Newday()
local day, wday, week, month = GetDate(DAY), GetDate(DAY_OF_WEEK), GetDate(WEEK), GetDate(MONTH)
if wday == 2
then MessageBox(GetMapDataPath().."Newday.txt")
Trigger(NEW_DAY_TRIGGER, "Newday")
SetPlayerResource(1, GOLD, ORE, GEMS, CRYSTALS, MERCURY, SULFUR, WOOD, GetPlayerResource(ORE, GEMS, CRYSTALS, MERCURY, SULFUR, WOOD) - 5, GetPlayerResource(1, GOLD) - 5000)
end
end
Trigger(NEW_DAY_TRIGGER, "Newday")
What is wrong with this script?
Added 12 hours and 3 minutes ago
If there are several resources, should I add the resource type?
Added 5 minutes ago
By the way, a character with the Goblin King skill cannot be created on the map. Could this be why he doesn’t switch sides?
Added 48 minutes ago
function Newday()
local day, wday, week, month = GetDate(DAY), GetDate(DAY_OF_WEEK), GetDate(WEEK), GetDate(MONTH)
if wday == 2
then MessageBox(GetMapDataPath().."Newday.txt")
Trigger(NEW_DAY_TRIGGER, "Newday")
SetPlayerResource(1, GOLD, ORE, GEMS, CRYSTALS, MERCURY, SULFUR, WOOD, GetPlayerResource(ORE, GEMS, CRYSTALS, MERCURY, SULFUR, WOOD) - 5, GetPlayerResource(1, GOLD) - 5000)
end
end
Trigger(NEW_DAY_TRIGGER, "Newday")
What is wrong with this script?