Feature Request

Forum Forums Discussion Feature Request

This topic contains 2 replies, has 2 voices, and was last updated by  Amzo 4 years ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #21739

    Amzo
    Participant
    0

    Is it possible to add conditional statements to the scenario engine. So that we can branch based on specific outcomes.

    For example have it so that if ( item == desired_quantity) then the scenario engine would do something different. I think conditional statements would add a huge amount of power to scenarios, and loops are already possible with repeat chapter.

    #21740
    Miqobot
    Miqobot
    Keymaster
    0

    Yes, we have plans to expand scenarios potential after we complete the core Combat system.
    Please note however that Scenario Engine is designed with simplicity being a priority, so it does not offer as much flexibility as a programming language. But we will try to implement features that offer a similar functionality to what you describe.

    Thank you for your request!

    #21758

    Amzo
    Participant
    0

    Even if it was something as simple as to check if a user can repair by having the built in functions return 0 or 1. So that scenarios can be used by everyone.

    // if repair() doesn’t work execute the following
    if(repair())
    repairNPC()
    endif

    This would allow scenarios to work with all users, even those who can’t repair.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.