Testing for value of Boolean/Variables

  • 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 community!

    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.

Luminx

Member
Apr 22, 2017
2
0
0
I'm creating a plugin for a prison server, it is for guards, they do /conf and it takes away all "contraband" items after 15 seconds. If you choose to fight the guard instead it cancels the take away from items. I've got it all figured out, but I don't know how to make it test for a boolean. I want the PvP event to make a variable like {conf.%player%} turn false, so I can check for it after the 15 second period.
I've tried both
if {conf.%player%} is true

and

while {conf.%player%} is true

both of which lead into just clear commands. Sorry for it being such a basic problem but I'm still trying to learn ^-^
 
What do you mean by "both of which lead into just clear commands"? You should be able to check if a variable is true like that.
 
Oh! I mean that they both just lead into the same code that clears the items from the inventory
When I reload skript in game I get the error message "Can't understand this conditon/effect"
 
Status
Not open for further replies.