Affect all player in the map.

How to affect a variable (playeharts +=20) on all player in the map.

(For heal).

Thanks

heart bomb

Well you can’t directly adjust the health of every other player on the map, so you have to make it so they ‘heal themselves’.

You could use the command hurt to heal other players from yourself, with a negative number, but this wouldn’t affect players with AP less than 40 and only affects players within 8 tiles of the ‘caster’.

If you wanted everyone everyone in the level to be healed to full health upon entering…
if(playerenters) playerhearts +=20;

Otherwise, be more specific ffs.

put something in the system

if(created){
levelheal();
}

function levelheal(){
if(startswith(#L,ow_)){
playerhearts += 20;
}
}

should heal the whole map me thinks.

___Merged doublepost__________________

But of course you would still need some sort of trigger