[EOS HELP] How can I use many IF with different CHOICE each round

Post all technical issues and questions here. We'll gladly help you wherever we can.
Post Reply
Epton
Explorer At Heart
Explorer At Heart
Posts: 112
Joined: Sun Mar 05, 2017 9:56 am

[EOS HELP] How can I use many IF with different CHOICE each round

Post 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 :innocent:


*This page is the page where you pick who to fight against
First IF where all is true
Image
https://ibb.co/BZVH9wy

Second IF where 1 have been defeated
Image
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
Thamrill
Explorer At Heart
Explorer At Heart
Posts: 266
Joined: Thu Jan 03, 2013 4:55 pm
Gender: Male
Sexual Orientation: Straight
I am a: Submissive

Re: [EOS HELP] How can I use many IF with different CHOICE each round

Post 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 :innocent:


*This page is the page where you pick who to fight against
First IF where all is true
Image
https://ibb.co/BZVH9wy

Second IF where 1 have been defeated
Image
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)
Image

Image

Image
undeniable_denial
Explorer
Explorer
Posts: 96
Joined: Sat Aug 24, 2019 11:42 am
Gender: Male
Location: Germany

Re: [EOS HELP] How can I use many IF with different CHOICE each round

Post 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
Screenshot_20220704_225215.png (35.21 KiB) Viewed 992 times
Epton
Explorer At Heart
Explorer At Heart
Posts: 112
Joined: Sun Mar 05, 2017 9:56 am

Re: [EOS HELP] How can I use many IF with different CHOICE each round

Post by Epton »

Thanks for in inputs guys
It was lot of help I got it
Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests