S
senseihitokiri
Guest
I might be hitting a mental block here but can someone help me out with this.
I'm trying to loop through accessory slots to assign items into them. I create a string that turns into acc1, acc2, and acc3, but I can't figure out how to get the slot variable from it. I've been trying stuff like
string slot_string;
slot_string = acc1;
slot A;
A = $slot[slot_string];
and that doesn't work, so I've been just randomly bashing code out that doesn't quite work... well work at all. Does anyone have a recommendation. I'm going to take a break from this "tiny" project that was originally only 30 lines and is now over 600 lol
Oh, edit... BTW I did have " around acc1.
I'm trying to loop through accessory slots to assign items into them. I create a string that turns into acc1, acc2, and acc3, but I can't figure out how to get the slot variable from it. I've been trying stuff like
string slot_string;
slot_string = acc1;
slot A;
A = $slot[slot_string];
and that doesn't work, so I've been just randomly bashing code out that doesn't quite work... well work at all. Does anyone have a recommendation. I'm going to take a break from this "tiny" project that was originally only 30 lines and is now over 600 lol
Oh, edit... BTW I did have " around acc1.