Page 1 of 2

CE-value conditioned change-pages

Posted: Fri Aug 25, 2006 11:34 am
by Tomi
What about change-pages that work only if the CE currently has specific value? This would allow to make some very interesting techniques.

Posted: Fri Aug 25, 2006 1:28 pm
by Alan
Do you mean; trigger if value = 10, > 100 < 50?

I think this has been mentioned somewhere else, but yes it would be very nice! Zelda's health ceiling for example......

if ce_value >100 set ce_value = 100

Posted: Fri Aug 25, 2006 3:22 pm
by Francesco
Alan wrote:I think this has been mentioned somewhere else, but yes it would be very nice! Zelda's health ceiling for example......
I think there could be a workaround for that. I am not so accustomed to the new features, but it should work.

Use two different CEs to store the health, like CE1 set to value 100 and CE2 set to value 0.

When the player loses health, subtract n from CE1 and add n to CE2.
When the player gains health, add n to CE1 and subtract n from CE2.

In this way you can have a fake ceiling, checking when CE2 gets again to 0.

I am putting apart the problem about "No CEs left!", because it's another issue about Zelda...

Posted: Fri Aug 25, 2006 3:23 pm
by Tomi
> Do you mean; trigger if value = 10, > 100 < 50?
Not exactly (I've meant only value = 10, not > or <), but why not?
if ce_value >100 set ce_value = 100
Not like that... "ce_value > 100" is not an event, and changepages are triggered by an event (e.g. player presses a button, change by page of XYZ). This is meant to be an "additional condition", not an event.
(Something like "Set ce_value = 100 after delay 1 if ce_value > 100") would work thogh.)

Uses are countless - for example, in Zelda you could theoretically merge "buff -" elements. They all are just "walkable inside" plus changepages, so they could remember wich "buff" they are in CE value and then for example when CE value is 1 only changepages from "buff - room draw pause" would be used. And this is just an example. CEs with states, changing behavior, "conditional statements", the number of uses would be nearly infinite.

And no, making Zelda's max health just 100 is *not* a good idea! Really!! ;-) It would be impossible...

Posted: Fri Aug 25, 2006 3:26 pm
by Francesco
Whoa... cross posting... take a look above.

Posted: Fri Aug 25, 2006 3:38 pm
by Alan
Tomi, I read this and your other idea "Change-condition 'CE value/score gets N" and I've posted this in the wrong place :? :oops:
When the player loses health, subtract n from CE1 and add n to CE2.
When the player gains health, add n to CE1 and subtract n from CE2.
Yes..... that would work! Oh well :( Then again I suppose a health cap is a bit cruel.....if you earned the HP then you deserve them!

Posted: Fri Aug 25, 2006 3:40 pm
by Francesco
Well, you could set the starting value to 100, set the top to 150 and allow regular enemies to drop some heart here and there ;)

Posted: Tue Aug 29, 2006 10:12 am
by Zomis
Tomi wrote:Not like that... "ce_value > 100" is not an event, and changepages are triggered by an event (e.g. player presses a button, change by page of XYZ). This is meant to be an "additional condition", not an event.
(Something like "Set ce_value = 100 after delay 1 if ce_value > 100") would work thogh.)

Uses are countless - for example, in Zelda you could theoretically merge "buff -" elements. They all are just "walkable inside" plus changepages, so they could remember wich "buff" they are in CE value and then for example when CE value is 1 only changepages from "buff - room draw pause" would be used. And this is just an example. CEs with states, changing behavior, "conditional statements", the number of uses would be nearly infinite.
Even though the number of uses already are infinite (don't read that line, Holger!), I think that this is a veeery good idea. I already know a way (I think...) to making better warparounds using CEs.

Posted: Thu Sep 28, 2006 6:07 pm
by Tomi
Question for Holger: in which version can we expect this feature?

Posted: Mon Oct 02, 2006 8:23 pm
by Holger
> in which version can we expect this feature?

Honestly, I really can't say. But this feature looks useful indeed...

Posted: Wed Oct 11, 2006 4:56 pm
by Zomis
Alan wrote:Do you mean; trigger if value = 10, > 100 < 50?

I think this has been mentioned somewhere else, but yes it would be very nice! Zelda's health ceiling for example......

if ce_value >100 set ce_value = 100
Implementing this would result in a couple of possible element sorting techniques. I was about to start one just now, but then I found out that even though it could be possible it's hard without this feature.

Posted: Thu Oct 12, 2006 2:36 pm
by Sascha
Wouldn't solve that the problem:

[ ] element changes to ( ) after/when:

[ ] [CE Value / Score gets under / over]

player [ . . |+-]
page . [ . . |+-]
Value/Score [ . . |+-]

As you can set change page and player,
set the CE value/score.

Posted: Thu Oct 12, 2006 3:00 pm
by Zomis
Sascha wrote:Wouldn't solve that the problem:

[ ] element changes to ( ) after/when:

[ ] [CE Value / Score gets under / over]

player [ . . |+-]
page . [ . . |+-]
Value/Score [ . . |+-]

As you can set change page and player,
set the CE value/score.
No Sascha, that alone would not solve the problem. It would solve one part though, but there's another part. The main idea Tomi posted "What about change-pages that work only if the CE currently has specific value?" would mean that the CE Value/Score gets under/over is triggered as an AND condition. So that it could be used together with other options, like "CE Value is above 10 AND touched by player on left side."

Posted: Thu Oct 12, 2006 5:59 pm
by Holger
Another problem is that the "Value/Score" for the CE condition is defined by the CE action gadgets, so that you wouldn't be able to use it for CE actions anymore.

Posted: Sun Feb 18, 2007 8:14 pm
by Zomis
Holger wrote:Another problem is that the "Value/Score" for the CE condition is defined by the CE action gadgets, so that you wouldn't be able to use it for CE actions anymore.
I don't really understand what you mean here.
I think Tomi means that a new gadget could be added though (but I guess the space for gadgets is starting to run out :D)