APickledWalrus / skript-placeholders

Placeholder integration for Skript.
GNU General Public License v3.0
28 stars 8 forks source link

variables inside placeholders #53

Closed czychuuu closed 2 months ago

czychuuu commented 6 months ago

Description

title example: on placeholderapi placeholder request for the prefix "custom": if the identifier is "aassdd_{_variable}" if {_variable} is "something" set the result to " " set the result to function({_variable})

APickledWalrus commented 6 months ago

would it set the variable based on the identifier? im not too sure what you're requesting.

czychuuu commented 6 months ago

to be able to make placeholder like some plugins do eg name_ and it outputs formatted time for example name_3 outputs "3s" name_1000 outputs "16m 40s" etc

APickledWalrus commented 6 months ago

I'd probably recommend parsing this yourself with existing Skript syntax - it shouldn't be too difficult :)

czychuuu commented 6 months ago

this is just a example what i mean

APickledWalrus commented 2 months ago

Unfortunately, I do not think this is feasible to implement and am going to stick with the recommendation of parsing this yourself (Skript has the parsed as expression which would simplify this).