playMaker

Author Topic: ArrayMaker - Add two Array List indexes to create a 3rd Totaled Array List[SOLVE  (Read 204 times)

nuxvomo

  • Playmaker Newbie
  • *
  • Posts: 9
  • Indy based indie producer of Nights of Yore
    • View Profile
    • Nights of Yore
I'm using ArrayMaker and I want to add the indexes of one Array List Proxy to the corresponding indexes of another Array List Proxy and show each corresponding index Total in a 3rd Array List Proxy.

Is there an easy or better way to do this that I'm just not seeing?

Thanks!
Jim
« Last Edit: April 02, 2020, 11:24:30 PM by jeanfabre »
"I do not seek salvation in the next life, I merely strive to be true to my station in this life."

Producer of Nights of Yore, a streamlined tabletop role-playing game
http://nightsofyore.com/

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15212
  • Official Playmaker Support
    • View Profile
Hi,

 use ArrayListConcat to achieve this.

Bye,

 Jean

nuxvomo

  • Playmaker Newbie
  • *
  • Posts: 9
  • Indy based indie producer of Nights of Yore
    • View Profile
    • Nights of Yore
ArrayListConcact just adds the indexes of array 1 to the end of array 2. I need to sum the corresponding indexes of array 1 and 2 to a 3rd array.
I.E. (array 1, index 0) + (array 2, index 0) sum to (array 3, index 0) an do this for all corresponding indexes.
I hope that's more clear.
« Last Edit: March 30, 2020, 03:26:12 PM by nuxvomo »
"I do not seek salvation in the next life, I merely strive to be true to my station in this life."

Producer of Nights of Yore, a streamlined tabletop role-playing game
http://nightsofyore.com/

sebaslive

  • Hero Member
  • *****
  • Posts: 564
    • View Profile
    • Frame Tale Studios
Hey, You can do an array get next to get the first index, move to a new state and array get next on the second array, add those two temporary numbers from both arrays and add to a new array then loop back to the first state.
All my VR games use Steam VR Playmaker Toolkit: http://u3d.as/u20
And Oculus Touch Playmaker Toolkit: http://u3d.as/QT5


Follow me @sebasRez

nuxvomo

  • Playmaker Newbie
  • *
  • Posts: 9
  • Indy based indie producer of Nights of Yore
    • View Profile
    • Nights of Yore
@sebaslive
OK, thanks!
That's what I have in place currently.
Just wanted to make sure there wasn't some action to make this cleaner.
I'm building a new version of an app and just trying to clean up wherever I can.
Thank you for your help and for ArrayMaker!
"I do not seek salvation in the next life, I merely strive to be true to my station in this life."

Producer of Nights of Yore, a streamlined tabletop role-playing game
http://nightsofyore.com/