Skript icon indicating copy to clipboard operation
Skript copied to clipboard

Event expressions pass into functions

Open ImNotStable opened this issue 2 years ago • 2 comments

Suggestion

on sign edit: function()

function function(): send "%event-block%, %event-world%, %event-location%, %event-player%" to player`

Why?

Instead of creating a ton of variables for expressions within an event, I'd like those expressions to pass to the function. I'm not sure if this is hard to create, but it'd be an amazing addition to functions because it'd make many things faster and easier.

Other

This seems like such a general idea that it'd have been suggested previously, but I love the idea and I'm curious if it was rejected, and why it was denied.

Agreement

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

ImNotStable avatar Sep 11 '22 01:09 ImNotStable

That is not really a good idea because when using the function outside of that event things will break, so when using a function like they currently work you need to input the values depending on the situation, the block you may want could be loop-block, event-block or target-block depending on the situation. This would just be a gimmick

JakeGBLP avatar Sep 11 '22 06:09 JakeGBLP

I remember there was some other issue related to this but couldn't find it however, I think if could have event expression like skript-reflect that would solve the issue

AyhamAl-Ali avatar Sep 11 '22 07:09 AyhamAl-Ali