If attribute is equal to

how can i make a script? as If attribute equals (50) kill a dog. The thing about the dogs is just an example of executing the action if the attribute is equal to 50 xd

1 Like

If you want to check that the attribute’s value equals 50 at any given time, you can run an if / else / then action with the ‘Number Comparison’ comparison type:
image

If you want a script to trigger when the attribute reaches 50, you’ll have to set the maximum of the attribute type to 50, then add a when a unit's attribute becomes full trigger to the script.

2 Likes