Advertisement
Guest User

Untitled

a guest
Jul 19th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. hh = ds_map_create()//hout
  2. vv = ds_map_create()//vis
  3. ss = ds_map_create()//steen
  4. gg = ds_map_create()//graven
  5. ll = ds_map_create()//bouwen
  6. nn = ds_map_create()//niks
  7. bb = ds_map_create()//bezet
  8.  
  9. global.teamxx = 1
  10.     with (obj_eskimo)
  11.     {  
  12.     if (team = global.teamxx)
  13.         {
  14.         if x = tarx
  15.             {
  16.             switch(state)
  17.                 {
  18.                 case 1:with obj_intelligence {ds_map_add(hh,instance_id,instance_id)}//houthakken
  19.                 break;
  20.                 case 2:with obj_intelligence {ds_map_add(vv,instance_id,instance_id)}//vissen
  21.                 break;
  22.                 case 3:with obj_intelligence {ds_map_add(ss,instance_id,instance_id)}//steenhakken
  23.                 break;
  24.                 case 4:with obj_intelligence {ds_map_add(gg,instance_id,instance_id)}//graven
  25.                 break;
  26.                 case 5:with obj_intelligence {ds_map_add(ll,instance_id,instance_id)}//bouwen
  27.                 break;
  28.                 default:with obj_intelligence {ds_map_add(nn,instance_id,instance_id)}
  29.                 break;
  30.                 }
  31.             }
  32.             else
  33.             {
  34.             with obj_intelligence {ds_map_add(bb,instance_id,instance_id)}
  35.             }
  36.         }
  37.     }
  38.  
  39. hhh = ds_map_size(hh);    
  40. vvv = ds_map_size(vv);    
  41. sss = ds_map_size(ss);    
  42. ggg = ds_map_size(gg);    
  43. lll = ds_map_size(ll);    
  44. nnn = ds_map_size(nn);    
  45. bbb = ds_map_size(bb);    
  46.  
  47. if nnn > 0
  48.     {
  49.     nnid = (ds_map_find_value(nn,(ds_map_find_first(nn))))
  50.     with (nnid)
  51.         {
  52.         tarx = nearest_res(x,2)
  53.         }
  54.     }
  55.    
  56. ttt = hhh + vvv + sss + ggg + lll + nnn + bbb
  57.  
  58. ds_map_destroy(hh);
  59. ds_map_destroy(vv);
  60. ds_map_destroy(ss);
  61. ds_map_destroy(gg);
  62. ds_map_destroy(ll);
  63. ds_map_destroy(nn);
  64. ds_map_destroy(bb);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement