I know function argument overload has already been proposed and is not likely to happen, but the main feature of Skript is Minecraft commands! As arguments in the command declaration are typed, it is theoretically possible to implement command overload, and I think it would be a great feature... as "statics" argument is also a thing (command /cmd <integer> ABC <text> here it is ABC), it would also make commands with a lot of arguments much clearer! Instead of just a thousand "if arg 1 is", we would just have to add an overload and the code will be easier to understand! Here is an example case :
command /money <offline player=%player%>:
trigger:
message "your money is %{money::%player%}%"
command /money give <offline player> <integer>: # An overload of "/money" with some "static" argument (make it much clearer imo)
trigger:
message "you gave some money to someone"
command /money give <offline player> <integer> <text>: # An overload of "/money give" with another typed argument
trigger:
message "you gave some money to someone with some king message"
maybe instead,
command money:
arguments <number>:
# whatever
arguments <number> <number>:
# whatever
This could be cool. I think the way pikachu suggested above would be the better of the two.
Most helpful comment
maybe instead,