SHARE
TWEET

Untitled

a guest Aug 23rd, 2019 90 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; my scout is attacked, i know it thx to the use of object-data-tasks-count is a previous rule
  2. ; scout-micro-point-x is the point-goal-pair of my scout while it is targeted
  3. (defrule
  4.     (goal scout-attacked-goal YES)
  5. =>  (up-modify-sn sn-focus-player-number s:= sn-target-player-number)
  6.     (up-full-reset-search)
  7.     (up-set-target-point scout-micro-point-x)
  8.     (up-filter-distance c: 1 c: 9)
  9.     (up-find-remote c: villager-class c: 10)
  10.     (up-remove-objects search-remote object-data-tasks-count <= 0)
  11.     (up-get-search-state local-total-goal)
  12.     (set-goal split-rule-goal 172))
  13.  
  14.  
  15. (defrule
  16.     (goal scout-attacked-goal YES)
  17.     (goal split-rule-goal 172)
  18.     (up-set-target-object search-remote c: 0)
  19.     (up-object-data object-data-tasks-count > 0)
  20. =>  (up-full-reset-search)
  21.     (up-find-remote g: remote-last-goal c: 1); ============> It contains the scout :'(###################### cheese, WHY ! !!!!!
  22.     (up-set-target-object search-remote c: 1)
  23.     (up-get-point position-object object-point-x))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top