1. 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!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

on variable update

Discussion in 'Addon Suggestions' started by titustitus98, Feb 11, 2020.

  1. titustitus98

    titustitus98 Active Member

    Joined:
    Feb 19, 2018
    Messages:
    44
    Likes Received:
    0
    Hi this is a suggestion for an addon or a new skript feature.

    My suggestion is a new event called "on variable update" which would trigger whenever a variables is changed.

    For example, say I have a variable called "{money::%player%}" and that it's default value is 0, so suppose I want there to be a message sent in chat when this number is updated, this would be the code for it:

    on variable update:
    if event variable is {money::%player%}:
    send "hi" to event-player
     
  2. 3meraldK

    3meraldK Member

    Joined:
    Dec 27, 2019
    Messages:
    5
    Likes Received:
    0
    how would skript know what player did you mean
    big facepalm bruh
     
Loading...