local x,y
function script:init()
local building = Draft.getDraft('$prm_com02_01')
end
function script:daily (x, y, level)
local count = City.countBuildings(building)
for i, count do
x,y = City.getBuilding(i, building)
Builder.remove(x, y)
end
end
Is this a valid lua?
Search found 24 matches
- 04 Jul 2021, 03:21
- Forum: Lua Scripting
- Topic: Lua chatbox
- Replies: 190
- Views: 183400
- 03 Jul 2021, 23:10
- Forum: Problems
- Topic: [Asked][1.10.04a] Plugin crash (building count.json:176)
- Replies: 0
- Views: 1792
[Asked][1.10.04a] Plugin crash (building count.json:176)
Hi, I got the following error with a plugin (building count.json:176): In plugins/building count/building count.json: java.lang.IllegalStateException: When loading "$scriptingtest00": [string "plugins/building count/script.lua"]:10: 'in' expected Device: SCG01 (samsung) OS versio...
- 27 Jun 2021, 15:35
- Forum: Game Discussion
- Topic: About the console.
- Replies: 2
- Views: 2034
Re: About the console.
lua seems to be difficult, doesn't it?
- 27 Jun 2021, 14:47
- Forum: Game Discussion
- Topic: About the console.
- Replies: 2
- Views: 2034
About the console.
How do I get a specific building to be deleted in the console?
- 26 Jun 2021, 09:41
- Forum: Game Discussion
- Topic: About monthly income.
- Replies: 1
- Views: 2603
About monthly income.
Can I use privileges such as monthly income anymore?
- 25 Jun 2021, 10:51
- Forum: Plug-In Discussion
- Topic: About the road.
- Replies: 0
- Views: 1427
About the road.
How can I make the road conductive?
- 25 Jun 2021, 08:04
- Forum: Game Discussion
- Topic: Roads that do not cost construction.
- Replies: 1
- Views: 1751
Roads that do not cost construction.
How can I build a road that doesn't cost anything to build?
- 23 Jun 2021, 23:25
- Forum: Game Discussion
- Topic: About the icon.
- Replies: 2
- Views: 1699
Re: About the icon.
This icon is displayed when the inhabitants are unhappy.
- 23 Jun 2021, 22:20
- Forum: Game Discussion
- Topic: About the icon.
- Replies: 2
- Views: 1699
About the icon.
Is there a way to hide the icon?
- 17 Jun 2021, 02:35
- Forum: Plug-In Discussion
- Topic: About application of fun.
- Replies: 4
- Views: 2922
Re: About application of fun.
I'll try. Thank you very much.
- 17 Jun 2021, 01:50
- Forum: Plug-In Discussion
- Topic: About application of fun.
- Replies: 4
- Views: 2922
Re: About application of fun.
You can't overwrite what's published in the plugin store, right?
- 17 Jun 2021, 00:51
- Forum: Plug-In Discussion
- Topic: About application of fun.
- Replies: 4
- Views: 2922
About application of fun.
How can I apply fun to all buildings?
- 16 Jun 2021, 00:36
- Forum: Lua Scripting
- Topic: Lua chatbox
- Replies: 190
- Views: 183400
Re: Lua chatbox
Is it possible to automatically rebuild a building that has reached level TTT in Lua to level T?
- 12 Jun 2021, 05:32
- Forum: Plug-In Discussion
- Topic: Is this a valid plugin?
- Replies: 0
- Views: 1585
Is this a valid plugin?
Is this a valid plugin? Does it work again? [{ "id":"$version_ttt", "type":"data", "fun":[{ "condition":{ "type":"days built","min":60 }, "actions":[ {"type":"remove"}, {"type...
- 12 Jun 2021, 02:14
- Forum: Game Discussion
- Topic: How to ban the construction of certain buildings.
- Replies: 4
- Views: 3753
How to ban the construction of certain buildings.
Is there a way to ban the construction of certain buildings?
- 07 Jun 2021, 14:25
- Forum: Plug-In Discussion
- Topic: Appearance rate of buildings.
- Replies: 1
- Views: 1623
Appearance rate of buildings.
It's boring because there are too many of the same buildings. Is there a way to control the rate of appearance of buildings?
- 22 May 2021, 01:31
- Forum: Plug-In Discussion
- Topic: Plugin error
- Replies: 1
- Views: 1876
Plugin error
[{ "fun":[{ "condition":{ "type":"days built","min":60 }, "actions":[ {"type":"remove"}, {"type":"build","id":"$version_t"} ],"p":1 }] }] When I try to load this plugin, ...
- 22 May 2021, 00:33
- Forum: Problems
- Topic: [Answered][1.9.95a] Plugin crash (remove1.json:104)
- Replies: 1
- Views: 2262
[Answered][1.9.95a] Plugin crash (remove1.json:104)
Hi, I got the following error with a plugin (remove1.json:104):
Device: SCG01 (samsung)
OS version: 30
Thank you in advance.
Code: Select all
In plugins/remove1.json:
java.lang.IllegalArgumentException: May not find a loader for type not defined
OS version: 30
Thank you in advance.
- 17 May 2021, 01:43
- Forum: Plug-In Discussion
- Topic: About rebuilding the building.
- Replies: 1
- Views: 1532
About rebuilding the building.
Is it possible to create a plugin that automatically rebuilds a building that has reached TTT to the first level?
- 16 May 2021, 04:21
- Forum: Plug-In Discussion
- Topic: About plugins that automatically rebuild top-level buildings.
- Replies: 3
- Views: 2306
Re: About plugins that automatically rebuild top-level buildings.
It means rebuilding a building that has reached the TTT level.