ACES

A list of all Actions, Conditions and Expressions supported in this addon.

c2legacy

  • Conditions

    {0} {1} function {2} ({...})

    Call JS function and compare its return value (does NOT store return value).

    {0} {1} [{2}] ({...})

    Call JS function behind the alias and compare its return value (does NOT store return value).

    {0} {1} {2} ({...})

    Compare completion value of JS code with optional parameters (does NOT store return value).

General

  • Actions

    Call function: {0} ({...})

    Call JS function with optional parameters and store its return value.

  • Conditions

    Function {0} ({...}) {2} {3}

    Call JS function and compare its return value (does NOT store return value).

    Stored Return {0} {1}

    Compare last stored return value after actions.

    All scripts loaded

    Check if all scripts are loaded.

  • Expressions

    StoredReturnValue

    Get stored return value after actions

Aliases

  • Actions

    Init [{0}] with javascript {1}

    Init alias with javascript code

    Set [{0}] to {1}

    Set value behind alias expression

    Call [{0}] ({...})

    Call the function behind alias expression and store its return value

  • Conditions

    [{0}] {1} {2}

    Compare the value behind the alias expression.

    [{0}] ({...}) {2} {3}

    Call JS function behind the alias expression and compare its return value (does NOT store return value).

  • Expressions

    AliasValue

    Get alias value

Eval

  • Actions

    Execute code: {0} ({...})

    Execute JS code with optional parameters and store returned completion value. This action uses eval.

  • Conditions

    Value of {0} ({...}) {2} {3}

    Compare completion value of JS code with optional parameters (does NOT store return value). This condition uses eval.

  • Expressions

    JSCodeValue

    Execute JS code with optional parameters and get its completion value right away (it will NOT store this value). This expression uses eval.

Download

0.6.2.1 Stable (11 KB)

Info

Statistics

  • Download count 335 total downloads
  • Latest download count 210 downloads of latest version
  • Average download count 3 downloads per day average

Owners

Tags

  • 20 Comments

  • Order by
Want to leave a comment? Login or Register an account!
  • Awesome Addon! Easy to use! <3

    Thank you!!!

  • Where can I find examples files on how to use this plugin?

  • Failed to create text editor for file player.js

    how to resove it?

  • when would you offer new update for construct3 runtime ?

  • Great plugin! Are there plans to support the new C3 runtime anytime soon?

  • When i use your plugin in preview it works fine but after exporting with with minifying then uploading it to facebook Simple hosting when calling the function i get an error like this :

    ValerypopoffJS plugin: Error in 'Call function' action

    ---------------------

    JS code: UsersShare('Passed level 2 in 13 Seconds !!!','DefendScore')

    ---------------------

    UsersShare is undefined

    • What is facebook Simple hosting?

      "Minify scripts" option when exporting from Construct doesn't minify user scripts. So the problem must be somewhere else. Have you tried to upload it somewhere else to see if the problem persists?

  • I tried it out recently and overall it looks pretty useful. Awesome.

    One thing I noticed is that return values do not work if the returning is delayed, in my case I had to load an image onto a canvas, process some stuff and then return it. In order to properly load the image I had to wait for image.onload, the plugin didn´t wait and always returned 0. I worked around it by loading the image in a previous function, but it would be great if there was a trigger event like "on function 'functionCall' value returned" to allow this sort of things.

    • Can you show me the code of the function that you're talking about? The one that returns 0?

      • Hmm I already changed it, but I actually think I know the issue. What I did was

        function loadImage(img){

        var image = new image();

        image.onload = function() {

        return "whatever";

        }

        image.src = img;

        }

        and if I´m not mistaken the "return" on that place will not return the value where I need it to be returned. My b!

        Load more comments (1 replies)
  • I can use Babylon.js with this plugin ?

    • I'm not quite sure I get what you mean by "use with". Babylon.js is a framework, right? My plugin helps you include js-files in your game, call js-functions and accsess js-objects from these files. If babylon.js has functions and objects you're gonna access, then yes.

    • [-] [+]
    • 1 points
    • (0 children)
    [deleted]