Set CE Value = Element value of current element

Got a cool idea that should be in R'n'D? Let's hear it!

Moderators: Flumminator, Zomis

Post Reply
Zomis
Posts: 1502
Joined: Mon Jun 21, 2004 1:27 pm
Location: Sweden
Contact:

Set CE Value = Element value of current element

Post by Zomis »

There is [Element] Target and [Element] Trigger. But what if my CE has other targets and triggers defined, and I want to set CE value to the current CE's element number? Then there's no option available for me to use.
User avatar
Sascha
Posts: 348
Joined: Fri May 12, 2006 6:17 pm
Location: Germany
Contact:

Post by Sascha »

I also had such a problem:
If an element changes to another element, the CE value of the original CE should be maintained while it is not existing anymore. D'you mean that? :?:
Image
User avatar
Holger
Site Admin
Posts: 4073
Joined: Fri Jun 18, 2004 4:13 pm
Location: Germany
Contact:

Post by Holger »

> But what if my CE has other targets and triggers defined, and I want to set
> CE value to the current CE's element number? Then there's no option
> available for me to use.

Yes; something like "[element] this" seems to be missing and could be useful.

As a workaround, you could also use the "CE delay" value and directly select the CE number there (which is not nice, but works).

> If an element changes to another element, the CE value of the original CE
> should be maintained while it is not existing anymore.

Well, this is something completely different. When a CE changes, the CE value cannot be maintained anymore, because it is not bound to a generic CE or a definition of a CE, but to the _instance_ of a CE. While the CE score is the same for all CEs of that kind, the CE value is always a different one for each instance of that CE on the playfield. If it vanishes, its CE value is lost, too. (The only solution is to store it in a different CE when the first CE changes.)
User avatar
Sascha
Posts: 348
Joined: Fri May 12, 2006 6:17 pm
Location: Germany
Contact:

Post by Sascha »

ah well, then it's different....
Image
Zomis
Posts: 1502
Joined: Mon Jun 21, 2004 1:27 pm
Location: Sweden
Contact:

Post by Zomis »

>As a workaround, you could also use the "CE delay" value and directly
>select the CE number there (which is not nice, but works).

But what if the "CE delay" value also is occupied, by the change condition?

>> If an element changes to another element, the CE value of the original
>> CE
>> should be maintained while it is not existing anymore.

>Well, this is something completely different. When a CE changes, the CE
>value cannot be maintained anymore, because it is not bound to a generic
>CE or a definition of a CE, but to the _instance_ of a CE. While the CE score
> is the same for all CEs of that kind, the CE value is always a different one
>for each instance of that CE on the playfield. If it vanishes, its CE value is
>lost, too. (The only solution is to store it in a different CE when the first CE
>changes.)

The "keep CE value after change" option is also a solution, isn't it?
User avatar
Holger
Site Admin
Posts: 4073
Joined: Fri Jun 18, 2004 4:13 pm
Location: Germany
Contact:

Post by Holger »

> But what if the "CE delay" value also is occupied, by the change condition?

Then there's no solution I know of...

(CE actions probably really need a dedicated number gadget independently from number gadgets used for other purposes.)

> The "keep CE value after change" option is also a solution, isn't it?

Yes, if the new CE should carry over the CE value of the previous CE, than this is how to do it (if this was what Sascha meant).
User avatar
Sascha
Posts: 348
Joined: Fri May 12, 2006 6:17 pm
Location: Germany
Contact:

Post by Sascha »

I think I see the problem clearly. A CE cannot keep its CE value when it's not existing anymore. A CE value needs a CE, doesn't it?
Image
Post Reply