region contains

  • 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.

Kiri

Active Member
Jan 28, 2017
54
2
1
24
When I check to see if region contains something, all the region that contains that variable is triggered, would there be any work around this?

Ex: "%region at player%" contains "122" would not only check if player is in region 122 but regions like h122
 
When I check to see if region contains something, all the region that contains that variable is triggered, would there be any work around this?

Ex: "%region at player%" contains "122" would not only check if player is in region 122 but regions like h122
yes?
 
You'll have to do all the exceptions as I said first.

Example:

You have in your server the region 112, 112a, 112b, 112c and 112d.

If you want the skript to work only in 112, but not on A B C and D, you'll need to manually add an exception on such regions.

code_language.skript:
if "%region at player%" contains "122":
  if "%region at player%" contains "112a" or "112b" or "112c" or "112d" :
    stop
  #do stuff
  #this part will be only triggered to region 112, but not region 112 a or b or c or d.

You're having the same issue as I am with word detection:


https://forums.skunity.com/threads/word-detection.3245/
 
Status
Not open for further replies.