D
danzibr
Guest
I'm storing player stats in an array using macros. Like PC0 has the value 0, PC1 has the value 1 and so on, then like NAME has the value 10, CLASS has the value 11, and so on.
Now, I'm trying to set the default names as '??????'. I *could* just type
But this seems like the perfect time to use a for loop. I've tried various things like
But... that doesn't work. I tried other things, like throwing string(<stuff>) and 'PC'+i in there, but I can't get it to work. I know it's super basic, but for the life of me I can't get it to work (sorry, I'm still a super novice).
Thanks!
Now, I'm trying to set the default names as '??????'. I *could* just type
Code:
pc_stats[PC0,NAME] = '??????';
pc_stats[PC1,NAME] = '??????';
pc_stats[PC2,NAME] = '??????';
pc_stats[PC3,NAME] = '??????';
pc_stats[PC4,NAME] = '??????';
Code:
var i;
for (i=0;i<5;i++) pc_stats[PC+i,NAME] = '??????';
Thanks!