Page 1 of 1
[EOS HELP] How can I use many IF with different CHOICE each round
Posted: Mon Jul 04, 2022 6:04 pm
by Epton
I am working on a fighting game.
And I'm trying to make that a choice will be removed after defeating say monster
I have tried many combinations but non-works ):
Maybe there is a way I can trigger choice with code?
Then I can use if else
*This page is the page where you pick who to fight against
First IF where all is true
https://ibb.co/BZVH9wy
Second IF where 1 have been defeated
https://ibb.co/FbMNYCg
Note that on the second IF the CHOICE doesn't have Nian/Dusk as an option because Monster 1 is false
Re: [EOS HELP] How can I use many IF with different CHOICE each round
Posted: Mon Jul 04, 2022 6:46 pm
by Thamrill
Epton wrote: Mon Jul 04, 2022 6:04 pm
I am working on a fighting game.
And I'm trying to make that a choice will be removed after defeating say monster
I have tried many combinations but non-works ):
Maybe there is a way I can trigger choice with code?
Then I can use if else
*This page is the page where you pick who to fight against
First IF where all is true
https://ibb.co/BZVH9wy
Second IF where 1 have been defeated
https://ibb.co/FbMNYCg
Note that on the second IF the CHOICE doesn't have Nian/Dusk as an option because Monster 1 is false
Would be easier having the whole script under hand, but is //Nian/Dusk the name of a bool variable? Because currently you you are ANDing the trueness of Monster1 with //Nian/Dusk, which I'm quite positive is a comment, not a variable name. Moreover, I think it may be a lot easier to create only a single choice action and disabling the buttons of the defeated monsters. You can set button visibility at the bottom of the choice action. So if I understand correctly you could set the Nian/Dusk visibility equal to !Monster1 (NOT Monster1)
Re: [EOS HELP] How can I use many IF with different CHOICE each round
Posted: Mon Jul 04, 2022 8:59 pm
by undeniable_denial
Epton wrote: Mon Jul 04, 2022 6:04 pm
And I'm trying to make that a choice will be removed after defeating say monster
I have tried many combinations but non-works ):
Maybe there is a way I can trigger choice with code?
The options of a choice-action can be conditional. Just enable the "eval" switch at the bottom.
In the following example the button "Nian/Dusk" is only available when the variable Monster1 is true:

- Screenshot_20220704_225215.png (35.21 KiB) Viewed 1245 times
Re: [EOS HELP] How can I use many IF with different CHOICE each round
Posted: Tue Jul 05, 2022 4:32 pm
by Epton
Thanks for in inputs guys
It was lot of help I got it