Código BCC:
[origem=getSelected()]
[switchToken(origem)]
[h:input(
"atipo|Nada,Couro Leve,Couro Rigido,Cota de Malha Parcial,Cota de Malha Completa,Couraca Metalica Parcial|Tipo de Armadura|LIST|SELECT=0 VALUE=STRING",
"absmag|0|Bonus Magico Absorcao","defmag|0|Bonus Magico Defesa",
"etipo|Nada,Escudo Pequeno,Escudo Grande|Tipo de Escudo|LIST|SELECT=0 VALUE=STRING",
"absmage|0|Bonus Magico Absorcao","defmage|0|Bonus Magico Defesa",
"eltipo|Nada,Elmo Aberto,Elmo Fechado|Tipo de Elmo|LIST|SELECT=0 VALUE=STRING",
"absmagel|0|Bonus Magico Absorcao")]
[switch(atipo),code:
case "Nada":{
[TipoDefesa="L"]
[ArmorAbsMax=0]
[ArmorAbsMag=absmag]
[ArmorDefN=0]
[ArmorDefM=defmag]
};
case "Couro Leve":{
[TipoDefesa="L"]
[ArmorAbsMax=3]
[ArmorAbsMag=absmag]
[ArmorDefN=1]
[ArmorDefM=defmag]
};
case "Couro Rigido":{
[TipoDefesa="M"]
[ArmorAbsMax=6]
[ArmorAbsMag=absmag]
[ArmorDefN=0]
[ArmorDefM=defmag]
};
case "Cota de Malha Parcial":{
[TipoDefesa="M"]
[ArmorAbsMax=9]
[ArmorAbsMag=absmag]
[ArmorDefN=1]
[ArmorDefM=defmag]
};
case "Cota de Malha Completa":{
[TipoDefesa="P"]
[ArmorAbsMax=12]
[ArmorAbsMag=absmag]
[ArmorDefN=0]
[ArmorDefM=defmag]
};
case "Couraca Metalica Parcial":{
[TipoDefesa="P"]
[ArmorAbsMax=15]
[ArmorAbsMag=absmag]
[ArmorDefN=1]
[ArmorDefM=defmag]
}]
[switch(etipo),code:
case "Nada":{
[EscudoAbsMax=0]
[EscudoAbsMag=absmage]
[EscudoDefN=0]
[EscudoDefM=defmage]
};
case "Escudo Pequeno":{
[EscudoAbsMax=3]
[EscudoAbsMag=absmage]
[EscudoDefN=1]
[EscudoDefM=defmage]
};
case "Escudo Grande":{
[EscudoAbsMax=5]
[EscudoAbsMag=absmage]
[EscudoDefN=1]
[EscudoDefM=defmage]
}]
[switch(eltipo),code:
case "Nada":{
[ElmoAbsMax=0]
[ElmoAbsMag=absmagel]
};
case "Elmo Aberto":{
[ElmoAbsMax=1]
[ElmoAbsMag=absmagel]
};
case "Elmo Fechado":{
[ElmoAbsMax=2]
[ElmoAbsMag=absmagel]
}]