playMaker

Author Topic: Arrays  (Read 1829 times)

greg

  • Junior Playmaker
  • **
  • Posts: 68
Arrays
« on: March 04, 2013, 01:27:43 PM »
I'm creating sets of rooms at runtime, then saving them in an array. The index of the item is the "roomset" and the value "int" is the number of rooms in the set.

I want to get this information at runtime, but to do any kind of comparison or logic on an array item, i need to store it in a variable. The whole reason i was using an array is because i can't create variables at runtime in playmaker (or can i?)..

What do i do here?

(basically i want to create a list of information at runtime, then perform logic on certain items in the list)

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Arrays
« Reply #1 on: May 15, 2013, 12:01:09 AM »
Hi,

 Are you speaking about Network rooms here?

Hashtable is a good way to maintin runtime based variables indeed, so you are on the right path here.

 you will compare objects within arrays by putting them inside a placeholder variable and then perform actions on them. You can't not compare two array item if they are not first extracted into a fsm var.

 What kind of comparision do you want to do?

bye,

 Jean