![]() |
Compare and addictions 2 tag value - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: Compare and addictions 2 tag value (/Thread-Compare-and-addictions-2-tag-value) |
Compare and addictions 2 tag value - Claus - 05-16-2020 01:31 AM Hello, i'm wondering if is possibile to addiction 2 tag value from two player. I have my build in exp system in which i use tag.levelup for store player level. Now i wan't to create personal party system in which the system takes the level from the party members and divides for the numer of them (es a player level 8 and 1 level 4 makes a party and the average level is 6) But i don't know how to add player1.tag.levelup + player 2.tag.levelup i always have 012ff5.tag.levelup + 49aa11.tag.levelup (their id, i presume) (sorry for eng, i don't speak it very often) RE: Compare and addictions 2 tag value - Darkyhood - 05-17-2020 01:02 AM Coruja already gave solution on this post. RE: Compare and addictions 2 tag value - Claus - 05-17-2020 04:16 AM (05-17-2020 01:02 AM)Darkyhood Wrote: Coruja already gave solution on this post. the question remains. If I have 2 tag values that I want to add in a script, how can I "call" them? trying to use uid.tag.levelup (or any other tag at this point) doesn't work. There's a way? RE: Compare and addictions 2 tag value - Coruja - 05-21-2020 01:39 PM Try take a look at this other post https://forum.spherecommunity.net/Thread-Multiplayer-level-system-implementation?pid=29317#pid29317 RE: Compare and addictions 2 tag value - Claus - 05-23-2020 08:03 PM ok I rephrase, evidently I have not been very clear, I apologize. Can I add two values of two tags referring to two different characters? es: player1.tag.example + player2.tag.example = number? beyond what I will have to do with it RE: Compare and addictions 2 tag value - darksun84 - 05-24-2020 04:03 AM store their uid in this way ref1= player1 uid ref2 = player2 uid then ref1.tag.xxx + ref2.tag.xxx RE: Compare and addictions 2 tag value - Coruja - 05-25-2020 09:27 AM You can do this using eval: <eval a + b> Assuming your have a char as SRC and other char as ARGO you can use <eval <SRC.TAG0.Num1>+<ARGO.TAG0.Num2>> or <eval <UID.012345.TAG0.Num1>+<UID.543210.TAG0.Num2>> or <eval <TAG0.Num1>+<TAG0.Num2>> etc |