Help to build an event

MasterX

  • Posts: 23
You just have to check each attribute individually.

And how do I do it?

Luyren

  • *
  • Posts: 2574
See Jeffrey's reply, and replace the list getters with each number attribute.
My Stencyl resources are available here: https://luyren.itch.io/
Cutscenes, RPG Elements, Particles, Map System and many more.
Twitter

MasterX

  • Posts: 23
See Jeffrey's reply, and replace the list getters with each number attribute.

I started by creating three attributes Number (1Time, 2Time, 3Time) in the scene and then did this:

If Final time < 1Time
Set 1Time to Final time
Set 2Time to 1Time
Set 3Time to 2Time

Otherwise if Final time < 2Time
Set 2Time to Final time
Set 3Time to 2Time

Otherwise if Final time < 3Time
Set 3Time to Final time

Unfortunately it did not work. I think the time has come to put my pride aside and conclude that I will not succeed. But I appreciate the help and patience. At least I tried... Thanks for everything.

Luyren

  • *
  • Posts: 2574
If Final time < 1Time
Set 1Time to Final time
Set 2Time to 1Time
Set 3Time to 2Time
Follow that logic in order:
1- You set 1Time to the Final time
2- You set 2Time to 1Time. Since 1Time = Final time, 2Time will also be equal Final time
3- You set 3Time to 2Time, which is equal 1Time, which is equal Final time. Do you see the problem with your logic?

You could have 3 local attributes (blue) that store times 1, 2 and 3, before you do that check. Then you set the remaining game attributes to the value of the blue ones.
My Stencyl resources are available here: https://luyren.itch.io/
Cutscenes, RPG Elements, Particles, Map System and many more.
Twitter