![]() |
want to dig sand - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: want to dig sand (/Thread-want-to-dig-sand) |
want to dig sand - WRWR - 05-12-2017 03:17 AM just want to dig sand on beach Code: [REGIONTYPE r_default_rock t_sand] but it's not work ![]() ![]() or shovel work only with t_rock like a pickaxe? RE: want to dig sand - darksun84 - 05-12-2017 03:40 AM Did you define [REGIORNRESOURCE mr_sand] ? Also make sure that the sand tiles you are digging matches the ID of [TYPEDEF t_sand] in sphere_types.scp RE: want to dig sand - WRWR - 05-12-2017 04:31 AM (05-12-2017 03:40 AM)darksun84 Wrote: Did you define [REGIORNRESOURCE mr_sand] ? sure Code: [TYPEDEF t_sand] and Code: [REGIONRESOURCE MR_SAND] RE: want to dig sand - darksun84 - 05-12-2017 06:41 AM I guess by reading the comments looks like is mandatory to use t_rock if you are using a pickaxe/shovel ![]() In order to actually mine ore, a REGIONRESOURCE needs to exist for it, and a REGIONTYPE needs a REGION= entry to that REGIONRESOURCE... also that same REGIONTYPE must be associated to the t_rock Terrain TYPEDEF. Hovewer, i did a test, i moved the t_sand tiles in the t_rock part. Then i created a custom areadef that includes a beach area. Added the sand regiontype as the last event entry in the areadef. Then you can mine sand in this area, without other ore conflicts, hovewer i remember it was more easy to do that before? Probably the quickest way is to play with the regionresource triggers (still you have to add the sand tiles to the rock tiles part) Or creating a custom pickaxe? RE: want to dig sand - WRWR - 05-12-2017 07:02 AM yeah, i know about t_rock terrains... sand to t_rock? no way pickaxe for sand? no! ![]() why i can't use shovel for it? RE: want to dig sand - darksun84 - 05-12-2017 07:18 AM Because i think the shovel is treated as a pickaxe, so there is no (internal) behaviour for it ![]() RE: want to dig sand - darksun84 - 05-12-2017 08:50 AM I managed to script the sand diggin with a shovel with the appropriate use of the mining skill, it seems to work. Code: [REGIONRESOURCE mr_sand] RE: want to dig sand - WRWR - 05-12-2017 10:24 AM using almost same script for it... RE: want to dig sand - golfin - 05-05-2019 02:37 AM I played a little and modified your script. DarkSun. It's not done, but works partially outside the hardcod sphere settings on all the terrain I choose. That's what I wanted. Here's a sample. PHP Code: //**************************************************************************** |