Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (defconst password "password")
- (defconst gl-password-phase 43)
- (defrule
- (taunt-detected any-human 255)
- (up-compare-goal gl-password-phase < 1)
- =>
- (set-goal gl-password-phase 1)
- (chat-to-player this-any-human "Please enter the password.")
- )
- (defrule
- (taunt-detected any-human 255)
- (goal gl-password-phase 1)
- =>
- (up-store-player-chat this-any-human)
- )
- (defrule
- (taunt-detected any-human 255)
- (goal gl-password-phase 1)
- (up-compare-text c: password >= 0)
- =>
- (chat-to-player my-player-number "Password confirmed.")
- (set-goal gl-password-phase -1)
- (acknowledge-taunt this-any-human 255)
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement