adapap / OWScript

Python-like scripting language which transpiles into Overwatch Workshop script rulesets.
MIT License
37 stars 2 forks source link

Reevaluation: String for Create HUD/In-World Text is evaluated as a String() #22

Closed netux closed 5 years ago

netux commented 5 years ago

Using reevaluation: String is impossible due to it being detected as a call to the String function. Guessing this has to do with the way you can extend a function call on multiple lines.

Example code

Rule "Sample Create In-World Text with Reevaluation: String"
    Event
        On Global
    Actions
        Create In-World Text
            Visible_To: Everyone
            Header: "Hello"
            Position: <0, 0, 0>
            Scale: 1
            Clipping: Clip Against Surfaces
            Reevaluation: String // this is not a call to String

Output

Error: Line 11
            Reevaluation: String // this is not a call to String
                          ^
'String' expected 4 arguments (StringConstant, Any, Any, Any), received 0