Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Clone this wiki locally
GHI_CountBuffs has 1 required argument and 1 optional argument.
- The name of the buff you want to count.
- unit [Optional]
- The unit you wish to look for buffs on. Left out it will default to the player who uses the item.
if GHI_CountBuffs("Drunk") then
print("You've had too many drinks already")
This script checks if you have the buff called Drunk and if you do it prints a message saying you are drunk.
if GHI_CountBuffs("Beers") <= 3 then
print("You could have another beer without passing out.")
This script checks if you have had 3 or more beers. If you haven't then it tells you you can have another.