It looks like you're new here. If you want to get involved, click one of these buttons!
@color:red;HP@@] <</if>> <<click "(Look at)">> <<set $invEquipScreenItem = $ConsumableItemsDetails[$i].name>> <<set $invEquipScreenAction = "lookat">> <<goto invEquipScreen>> <</click>> <<if $ConsumableItemsDetails[$i].type == "food">> <<click "(Eat)">> <<set $invEquipScreenItem = $ConsumableItemsDetails[$i].name>> <<set $invEquipScreenAction = "consume">> <<goto invEquipScreen>> <</click>> <<elseif $ConsumableItemsDetails[$i].type == "drink">> <<click "(Drink)">> <<set $invEquipScreenItem = $ConsumableItemsDetails[$i].name>> <<set $invEquipScreenAction = "consume">> <<goto invEquipScreen>> <</click>> <</if>> <</nobr>> <</for>>
<<set $invEquipScreenItem = $ConsumableItemsDetails[$i].name>>At the first iteration the $i is equal to 0, and I'd like the created set macro use $ConsumableItemsDetails[0].name. Not the $i that's remaining after the entire loop, which is static for all the buttons and is equal to the latest item in the array.
Comments
I noted this down and will figure out a solution later.
Still, initial problems stand.
I thank you.