Isnt it easier to have like this:
global variable: class
On click WarriorIcon -> Set class to warrior
Go to layout Loading
On click MageIcon -> Set class to mage
Go to layout Loading
On click RangerIcon -> Set class to ranger
Go to layout Loading
On start of layout
sub Event - Compare class = warrior -> Create object playerwarrior at XY
sub Event - Compare class = mage -> Create object playermage at XY
sub Event - Compare class = ranger -> Create object playerranger at XY