noob type help

Blitz3D Forums/Blitz3D Beginners Area/noob type help

im trying to change 1 of 4 picked types fields ,but im new to types and dont have a clue how to do this. can someone please show me how this is done. thanks.
(i know the code below wouldn't work i just wanted to show what i mean)

dim character (4)

type character
field life
end type

If CameraPick(cam,MouseX(),MouseY()) = character(4) Then
If MouseHit(1) Then

character\life = character\life - 2
EndIf
EndIf