Destiny 2 Shader Auto-Delete

used to delete Multiple Shader items from Inventory (Destiny does not currently have a multiple delete function)
Version1
Authorxenologer
Publish DateThu, 14 Dec 2017 - 07:55
Last UpdateThu, 14 Dec 2017 - 07:55
Downloads286
RATE


0

0

Code: Select all
/* *
DESTINY 2 Shader Auto Delete
by xenologer
 
auto taps and holds Square until stick is moved
 
*Just put your Cursor over the Shader Stack and Hit SQUARE to auto-delete*
 
Controls:
Activate:  SQUARE
Switch Safe Mode: DPAD LEFT
Abort: CIRCLE, OR LEFT STICK
 
 
GREEN LED:
safe mode
only deletes up to LIMIT (default 50)
 
RED LED:
infinite mode
deletes repeatedly until interrupted
WARNING! will keep deleting the next stack of shaders as they scroll by.
 
 
*/

//deletion limit setting
define LIMIT =50;
 
//do not edit below this line
 
 
int enable;
int mode;
int count;
main {
 
    if(event_press(PS4_LEFT)){
        mode=!mode;
    }
 
    if(event_press(PS4_SQUARE)){
        enable=!enable;
    }
 
 
 
    //abort if move stick
    if(abs(get_val(PS4_LX))>10 || abs(get_val(PS4_LY))>10
        ||event_press(PS4_CIRCLE)
        ||(!mode && count>=LIMIT)
    ){
        enable=0;
        combo_stop(square);
        count=0;
    }
 
 
    if(enable){
        combo_run(square);
    }else
    LED(0,mode,!mode,0);
}
 
combo square{
    set_val(PS4_SQUARE,100);
    wait(1800);
    set_val(PS4_SQUARE,0);
    wait(100);
    count=count+1;
}
 
 
//blue,red,green,purple
function LED(a, b, c, d){
    set_led(0, a);
    set_led(1, b);
    set_led(2, c);
    set_led(3, d);
}