equip( to_item( get_property( "last_hat" )0);
I'm saving my current hat in prefs with
and would like to re-equip it later but can't get the syntax right. I've tried all sorts of permutations, includingPHP:set_property("last_hat", equipped_item($slot[hat]));
Thanks for your help.PHP:equip ($item [get_property("last_hat")]);
set_property("last_hat", equipped_item($slot[hat]).to_string());
equip (get_property("last_hat").to_item());
Also, the set_property works without turning equipped_item into a string?