Author Topic: next/incremental arguments?  (Read 4084 times)

0 Members and 1 Guest are viewing this topic.

Offline Slasher

  • 29
Re: next/incremental arguments?
Create a bunch of variables, then look in the mission file.  The index that FRED assigns them will be the index by which they can be accessed in variable-array-get/set.  (Note that FRED will alphabetize them before saving the mission.)

Could this information be added to variable-array-get/set's FRED help?  I guess since FRED lists the variables in alphabetic order in the editor it might be a "duh" moment for most people, but I never realized that's how they would be assigned indices too.

Nevermimd, answered my second question. :)

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: next/incremental arguments?
I can do this very easily.....

.....but only if I use my experimental SEXP-based collection classes build. I really should go back and get that code working properly!
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline Goober5000

  • HLP Loremaster
  • 214
    • Goober5000 Productions
Re: next/incremental arguments?
It turns out that one of my assumptions is wrong: there isn't a way to access a variable array string value. :sigh:  I'll have to make a version of variable-array-get that will do this.

This is now done.  The sexps copy-variable-from-index and copy-variable-between-indexes are now implemented, tested, and in SVN.