Fredas Posted April 3, 2014 Posted April 3, 2014 Looking for ways to speed up some scripts. Say I have variables: Frog01blah, Frog02blah, Frog03blah, etc. They're not an array and there's nothing that can be done to change that. But of course the systematic naming potentially allows the same kind of functionality. Is there a way to access the variables as such? Something like: int Frogvalue = 2 Frogfinal = "Frog0"+FrogValue+"blah" Obviously that wouldn't work but it should illustrate what I'm after here.
karga Posted April 3, 2014 Posted April 3, 2014 Papyrus isn't the language I'm most familiar with, but I'm about 99% sure you can't do that - and if you could, it'd involve some -very- creative workarounds, and a hell of a lot more work than merely copy-pasting variable names.
b3lisario Posted April 3, 2014 Posted April 3, 2014 They're not an array and there's nothing that can be done to change thatWhy? Are they from another mod?
Fredas Posted April 3, 2014 Author Posted April 3, 2014 They're not an array and there's nothing that can be done to change thatWhy? Are they from another mod? An insightful guess. In fact they're part of a mod that I'm modifying, and in the interest of transparency, I'm avoiding unneeded modifications. Specifically they're a series of individual message and/or variable forms that just happen to be named in sequences as described above.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.