Guild icon
DDraceNetwork
DDraceNetwork / mapping
Here you can talk about mapping, ask mapping related questions or request new ratings for released maps
Between 2022-09-24 00:00:00Z and 2022-09-25 00:00:00Z
Avatar
Avatar
FightFire
oh no i found this
why do u need arrows when u have the pistol?
Avatar
Hello, I am creating a .rules file for my mapres, but I don't know every possibility, is it possible to make some kind of OR clause? (Like Pos 0 -1 EMPTY OR Pos 0 1 EMPTY), or do I have to create a new Index for each possibility?
17:50
Sorry if it's not the good place to ask this, didn't know where to ask 😅
Avatar
Avatar
Nawretard
Sorry if it's not the good place to ask this, didn't know where to ask 😅
this is the correct channel for this question, no worries :)
17:57
OR is not supported there
17:57
you can create multiple rules to emulate that OR
Avatar
Thank you very much for your answer I will create multiple rules then. You said that OR is not supported here, so it means it is supported somewhere else? I don't really know the list of keywords available
Avatar
Avatar
Nawretard
Thank you very much for your answer I will create multiple rules then. You said that OR is not supported here, so it means it is supported somewhere else? I don't really know the list of keywords available
yes, for a position you can specify a list of id's you are looking for Pos 0 -1 INDEX 2 OR 1 XFLIP or 1 YFLIP
18:16
replacing INDEX with NOTINDEX will turn that 'whitelist' into a 'blacklist', so it won't trigger if any of the specifed id's are found
Avatar
Oh nice, I didn't know that thank you !
heartw 1
18:18
I tried to work with INDEX but in many cases I didn't have behaviour I expected, so I decided to use only coordinates, but I may use this if I try to use INDEX again
Avatar
EMPTY is only syntactic sugar for INDEX 0 and FULL for NOTINDEX 0
Avatar
Ok, thank you for the explanation
Avatar
is that info in the wiki @Patiga ?
Avatar
I don't think it is
Avatar
Does the AND clause exist? If I want to say that a position should be full, but not the Index 2, is it possible to write Pos 0 1 NOTINDEX 0 AND NOTINDEX 2?
Avatar
And if I try to write Index 3 Pos 0 1 FULL Pos 0 1 NOTINDEX 2, is the first command overwritten?
18:45
Sorry that's a lot of questions
Avatar
Avatar
Nawretard
And if I try to write Index 3 Pos 0 1 FULL Pos 0 1 NOTINDEX 2, is the first command overwritten?
this will add conditions, so you could imagine it as AND
Avatar
Avatar
Nawretard
Does the AND clause exist? If I want to say that a position should be full, but not the Index 2, is it possible to write Pos 0 1 NOTINDEX 0 AND NOTINDEX 2?
what you think of as AND is done with OR there. Pos 0 1 NOTINDEX 0 OR 2 would be what you want there
👍 1
Avatar
Avatar
Patiga
what you think of as AND is done with OR there. Pos 0 1 NOTINDEX 0 OR 2 would be what you want there
Thank you, again 😁
Avatar
Avatar
Patiga
yw heartw
Last question about Indexes, at the beginning just after NewRun, I create an Index (Index 34) where the 8 blocks around are FULL, and later in another Index (Index 39) I check if this block is in the neighbourhood, but I feel like when the second Index is called, the blocks are still in their default Index. Is there a way to prioritize indexes? (Make sure Index 34 is called before Index 39)
19:33
Omg it worked, I'm stupid don't worry
19:33
My Index 34 was also the default one, so I didn't recognize if the block was still at default or was surrounded by blocks everywhere
Avatar
I think the problem you described is that within the same run, the view of the old blocks stay the same?
Avatar
Avatar
Patiga
I think the problem you described is that within the same run, the view of the old blocks stay the same?
I thought that a block was overwritten because the command for the bloc next to it was not called yet, but it was most likely an implementation problem
Avatar
you can do NoLayerCopy under NewRun to have the changes of the rules be visible for the next rules that get executed
Avatar
I understood
👌 1
Exported 29 message(s)