Search found 31 matches: rect
Searched query: +rect
- 04 Sep 2023, 08:17
- Forum: Fun attribute
- Topic: Rect condition and action: working with rectangles
- Replies: 8
- Views: 17420
Re: Rect condition and action: working with rectangles
True :) Hello Reac Can make Fun conditions can <..> separated fun attribute? For example {Hi im fun template Action 👉} {Hi im seperate fun 1 condition if 👉✅ my result 🌝} {Hi im seperate fun 2 condition if 👉✅ my result 🌚} Or {Hi im fun template i remove building if ✅} {Hi im separate fun 1 if buildi...
- 05 Oct 2022, 09:15
- Forum: News
- Topic: TheoTown full update changelogs
- Replies: 315
- Views: 249430
Re: TheoTown full update changelogs
... Fix missing car owner could cause city loading issue Change GUI canvas behavior so that the canvas draw function gets an unpadded drawing rect as parameter (before the drawing was dependent on the canvas' padding which is not intended) Update translations
- 04 Feb 2021, 19:40
- Forum: Game Discussion
- Topic: How to crash the game
- Replies: 18
- Views: 3186
Re: How to crash the game
... "width":1,"height":1,"auto join":true, "on built fun":[{ "actions":[ {"type":"rect","x":1,"y":0,"w":9,"h":1,"inner":[{"type":"build","id":"$road00"}]}, ...
- 12 Aug 2019, 05:59
- Forum: Tutorials and Documentation
- Topic: Light animations
- Replies: 10
- Views: 8753
Light animations
... count","id":"$testxlight","min":0,"max":50},{"type":"rect","x":-6,"y":-6,"w":13,"h":13,"min":1,"max":169,"inner":[{"type":"road","level":0}]}]}, ...
- 09 Feb 2019, 16:47
- Forum: Fun attribute
- Topic: Rect condition and action: working with rectangles
- Replies: 8
- Views: 17420
- 09 Feb 2019, 15:13
- Forum: Fun attribute
- Topic: Rect condition and action: working with rectangles
- Replies: 8
- Views: 17420
Re: Rect condition and action: working with rectangles
Wait, so it make 4x4 rectangle, inner means the space inside it, actions are what it will do inside it? Is this a correct way of putting it?
- 06 Feb 2019, 20:48
- Forum: Suggestions
- Topic: "skip x" and "skip y" attributes for rect action/condition
- Replies: 5
- Views: 2074
Re: "skip x" and "skip y" attributes for rect action/condition
You could also use a 3x3 building that when built removes itself and builds the 9 tiles in the pattern shown.
- 06 Feb 2019, 14:48
- Forum: Suggestions
- Topic: "skip x" and "skip y" attributes for rect action/condition
- Replies: 5
- Views: 2074
Re: "skip x" and "skip y" attributes for rect action/condition
I agree, this could have been a useful feature, but there are a lot of potential features like this one and it's hard to add each one of them manually. Therefore I would recommend to use :lua: nowadays. This might look like local function buildRect(draft, x, y, width, height, stepx, stepy) stepx = s...
- 06 Feb 2019, 05:27
- Forum: Suggestions
- Topic: "skip x" and "skip y" attributes for rect action/condition
- Replies: 5
- Views: 2074
- 05 Feb 2019, 19:11
- Forum: Fun attribute
- Topic: Rect condition and action: working with rectangles
- Replies: 8
- Views: 17420
- 22 Dec 2018, 07:28
- Forum: Fun attribute
- Topic: Rect condition and action: working with rectangles
- Replies: 8
- Views: 17420
Re: Rect condition and action: working with rectangles
Shouldnt this be in the "fun attribute" section?
- 13 Dec 2018, 05:07
- Forum: Fun attribute
- Topic: How to Make a Basic Pathfinding AI
- Replies: 1
- Views: 13337
How to Make a Basic Pathfinding AI
... in this context I'm talking about something that is able to detect a target and move towards it, eventually reaching said target. Using fun and rect functionality, we can make a basic, but versatile pathfinding system. First of all, here is the json of the target: [ { "drawground":true, ...
- 02 Oct 2018, 18:47
- Forum: Problems
- Topic: [517] Plugin crash (coal.json:1531)
- Replies: 3
- Views: 1428
Re: [517] Plugin crash (coal.json:1531)
... "height":4, "width":4, "fun":[{ "action":[ {"type":"remove"}, {"type":"rect","h":4,"w":4, "inner":[{"type":"build","id":"$zoneindustrial_lvl2"}]}, ...
- 02 Oct 2018, 16:47
- Forum: Problems
- Topic: [517] Plugin crash (coal.json:1531)
- Replies: 3
- Views: 1428
[517] Plugin crash (coal.json:1531)
... When loading "$blank_coalmine00": May not load action from [{"type":"remove"},{"type":"rect","h":4,"w":4,"inner":[{"type":"build","id":"$zoneindustrial_lvl2"}]},{"type":"build","id":"$coalmine00"}] ...
- 02 Oct 2018, 08:00
- Forum: Problems
- Topic: [517] Plugin crash (coal.json:1533)
- Replies: 1
- Views: 1195
[517] Plugin crash (coal.json:1533)
... When loading "$blank_coalmine00": May not load action from [{"type":"remove"},{"type":"rect","h":4,"w":4,"inner":[{"type":"build","id":"$zoneindustrial_lvl2"}]},{"type":"build","id":"$coalmine00"}] ...
- 02 Sep 2018, 13:41
- Forum: Suggestions
- Topic: "skip x" and "skip y" attributes for rect action/condition
- Replies: 5
- Views: 2074
- 02 Sep 2018, 09:38
- Forum: Suggestions
- Topic: "skip x" and "skip y" attributes for rect action/condition
- Replies: 5
- Views: 2074
Re: "skip x" and "skip y" attributes for rect action/condition
I don't think this is needed, it's easy enough to do with "build".
- 02 Sep 2018, 00:05
- Forum: Suggestions
- Topic: "skip x" and "skip y" attributes for rect action/condition
- Replies: 5
- Views: 2074
"skip x" and "skip y" attributes for rect action/condition
The code:
Should have this result:
Code: Select all
"actions":[{
"type":"rect",
"w":9,
"h":9,
"skip x":3,
"skip y":3,
"inner":[{
"type":"build",
"id":"$whatever"
}]
}]
- 31 Aug 2018, 10:19
- Forum: Transport, Airport, Roads
- Topic: Water Canals [Water Visible Version]
- Replies: 40
- Views: 23693
Re: Water Canals [Update and Add-on]
I added that code in new update, thanksCommanderABab wrote: ↑31 Aug 2018, 02:57doesn't help in zoned areas to prevent zoned buildings from building atop the canals, but is still a good idea to prevent them being destroyed by disasters.Code: Select all
"destroyable":false
#rect
- 31 Aug 2018, 03:14
- Forum: Transport, Airport, Roads
- Topic: Water Canals [Water Visible Version]
- Replies: 40
- Views: 23693
Re: Water Canals [Update and Add-on]
... by disasters. So, using this technology , you could use the "on built fun" with part1 (temporary) id of each section using "rect","action","remove" as in the last example which would remove the zone ( not including the build as in the example ), then ...