helper function for scripts

for future status effect obedience
Merge pull request #314 from sprunk/patch-1

helper function for scripts