[PLUGIN] Scenario

0 favourites
From the Asset Store
Build a thrilling space station scenario with these level assets and characters.
  • rexrainbow Hmmm, it still don't work here. I use the example from your post, and directly export it without altering anything. When I tried to open the index.html it only show blank white page.

    I use C2 R.114 Standard early adopter. Firefox ver 18.

    Btw, I install the plugin from your App Repo. There are new updates for Scenario, I will try it again after updating.

    Edit: Works well with the latest update. Thanks a lot rex! <img src="smileys/smiley1.gif" border="0" align="middle" />

  • baterism

    Have fun!

  • Update

    • Support save/load system.
    • User does not need to assign timeline object if there is only 1 timeline object in the environment.
  • Update

    Fix bug at "action continue"

    Fix bug at parameter with newline

  • Update

    Designers (include me) sometimes will miss '' for string parameters. So I add an option in properties table to turn off the "Eval mode" of parameters.

    If the parameters are strings and numbers only (no expressions). Designer could turn off "Eval mode" to "No" in properties table.

    There are two modes for parameters set in properties table:

    • Eval mode = Yes: parameters will be got through "eval", so parameter with string type need to use '' like this sample.
    • Eval mode = No : parameters will be got directly, the string did not need add ''.

    For example,

    a parameter string "hi"

    • Eval mode = Yes : 'hi'
    • Eval mode = No : hi   (did not need add '')

    b. parameter number 1

    • Eval mode = Yes : 1
    • Eval mode = No : 1

    c. parameter expression: 1+1

    • Eval mode = Yes : 1+1
    • Eval mode = No : Not support
  • Update

    5,6,7,8 if, else if, else, end if

    Capx

    0,print,'oo'
    if,MEM[0] == 0,
    0,print,'AA'
    else if,MEM[0] == 1,
    0,print,'BB'
    else if,MEM[0] == 2,
    0,print,'CC'
    else,,
    0,print,'DD'
    end if,,
    1,print,'xx'

    User should set "Eval mode" to "Yes". The string "MEM[0] == 0" will be eval to get true or false. The start of if-block is "if", the end of if-block is "end if". Now it noly supported one level if-block, it did not support nested if-block.

    Note that, user should not put any tag in the if-block.

  • Update

    Add "Call" to call official function object (condition:on function) just like "expression:Call", to get return value which calculated in event sheet. User could get data stored in other object like array/dictionary/csv through event "on function" and "action:set return value"

    User should set "Eval mode" to yes, to use this feature.

    Capx

    Call('GetValue', MEM['s'])

    It will trigger condition:on function "GetValue" to get return value. The format of "Call" is

    function_name, param0, param1, ...
  • I had fixed this problem before.

    You might re-download scenario plugin and try again.

  • I move the document of this plugin to here. Hope it would be more easier to be understood.

  • New:

    Add Scenario behavior , the behavior version of scenario plugin.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Update

    Add "action: append commands".

    Report here if user found new bugs.

  • Hi!!

    This plugin is really a life saver for me because i have a lot of text in my game ! Thanks Rex ;....;

    THat being said, i have a problem. I can't put a "," in the text i want to send in my function with scenario. Without eval mode, using the "," cut the text because it's the separator for a new parameter. With eval mode, it make my project bug (as using ":" in eval mode).

    If you have a solution, i'm all hear: D

  • pirikos

    You might use excel or google document to edit the content of scenario, then export/save as to csv file.

  • it was a bit hard to get a grab on it, but with the Csv plugin i can put "," with the double "" trick. Thanks : ).

    I have another question: is it possible to put a random time for the delay?

    i tried something like that :

    "math.random(3),print,""Call('test', 'j1','1')""
    1,print,""Call('test', 'j2','1')""
    1,print,""Call('test', 'j4','1')"""[/code:2h5j724q]
    But scenario would just jump to the second print and not do the first print.
  • Update: Support "eval" on command name field.

    Evaluated command name

    Sample capx

    Command name, i.e. the first cell of each row, is a number for delay-execution or one of these words -- wait, tag, exit, if, else if ,else, end if, goto usually.

    It also supports "eval" on this field to get evaluated result while property "Eval mode" is "Yes".

    For example,

    Math.random(),function_name,parameter0,parameter1 ...

    it puts Math.random() at first cell to get a random delay.

    pirikos

    You might try this new version.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)