Requesting code for "toggle" for a combo

GPC2 script programming for Titan Two. Code examples, questions, requests.

Requesting code for "toggle" for a combo

Postby dezert » Wed Nov 20, 2024 12:04 pm

Hey

I'm hoping someone can write a line of code so I can add it to this combo - just wanting the ability to turn it on and off on the fly.

Maybe something like hold "RT and LT" for one second to toggle the combo on and off? Thank you for the help in advance

Code: Select all
#pragma METAINFO("diablo-sorcerer", 1, 0, "<mad>")
 
#include <xb1.gph>
main {
    if(event_active(XB1_A)) {
        combo_run(AX);
    }
}
combo AX {
    set_val(XB1_A, 100);
    set_val(XB1_RB, 100);
    set_val(XB1_LT, 100);
    wait(60);
}
User avatar
dezert
First Sergeant
First Sergeant
 
Posts: 43
Joined: Sun Apr 03, 2016 3:44 am

Return to GPC2 Script Programming

Who is online

Users browsing this forum: No registered users and 36 guests

cron