helper function for scripts

for future status effect obedience