Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Compare and addictions 2 tag value
Author Message
Claus
Apprentice
*

Posts: 23
Likes Given: 3
Likes Received: 0 in 0 posts
Joined: Jan 2014
Reputation: 0



Post: #1
Compare and addictions 2 tag value
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)
05-16-2020 01:31 AM
Find all posts by this user Like Post Quote this message in a reply
Darkyhood
Apprentice
*

Posts: 36
Likes Given: 2
Likes Received: 3 in 3 posts
Joined: Mar 2012
Reputation: 0



Post: #2
RE: Compare and addictions 2 tag value
Coruja already gave solution on this post.
05-17-2020 01:02 AM
Find all posts by this user Like Post Quote this message in a reply
Claus
Apprentice
*

Posts: 23
Likes Given: 3
Likes Received: 0 in 0 posts
Joined: Jan 2014
Reputation: 0



Post: #3
RE: Compare and addictions 2 tag value
(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?
05-17-2020 04:16 AM
Find all posts by this user Like Post Quote this message in a reply
Coruja
Sphere Developer
*****

Posts: 985
Likes Given: 5
Likes Received: 225 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #4
RE: Compare and addictions 2 tag value
Try take a look at this other post
https://forum.spherecommunity.net/Thread...7#pid29317
05-21-2020 01:39 PM
Find all posts by this user Like Post Quote this message in a reply
Claus
Apprentice
*

Posts: 23
Likes Given: 3
Likes Received: 0 in 0 posts
Joined: Jan 2014
Reputation: 0



Post: #5
RE: Compare and addictions 2 tag value
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
05-23-2020 08:03 PM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,682
Likes Given: 243
Likes Received: 161 in 150 posts
Joined: Mar 2012
Reputation: 34



Post: #6
RE: Compare and addictions 2 tag value
store their uid in this way

ref1= player1 uid
ref2 = player2 uid

then
ref1.tag.xxx + ref2.tag.xxx
05-24-2020 04:03 AM
Find all posts by this user Like Post Quote this message in a reply
Coruja
Sphere Developer
*****

Posts: 985
Likes Given: 5
Likes Received: 225 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #7
RE: Compare and addictions 2 tag value
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
05-25-2020 09:27 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

This forum uses Lukasz Tkacz MyBB addons.