Skip to content

Allow for multi-line function inputs #7924

@lostsucks

Description

@lostsucks

Suggestion

As of recently, I have been writing a lot of longer lines in my scripts. I have been able to ignore this issue by using variables, or using Word Wrap on VSCode. Although I think multi-line inputs for functions would be cool.

Such as how it is done in java for a Matrix4f w/ 4 different lines for the values, I think it would be a nice addition to add this into base skript.

An Example:

set {_transformation} to transformation(
    vector(0, 0, 0),
    vector(1, 1.5, 1),
    axisAngle(45, vector(2, 2, 2)),
    quaternion(1, 1, 1, 1)
)

Why?

I believe this feature will be majorly helpful to keep my code nice and readable. It will also satisfy my need for being able to easily read those functions.

I know you can workaround it by just setting variables, but that's boring!

Other

No response

Agreement

  • I have read the guidelines above and affirm I am following them with this suggestion.

Metadata

Metadata

Assignees

Labels

enhancementFeature request, an issue about something that could be improved, or a PR improving something.functionsRelated to functionspriority: lowest"Nice to have" updates that are not required (tiny low impact bug fixes or QoL enhancements).

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions