Author: Larkin D'Ischai This little script illustrates how to make a button that toggles the smoking of skullcap for the aura of rebounding. It doesn't matter if the 'anti-weapon field' defense is already in your list of active defenses or not, since this toggles that for you. The idea can be repeated for any or all defenses that you want to toggle like this, with the obvious changes to which defenses and queues you are altering. NOTE: Do -NOT- alter the BasicDefs and FullDefs variables trying to change your active defenses. They are list that get copied into Defs when you first def up, so Defs always contains your list of 'active' defenses. #CLASS {ACPcustom|Aura} #BUTTON 0 {Aura} {#if (@Auto.Aura) {acp_offaura} {acp_onaura}} {} {} {} {} {} {} {} {} {} {} {} {71} {} {} {} "" {Explore} {Toggle the anti-weapon field defense (aura of rebounding).} {Aura} {2} #ALIAS acp_onaura {#addkey Auto Aura 1;#noop %btncol(Aura, green, white);acp_info Auto Aura ON;#additem Defs.free {anti-weapon field};#if (!%iskey(@Defenses, anti-weapon field)) {#addkey LostDefenses {anti-weapon field} 1};acp_smokecure} #ALIAS acp_offaura {#delkey Auto Aura;#noop %btncol(Aura, red, gray);acp_info Auto Aura OFF;#delitem Defs.free {anti-weapon field};#delkey LostDefenses {anti-weapon field};#delitem PipesToSmoke skullcap} #CLASS 0