attackable flag

正在查看此主题的用户

mawcs

Recruit
I'm trying to add a condition to one of my triggers that tests if the player is attackable while resting.  When I look at the header_operations.py file, I can see that rest_for_hours and rest_for_hours_interactive include an argument to indicate whether the player remains attackable.  However, I can't seem to find a way to test this in a condition.  Does anybody know how to do this?

Essentially, I just want to see if a player is resting in a town or castle before I execute the rest of my trigger.  Any help would be greatly appreciated.
 
In case anyone is interested, I solved this problem by creating a new global flag that is set when the user clicks the "wait here for some time" menu in a town or castle and then un-set the flag when they click "leave."  As far as I can tell, there is no way to test the "attackable" portion of the resting.  However, I think this is only set when the player is in a castle/town or when the player is prisoner.
 
后退
顶部 底部