![]() |
Minimal Lumberjacking - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: General Help (/Forum-General-Help) +--- Thread: Minimal Lumberjacking (/Thread-Minimal-Lumberjacking) Pages: 1 2 |
RE: Minimal Lumberjacking - Rostok - 03-03-2017 03:14 AM (03-03-2017 02:17 AM)darksun84 Wrote: After we change the amount, this happens: How did you change it? In which trigger? I have sources(scp) of old server(Sphere55) and there <ARGO.AMOUNT> *=2 in trigger @ResourceFound is working fine. But with Sphere 56d it fails =(( RE: Minimal Lumberjacking - darksun84 - 03-03-2017 04:05 AM In the @ResourceFound trigger, Code: ON=@ResourceFound Anyway the point is that the worldgem bit aren't actually using the amount property. The amount displayed is different. EDIT: Did some test, <amount> must be used instead of <argo.amount> and the correct trigger is @ResourceTest Code: ON=@ResourceTest RE: Minimal Lumberjacking - Rostok - 03-03-2017 06:54 AM Are you sure about @ResourceTest ? Thank you, it works with @Resourcetest, but : I have many RegionResources at point, so every resource-test(creaetion) some function will be executed for every regionresource... I really don't want to test for luck-chance some resource, which in 90% cases will not be created at all... I believe there is some another way to change amount value after worldgembit creation. ON=@RegionResourceFound (Char) <ARGO.AMOUNT> failed , <AMOUNT> failed ON=@ResourceTest SRC.SYSMESSAGE You got <AMOUNT> logs before luck! AMOUNT = <EVAL <AMOUNT> + <SRC.GETLUCK>> As i can see - <AMOUNT> in this case changes AMOUNT of all regionresources with this type . So next time i chop willow, there will be raised amount, not default... RE: Minimal Lumberjacking - darksun84 - 03-03-2017 07:46 AM Yes you are right, i think there is no way actually to override the amount without messing with the global amount of the regionresource. What about just adding the bonus resource with a newloot/newitem directly to the player. RE: Minimal Lumberjacking - Rostok - 03-03-2017 06:10 PM (03-03-2017 07:46 AM)darksun84 Wrote: Yes you are right, i think there is no way actually to override the amount without messing with the global amount of the regionresource. How do you think - is it a bug? Because in Sphere 55i there was a way to change this amount normally in @ResourceFound - <ARGO.AMOUNT> ... (03-03-2017 07:46 AM)darksun84 Wrote: What about just adding the bonus resource with a newloot/newitem directly to the player. If no chance to do that another way, then i will choose this solution. I guess i can do that with SERV.NEW <ARGO.REAP> / NEW.AMOUNT = RANDOM(luck) or smth like that... Thank You very much! |