Author Topic: Simulating dynamic arrays  (Read 371 times)

Legacy_Kato -

  • Hero Member
  • *****
  • Posts: 747
  • Karma: +0/-0
Simulating dynamic arrays
« on: December 01, 2014, 05:16:08 pm »


               

Hi there,


 


I'm wondering if it's feasible in nwscript, for I need to loop over several variables while removing one on each iteration. Sorry if this has been asked before, thanks for any insight


 


Kato 



               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Simulating dynamic arrays
« Reply #1 on: December 01, 2014, 05:39:21 pm »


               

I invented a pseudo-list structure. As long as you can replace the array with list (and thats most of the time unless you need 2D,3D array) it suitable solution.


 


LINK



               
               

               
            

Legacy_Kato -

  • Hero Member
  • *****
  • Posts: 747
  • Karma: +0/-0
Simulating dynamic arrays
« Reply #2 on: December 01, 2014, 05:42:53 pm »


               

Hey Shadooow '<img'> That was fast lol, tyvm for sharing this!


 


Kato