Skip to content

Instantly share code, notes, and snippets.

@secretdataz
Created August 15, 2016 12:11
Show Gist options
  • Save secretdataz/dfd7d829fe8469dfcba5fcab036b9f70 to your computer and use it in GitHub Desktop.
Save secretdataz/dfd7d829fe8469dfcba5fcab036b9f70 to your computer and use it in GitHub Desktop.
izlude,124,148,6 script Option Adder 4_F_01,{
for(.@i = 0; .@i < getarraysize(.parts); ++.@i){
.@name$ = getitemname(getequipid(.parts[.@i]));
.@menu$ = .@menu$ + (.@name$ == "null" ? "" : .@name$) + ":";
}
.@pos = select(.@menu$)-1;
dispbottom "Input Index (0-4):";
input .@index;
dispbottom "Input ID:";
input .@id;
dispbottom "Input Val:";
input .@val;
dispbottom "Input Param:";
input .@param;
setrandomoption(.parts[.@pos],.@index,.@id,.@val,.@param);
end;
OnInit:
setarray .parts,EQI_HEAD_LOW,EQI_HEAD_MID,EQI_HEAD_TOP,EQI_ARMOR,
EQI_HAND_L,EQI_HAND_R,EQI_GARMENT,EQI_SHOES,EQI_ACC_L,EQI_ACC_R,EQI_COSTUME_HEAD_TOP,EQI_COSTUME_HEAD_MID,EQI_COSTUME_HEAD_LOW,EQI_COSTUME_GARMENT;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment