Im not very sure about this, but im looking for a way to use the value inside a variable and not the relation with a variable in a set...
I have this code
<<for $MochilaE to 0;...$MochilaE++>>
...
<<click>>
<<set $MochilaEquipado[3]=$MochilaE>>
<</click>>
<</for>>
But as when i click, the variable have change, the set is wrong and i think i need the for, the click and the set.
For more information, im trying to list an inventory and when click an item, update de value of an array of equiped items. Thats the reason i need a for ( to show all items ), click ( to interact with the player ) and ( set to update ).
I hear ideas guys, im very obfuscated by now -.-
Comments
Try replacing everything between the <<click>> and <</click>> (including them as well) in your example with the following:
Solved, but with a small problem...
As you can see in the image, a line appears between two atributes or habilities... i have try to insert in the print code a \ or a nobr but seems not work
The solution for this error, if someone is interested on it, is that the for need to be like this
</tr>
<<for>><<print...>><</for>>
</tr>
without any line inside the for
Try this: (note the \ after each opening <<for>>)
You also don't need to <<print>> the entire chunk of markup. For example, you could write the $Atributos loop a bit more naturally thus: