Posted by: Salk
« on: July 06, 2022, 09:34:56 AM »I'm not able to test at the moment but I think what we need to completely rewrite ubscar_classic.d swapping this:
with this:
Code: [Select]
REPLACE_STATE_TRIGGER %tutu_var%ARKION 6 ~Global("HelpArkion","GLOBAL",1)~
APPEND %tutu_var%ARKION
IF WEIGHT #0 ~Global("HelpArkion","GLOBAL",0)
PartyHasItem("%tutu_scriptbg%MISC79")~ THEN BEGIN EitherBody
SAY @0
IF ~PartyHasItem("%tutu_scriptbg%MISC79")~ THEN DO ~SetGlobal("HelpArkion","GLOBAL",1) TakePartyItem("%tutu_scriptbg%MISC79") GivePartyGold(250) AddexperienceParty(1800)~ EXIT
END
IF WEIGHT #0 ~Global("HelpArkion","GLOBAL",0)
PartyHasItem("UBFEBODY")~ THEN BEGIN NobleBody
SAY @16
IF ~~ THEN EXIT
END
END
with this:
Code: [Select]
/* ARKION
- all eligible corpses are taken from the Players by Arkion */
REPLACE_STATE_TRIGGER %tutu_var%ARKION 3 ~Global("HelpArkion","GLOBAL",0) OR(2) NumItemsParty("MISC79",1) NumItemsParty("MISC80",1)~
REPLACE_STATE_TRIGGER %tutu_var%ARKION 4 ~Global("HelpArkion","GLOBAL",0) OR(2) NumItemsPartyGT("MISC79",0) NumItemsPartyGT("MISC80",0) OR(2) NumItemsPartyGT("MISC79",1) NumItemsPartyGT("MISC80",0) OR(2) NumItemsPartyGT("MISC80",1) NumItemsPartyGT("MISC79",0)~
REPLACE_STATE_TRIGGER %tutu_var%ARKION 6 ~Global("HelpArkion","GLOBAL",1)~
REPLACE_TRANS_ACTION %tutu_var%ARKION BEGIN 3 END BEGIN END ~TakePartyItem("MISC80")~ ~TakePartyItem("MISC79") TakePartyItem("MISC80")~
REPLACE_TRANS_ACTION %tutu_var%ARKION BEGIN 4 END BEGIN END ~TakePartyItemAll("MISC80")~ ~TakePartyItemAll("MISC79") TakePartyItemAll("MISC80")~
APPEND %tutu_var%ARKION
IF WEIGHT #0 ~Global("HelpArkion","GLOBAL",0)
PartyHasItem("UBFEBODY")~ THEN BEGIN NobleBody
SAY @16
IF ~~ THEN EXIT
END
END