Returns a correct item value in the data


Author
Message
Olivia Ying
Olivia Ying
Associate Member (115 reputation)Associate Member (115 reputation)Associate Member (115 reputation)Associate Member (115 reputation)Associate Member (115 reputation)Associate Member (115 reputation)Associate Member (115 reputation)Associate Member (115 reputation)Associate Member (115 reputation)
Group: Forum Members
Posts: 10, Visits: 20
Hi Dave,

Hope you're doing well!

The thing is, I set a series of possible values for a particular item, for example:
<item player1group>
/ 1 = "group1"
/ 2 = "group2"

</item>

and then I use groupid to determine the value of this item, like:
<text player1group>
/ items = player1group
/ select = script.groupid
/ position = (25%, 50%)
/ color = blue
/ halign = center
/ valign = top
/ erase = false
</text>

Ultimately I want to return this final result in summarydata (i.e., whether group1 or 2 ended up being displayed based on my input). 

The original version of item has only one value and is recorded as "item.playergroup.1". I tried to change it to "text.playergroup.1" and "text.playergroup.(script.groupid)" but neither works , I wonder if you have any good suggestions?

Thank you so much sincerely!

Best


Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 12K, Visits: 98K
Olivia Ying - 4/9/2024
Hi Dave,

Hope you're doing well!

The thing is, I set a series of possible values for a particular item, for example:
<item player1group>
/ 1 = "group1"
/ 2 = "group2"

</item>

and then I use groupid to determine the value of this item, like:
<text player1group>
/ items = player1group
/ select = script.groupid
/ position = (25%, 50%)
/ color = blue
/ halign = center
/ valign = top
/ erase = false
</text>

Ultimately I want to return this final result in summarydata (i.e., whether group1 or 2 ended up being displayed based on my input). 

The original version of item has only one value and is recorded as "item.playergroup.1". I tried to change it to "text.playergroup.1" and "text.playergroup.(script.groupid)" but neither works , I wonder if you have any good suggestions?

Thank you so much sincerely!

Best


text.player1group.item(script.groupid) or item.player1group.item(script.groupid), but why don't you simply log the group id (script,groupid), which tells you exactly the same thing?

Olivia Ying
Olivia Ying
Associate Member (115 reputation)Associate Member (115 reputation)Associate Member (115 reputation)Associate Member (115 reputation)Associate Member (115 reputation)Associate Member (115 reputation)Associate Member (115 reputation)Associate Member (115 reputation)Associate Member (115 reputation)
Group: Forum Members
Posts: 10, Visits: 20
Dave - 4/9/2024
Olivia Ying - 4/9/2024
Hi Dave,

Hope you're doing well!

The thing is, I set a series of possible values for a particular item, for example:
<item player1group>
/ 1 = "group1"
/ 2 = "group2"

</item>

and then I use groupid to determine the value of this item, like:
<text player1group>
/ items = player1group
/ select = script.groupid
/ position = (25%, 50%)
/ color = blue
/ halign = center
/ valign = top
/ erase = false
</text>

Ultimately I want to return this final result in summarydata (i.e., whether group1 or 2 ended up being displayed based on my input). 

The original version of item has only one value and is recorded as "item.playergroup.1". I tried to change it to "text.playergroup.1" and "text.playergroup.(script.groupid)" but neither works , I wonder if you have any good suggestions?

Thank you so much sincerely!

Best


text.player1group.item(script.groupid) or item.player1group.item(script.groupid), but why don't you simply log the group id (script,groupid), which tells you exactly the same thing?

Thank you so much, Dave! It's just an example, and the actual code is a bit more complex so it can't be just recorded as groupid, that's why I came for help.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search