Classes and Objects in Choicescript


#1

Is there a way to create classes and objects in Choicescript, perhaps using the *script command?


#2

No, though you can kind of fake object behaviour.
What exactly are you wanting to do?

General Example:

*temp player_name_1
*temp player_hp_1
*temp player_mp_1

*temp player_id 1
*gosub get_player_attributes
${cur_player_name} has ${cur_player_hp} HP and ${cur_player_mp} MP.
*finish

*label get_player_attributes
*set cur_player_name player_name[player_id]
*set cur_player_hp player_hp[player_id]
*set cur_player_mp player_mp[player_id]
*return