Deutsch » Ping Skript

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

OfficialRG

Member
Jun 18, 2021
24
0
1
HI,
Ich wollte fragen ob man von einem Skript ein Anderes Skript pingen kann und wie die Events lauten.
Bsp.:
Code:
# - Skript 1 - #
on load:
    ping skunity.sk

# - skUnity.sk - #
on skript ping:
    send "Hi"
 
Nein, aber du kannst Functions benutzen die Skript übergreifend sind.

Code:
# - skUnity.sk - #
function pingTest(arg1: text) :: text:
    if {_arg1} contains "hallo":
        return "hallo!"

# - Skript 1 - #
on load:
    set {_return} to pingTest("hallo skunity")
    send {_return} to console
 
Nein, aber du kannst Functions benutzen die Skript übergreifend sind.

Code:
# - skUnity.sk - #
function pingTest(arg1: text) :: text:
    if {_arg1} contains "hallo":
        return "hallo!"

# - Skript 1 - #
on load:
    set {_return} to pingTest("hallo skunity")
    send {_return} to console
Hi danke für die Antwort aber functions sind mir bissl. kompliziert kannst du mir helfen das umzuschareiben?
 
Status
Not open for further replies.