-
Forum
-
- It is currently 12 Nov 2026, 12:22
- All times are UTC
Any information about the fun attribute is given here.
-
CommanderABab
- AB
- Reactions:
- Posts: 11263
- Joined: 07 Jun 2016, 19:12
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Post
by CommanderABab » 29 Aug 2018, 21:50
๐ Line action
๐ Rect condition and action
๐ Fix palm trees and cacti had auto build set to true
Within a function:
Code: Select all
{"type":"rect","w":10,"h":4,"min":1,"max":9999,"inner":[{...}]}
checks if the inner condition occurs โฅ min times and โค max times.
similar, it executes the inner actions for each of the specified tiles:
Code: Select all
"actions":[{"type":"rect","w":4,"h":3,"inner":[{...},...]}]
Removing a 4x4 tile area and zoning it dense industrial:
Code: Select all
"actions":
[
{"type":"rect","w":4,"h":4,"inner":
[
{"type":"remove"},
{"type":"build","id":"$zoneindustrial_lvl2"}
]
}
]
Does it work? Does it need more?
Try it and see.
Credits: Lobby
my avatar:

-
FranchuFranchu
- Inhabitant of a Country
- Reactions:
- Posts: 796
- Joined: 27 May 2017, 22:07
- Location: Freezing in Argentina
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Post
by FranchuFranchu » 29 Aug 2018, 22:11
That was really necessary for interchange generators
Did you know you can't blink while smiling :) ?
-
ElephantEthan
- Inhabitant of a Megacity
- Reactions:
- Posts: 294
- Joined: 26 Aug 2018, 12:07
- Plugins: Showcase Store
-
Platform
Post
by ElephantEthan » 30 Aug 2018, 04:17
Thank you posting this here, I found a discussion about actions and conditions in a certain radiuses and I was about to ask for that to be moved here.

-
Mg3094066
- Inhabitant of a Supercluster
- Reactions:
- Posts: 3217
- Joined: 27 May 2017, 23:50
- Location: Venezuelan Republic of Mexico
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Post
by Mg3094066 » 30 Aug 2018, 04:46
Umm... This may be related with reaction...
Can I program a building to react with a disaster?
Idk a sound...?
I threw my dignity to trash and downloaded Free Fire... But someway i liked it ":'D
But i think it was too early to celebrate... my internet runs at 8kb...
Just wait another month...
-
Lobby
- Inhabitant of a Supercluster
- Reactions:
- Posts: 3756
- Joined: 26 Oct 2008, 10:34
- Plugins: Showcase Store
-
Post
by Lobby » 05 Feb 2019, 17:11
True

-
Imran M
- Inhabitant of a Country
- Reactions:
- Posts: 832
- Joined: 24 Oct 2018, 11:41
- Plugins: Showcase Store
-
Plugin Creator
Platform
Post
by Imran M » 09 Feb 2019, 13:13
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?
I just love the DOPE-amine you get after completing a plugin!
-
CERRERA
- Townsman
- Reactions:
- Posts: 48
- Joined: 25 Jan 2020, 04:19
- Location: Philippines
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Post
by CERRERA » 04 Sep 2023, 06:17
Lobby wrote: 05 Feb 2019, 17:11True

Hello
Reac
Can make Fun conditions can triggered separated fun attribute?
For example
Code:
Select all ย ย Reset
{Hi im fun template
Action

}
{Hi im seperate fun 1 condition if


my result

}
{Hi im seperate fun 2 condition if


my result

}
Or
Code:
Select all ย ย Reset
{Hi im fun template i remove building if

}
{Hi im separate fun 1 if building was remove i build

}
{Hi im separate fun 2 if building was remove i build

}
If any of these 2 are possible how can i do that?
Everything you can imagine is real