![]() |
experience points for finding a site of ore - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: experience points for finding a site of ore (/Thread-experience-points-for-finding-a-site-of-ore) Pages: 1 2 |
experience points for finding a site of ore - golfin - 02-19-2018 04:42 AM Hello, what's going on? For example, when a character finds copper - he kicks the earth and the system randomly allocates some ore - to receive a certain amount of experience for this first mining event. I'm going to use the i_worldgem_bit subject by BaseId in ON=@Success, where it is specified in More1 what is being exploited. But it does not work for me. I attach an example script. For any advice, thank you. PHP Code: VERSION=0.56d RE: experience points for finding a site of ore - darksun84 - 02-19-2018 06:12 AM You have to use the @RegionResourceGather character trigger Code: 04-12-2013, XuN see also: https://wiki.spherecommunity.net/index.php?title=@ResourceGather RE: experience points for finding a site of ore - golfin - 02-19-2018 03:32 PM Trigger @RegionResourceGather - I'm not sure, but it will give tag.exp at every mining success. Not at first try. It is so? Well, I got something wrong. Maybe the wrong type of file I'm putting in. When I try this trigger in sphere_region.scp or sphere_skills.scp, it does not do anything to me. RE: experience points for finding a site of ore - darksun84 - 02-19-2018 07:26 PM @RegionResourceGather is a character's trigger, so you need to create an event or add it to an already existing event ( or place it under SKILLCLASS 0 in sphere_skill.scp at the bottom of the file) Example: Code: [EVENTS e_player_resources] Otherwise, i found that you can get the ore gembit in this way if you want to use the Skill Triggers Code: Skill with SKF_GATHER: @(Skill)Start and @(Skill)Stroke now use ACT as a reference for the worldgem. RE: experience points for finding a site of ore - golfin - 02-20-2018 03:25 AM I think I have a badly written code. I'll put it in an event, or SKILLCLASS 0, or @ (Skill) Start and @ (Skill) Stroke - it does not work. But it also does not make mistakes in the Console. I used this code: PHP Code: If (<SRC.FINDTYPE.t_rock>)// Here I do not know whether to look for a type t_rock or object <BaseId>i_worldgem_bit Thank you darksun84 for taking care of me. RE: experience points for finding a site of ore - darksun84 - 02-20-2018 04:44 AM Just made a test and it seems that Code: Skill with SKF_GATHER: @(Skill)Start and @(Skill)Stroke now use ACT as a reference for the worldgem. is wrong or it was removed, so you need to use @RegionResourceGather Place it under SKILLCLASS 0 or in a player event Example Code: ON=@RegionResourceGather When a player mines successfully, it enters in the RegionResourceGather trigger (it's called after @skillsuccess/@success) Then it checks if the resource gathered is a "mineral one" (t_rock) and it checks if the player has already attempted to mine this gembit (tag.uidOre != <argo) If the check are ok, the gembit uid is stored on a player tag. Of course it's not a good check because the player can switch between spots and get additional experiences ![]() RE: experience points for finding a site of ore - golfin - 02-20-2018 05:40 AM Thank you, it works exactly the way I planned. I'm learning to script from the beginning, for free shard I've only created with mul files. Graphics and so on. Well, I plan to get points of experience not only from combat activities, but mainly from production. That is why I consider it a good job. Ultima Online is transformed into another Dragon Dungeon system, originally a board game with tin figure, dice and paper. But Ultima Online, with its graphics, is the most similar to the game. That's why I think it's a good job. Getting experience points is the basis. Thank you ![]() RE: experience points for finding a site of ore - darksun84 - 02-20-2018 05:47 AM If you check in the sphere.ini there is a built-in experience system. RE: experience points for finding a site of ore - golfin - 02-21-2018 01:13 AM I know about it. However, it will not be enough for my purposes. it's built on Ultima Online and I did not really understand how craft works. However, I do not want to use the experience only for craft and combat, but also for other events that UO does not solve. But, I'm going to study it like the whole sphere system. I'm working with this system, I do not want to go to RunUo or ServUo. I can not speak English, the translation is made using google translator RE: experience points for finding a site of ore - golfin - 02-26-2018 03:37 AM I have a little bit of fun with it and adjusted the experience gaining points for finding a certain amount of ore in the skill range. For example, for finding clay, the player receives a 1 point experience from a skill level of 0.0 to 10.0. When the clay finds out with a higher skill above 10.0%, the point for experience does not get. And so I create it for all kinds of ores. PHP Code: [EVENTS e_all_player] ********************************************** PHP Code: // Amount of experience to raise to the next level Then I have a question. By default, the sphere has an experience system. Can the LevelNextAt entry be adjusted so that for each level there is another value needed for a transfer? And because I do different professions and races, another value for a profession? Example: A third-level magician will need 2456 points of experience, but a third-level warrior 3250. Both professions will have a higher value when moving to the fifth level. Code: Level Mage Warior If I create my own experience system, it is possible. But I wonder if it can be built into the default system. |