03-03-2021, 01:02 PM
Eric,
Thank you. It is taking me quite a long time to work through stuff now.
I take your point about "waves" etc. belong rather in the graphics metadata. I am laying that aside until I have got the underlying mechanics working.
So thanks for fixing the issue with the "what" values getting inserted into the output from (sites LargePiece at:X). I notice however that for this ludeme to work X needs to be the root of the piece.
I am not sure if that is how it is supposed to work. However it seems to me that it might be. If that is how it is supposed to work, then that really confirms for me I need to do the Conversion approach. To achieve this I need to shift the move rules into the tile.
However I am getting odd results. In the attached .lud file everything works until I uncomment the following code:
This is intended to replace the Large piece with the corresponding small pieces.
The attached version works as expected. However if I uncomment this code it breaks. Upon loading I get this:
Thank you. It is taking me quite a long time to work through stuff now.
I take your point about "waves" etc. belong rather in the graphics metadata. I am laying that aside until I have got the underlying mechanics working.
So thanks for fixing the issue with the "what" values getting inserted into the output from (sites LargePiece at:X). I notice however that for this ludeme to work X needs to be the root of the piece.
I am not sure if that is how it is supposed to work. However it seems to me that it might be. If that is how it is supposed to work, then that really confirms for me I need to do the Conversion approach. To achieve this I need to shift the move rules into the tile.
However I am getting odd results. In the attached .lud file everything works until I uncomment the following code:
Code:
(then
(do
(set Var "TileTo" (last To))
next:(do
(forEach
Site
(sites LargePiece at:(var "TileTo"))
(add (piece (id #3 Mover) ) (to (var "TileTo")) stack:True)
)
next:(remove (var "TileTo") level:0)
)
)
)
This is intended to replace the Large piece with the corresponding small pieces.
The attached version works as expected. However if I uncomment this code it breaks. Upon loading I get this:
![[Image: pic6022387.png]](https://cf.geekdo-images.com/XpfGNMm0IOkPjaIv5jLqxQ__imagepage/img/2NOA4j8e3oumeRAg04r5_80k-J8=/fit-in/900x600/filters:no_upscale():strip_icc()/pic6022387.png)