Are you sure?
Regarding your issues with road decorations, how does your exact code look like? Also, overlay is not meant to be used to build stuff, although you can do that
Moderator: Plugin Moderators
This isn't about my script, i'm just replied to commanderABab about my signature,
I posted it on misc showcase topic. But, this one of the script : download/file.php?id=32420Regarding your issues with road decorations, how does your exact code look like? Also, overlay is not meant to be used to build stuff, although you can do that
Code: Select all
if event == SCRIPT.EVENT_PLACED and Tile.getBuildingDraft(x,y):getDraft() == "$galleon00" then
if gllg < 100 then
Builder.remove(x,y)
end
end
--rjroldan1
Code: Select all
City.load(file location [str], overwrite the map with same name or not [bool], is available in single cities selection or not [bool], target city name [str])
Code: Select all
{
"id": "$example",
"type": "decoration",
"width": 1,
"height": 1,
...
}
Temgamer wrote: ↑26 Jun 2020, 22:14Code underneath runs it, when player builds a building with <id>:Code: Select all
function buildZoneC(zeroX, zeroY, zoneId, radius) zeroX = zeroX - radius zeroY = zeroY - radius local offset = 0 Builder.buildZone(Draft.getDraft(zoneId), zeroX + offset, zeroY) for i=1, (radius * 2 + 1)^2 - 1 do if i % (radius * 2 + 1) == 0 then zeroY = zeroY + 1 offset = 0 else offset = offset + 1 end Builder.buildZone(Draft.getDraft(zoneId), zeroX + offset, zeroY) end end
Result of build:Code: Select all
function script:event(zeroX, zeroY, level, event) if event == Script.EVENT_PLACED and Tile.getBuildingDraft(zeroX, zeroY):getId() == "<id> then buildZoneC(zeroX, zeroY, "$zonecommercial", 2) end end
Ahotee_20-06-26_23.12.47.png
It also places zone under that building, btw
Code: Select all Reset
local value = City.getHappiness(City.HAPPINESS_PARK) Debug.toast(value)
Tbh, i used 5 rectangular layers. 2 layers for the shadow, 2 layers for the brighter color and 1 layer for the base.KINGTUT10101 wrote: ↑28 Jul 2020, 16:02 @distian
How did you make the corners of this window round here? Is there a specific function for that?