Author Topic: Checkmark events  (Read 402 times)

I don't know if this is possible or not, but it would be insanely freaking useful for literally everything ever

Basically, I'd want it to have setCheckMarkQuota, addCheckMark, setCheckMarks and onQuotaReached

So basically it would be set up like this:

onActivate > Self > setCheckMarkQuota [2]

onActivate > Self > VCEifValue > [<var:pl:resourcez>] [==] [5] [2 2]

onVariableTrue > self > addCheckMark [1]

onActivate > Self > VCEifValue > [<var:pl:resourcex>] [==] [8] [4 4]

onVariableTrue > self > addCheckMark [1]

onActivate > self > VCEifValue > [<var:br:quota>] [>=] [ 2 ] [ 10 10 ]

onVariableFalse > self > setCheckMarks [ 0 ]

onQuotaReached > self > modVariable > player > resourcez [set] [ 0 ]

onQuotaReached > self > modVariable > player > resourcex [set] [ 0 ]

onQuotaReached > player > addItem [Bow]

onQuotaReached > self > setCheckMarks [ 0 ]

Your Quota would be how many check marks have to be met, onQuotaReached would be if that amount has been reached, and then maybe a variable for the brick's Quota for the added usefulness. The event up there would be a simple as nails crafting event for VCE

so basically

input>player>vce_modvariable[quota][set][0]
input>player>vce_ifvariable[resourcez][>=][5][2 2]
onvariabletrue>player>vce_modvariable[quota][add][1]
input>player>vce_ifvariable[resource][>=][8][4 4]
onvariabletrue>player>vce_modvariable[quota][add][1]
input>player>vce_ifvariable[quota][>=][2][6 8]
onvariabletrue>player>vce_modvariable[resourcez][subtract][5]
onvariabletrue>player>vce_modvariable[resourcex][subtract][8]
onvariabletrue>player>additem[bow]

?


might need a few delays, ie, slightly delayed when checking the quota variable
and you shouldn't need to reset the quota variable at the end if you always set it to 0 at the start