"skip x" and "skip y" attributes for rect action/condition

Share your ideas about possible future content here.

Good?

YESSS!
3
33%
Yes
2
22%
Not sure
2
22%
No
2
22%
NOOOoOO!
0
No votes
 
Total votes: 9

User avatar
FranchuFranchu
Inhabitant of a Country
Reactions:
Posts: 789
Joined: Sun May 28, 2017 0:07
Location: In the blogosphere
Plugins: Show
Version: Beta

Platform

Plugin Creator

"skip x" and "skip y" attributes for rect action/condition

#1

Post by FranchuFranchu » Sun Sep 02, 2018 0:05

The code:

Code: Select all

"actions":[{
"type":"rect",
"w":9,
"h":9,
"skip x":3,
"skip y":3,
"inner":[{
"type":"build",
"id":"$whatever"
}]
}]
Should have this result:
Attachments
Aneva_18-09-01_19.00.16.png
</failedxss>

ElephantEthan
Inhabitant of a Megacity
Reactions:
Posts: 294
Joined: Sun Aug 26, 2018 14:07
Plugins: Show

Platform

Re: "skip x" and "skip y" attributes for rect action/condition

#2

Post by ElephantEthan » Sun Sep 02, 2018 9:38

I don't think this is needed, it's easy enough to do with "build".

User avatar
CommanderABab
AB
Reactions:
Posts: 7650
Joined: Tue Jun 07, 2016 21:12
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: "skip x" and "skip y" attributes for rect action/condition

#3

Post by CommanderABab » Sun Sep 02, 2018 13:41

754!754Currently using beta 754. 754 What's new? :)
harder hard mode!!
:)

Telegram - t.me/
🆎️🆎️🆎️🆎️Commander🆎️🆎️

User avatar
Mg3094066
Inhabitant of a Supercluster
Reactions:
Posts: 3102
Joined: Sun May 28, 2017 1:50
Location: United Mexican States
Plugins: Show
Version: Beta
Phone model: LG H320mb 5.0.1

Plugin Creator

Platform

Re: "skip x" and "skip y" attributes for rect action/condition

#4

Post by Mg3094066 » Wed Feb 06, 2019 5:27

wut?
I want my diamonds you get the plugins free or not :bd

User avatar
Lobby
Developer
Reactions:
Posts: 3341
Joined: Sun Oct 26, 2008 12:34
Plugins: Show
Version: Beta
Phone model: S7 edge

Platform

Re: "skip x" and "skip y" attributes for rect action/condition

#5

Post by Lobby » Wed Feb 06, 2019 14:48

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

Code: Select all

local function buildRect(draft, x, y, width, height, stepx, stepy)
  stepx = stepx or 1
  stepy = stepy or 1
  for oy=0,height-1,stepy do
    for ox=0,width-1,stepx do
      if Builder.isBuildingBuildable(draft, x + ox, y + oy) then
        Builder.buildBuilding(draft, x + ox, y + oy)
      end
    end
  end
end
...Have a nice stay

User avatar
CommanderABab
AB
Reactions:
Posts: 7650
Joined: Tue Jun 07, 2016 21:12
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: "skip x" and "skip y" attributes for rect action/condition

#6

Post by CommanderABab » Wed Feb 06, 2019 20:48

You could also use a 3x3 building that when built removes itself and builds the 9 tiles in the pattern shown.
754!754Currently using beta 754. 754 What's new? :)
harder hard mode!!
:)

Telegram - t.me/
🆎️🆎️🆎️🆎️Commander🆎️🆎️

Post Reply Previous topicNext topic

Return to “Suggestions”

Who is online

Users browsing this forum: No registered users and 1 guest