Hello again Yal, happy July :) Here's some things I've been having trouble understanding lately:
How to use properly reference a AMP (friend and foe) within obj_battlecontrol. I'm working on shield system, (where mons have to break through a shield before being able to attack the enemies HP)
I'm trying to do a check on a new stat (shieldHP) and if the AMP's shieldHP stat is >1, a visual shield object will appear in front of a mon after it's summoned.
My problem is simply trying to understand how you have been using the amp.id variable in obj_battlecontrol do to similar stat checks. I've tried a few things and placing the code in a few spots. I don't think I quite get what variable to place in front of it (with the period separating amp_id.
Here's the current code I'm trying in bcontrolstate_ACTIONSELECT_STEP 1 (around line 320)
var getshld = monster_get_maxshld_hp(action_monster.amp_id);
if(getshld > 1) {
instance_create_depth(cx,cy,d_player + -100,obj_battlemonster_sheild)}
the error messages basically keep saying the xyz.amp_id variable is undefined. Any help understanding this is greatly appreciated as always :)