RoT2_PRC8/_module/nss/0_door_limit30.nss

16 lines
276 B
Plaintext
Raw Normal View History

2023-09-25 18:13:22 -04:00
void main() {
object oClicker = GetClickingObject();
object oTarget = GetTransitionTarget( OBJECT_SELF );
location lLoc = GetLocation( oTarget );
if ((GetHitDice(oClicker) >= 30) && (GetHitDice(oClicker) <= 15)) {
AssignCommand( oClicker, JumpToLocation( lLoc ) );
}
}