Skip to main content
11 events
when toggle format what by license comment
Jun 23, 2020 at 9:01 history edited T.J. Crowder CC BY-SA 4.0
deleted 445 characters in body
Jun 23, 2020 at 1:34 history edited ETHan CC BY-SA 4.0
added 2661 characters in body
Jun 22, 2020 at 15:40 comment added ETHan @ΣπύροςΓούλας thank you for your comment. When i mean "called", I mean that whenever the user selects an "option" for that question ID, I want to run any and all functions that are within my object. So if the question ( id 2 ) is "Do you want to run or fight", and the user selects the option "fight", any function within that option will be run. If the user chooses to fight, maybe my function will subtract health from a player object. I am using this tutorial as a starting point, and might help understand what I am trying to do. youtube.com/watch?v=R1S_NhKkvGA&t=709s .
S Jun 22, 2020 at 15:35 history suggested macborowy CC BY-SA 4.0
improved code formatting
Jun 22, 2020 at 14:28 comment added macborowy Do you know which option is selected by the user? If yes, did you try to call logic method directly on selected option? You can even check if object has logic property defined like this: jsbin.com/nuyenagiwe/1/edit?js,console
Jun 22, 2020 at 14:21 review Close votes
Jun 26, 2020 at 0:03
Jun 22, 2020 at 14:13 review Suggested edits
S Jun 22, 2020 at 15:35
Jun 22, 2020 at 14:08 comment added Prinny Can you elaborate more on "as soon as an object option is called". What do you mean "called"? To my understanding you want to avoid explicitly calling the logic function and have it be called automatically. I just don't understand the trigger.
Jun 22, 2020 at 14:07 comment added Nikita Madeev I think you can help proxy
Jun 22, 2020 at 14:05 answer added T.J. Crowder timeline score: 1
Jun 22, 2020 at 13:57 history asked ETHan CC BY-SA 4.0