SphereCommunity
Resources - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: Resources (/Thread-Resources--3280)



Resources - mrkarlo - 02-25-2014 11:31 PM

hey, man why I cant gather resources outside guard zone? from rocks, crags, hillocks? There is some message: Try mining elsewhere. I can gather only in caves.


RE: Resources - Mordaunt - 02-26-2014 01:10 AM

Check that you are targeting a tile with type t_rock


RE: Resources - mrkarlo - 02-26-2014 01:19 AM

ye, type t_arock isn't correct?


RE: Resources - Awaken - 02-26-2014 01:24 AM

(02-26-2014 01:19 AM)mrkarlo Wrote:  ye, type t_arock isn't correct?

you need try in t_rock, t_arock isnĀ“t work


RE: Resources - mrkarlo - 02-26-2014 02:01 AM

ye, thanks! I have one more question. There is something... Gathering resources in caves and in forests from the rocks. How can I make it?
Code:
ON=@RESOURCEFOUND
IF (<SERV.MAP(<ARGO.P.X>,<ARGO.P.Y>).TERRAIN> > 0244)
SYSMESSAGE Test
endif



RE: Resources - mrkarlo - 02-27-2014 05:46 PM

If somebody knows, how to separate resource gathering in caves and in forests (not in caves) please give response.


RE: Resources - Awaken - 02-27-2014 09:16 PM

One way is create you own Regionsource to Forests areas. This will be different


RE: Resources - mrkarlo - 02-28-2014 02:04 AM

ok, thanks! But what about tile check?


RE: Resources - Mordaunt - 02-28-2014 02:42 AM

Code:
IF (<SERV.MAP(<ARGO.P.X>,<ARGO.P.Y>).TYPE> == t_rock) &
      IF (<SERV.MAP(<ARGO.P.X>,<ARGO.P.Y>).FLAGS>) &region_flag_underground)
           //cave
      ELSE
          // not cave
      ENDIF
ENDIF