Code viewer
SS_CompareRiftPons
#Kismet
Kismet SquenceCondition that compares player's Rift Pons with a value.
/** * Dirty Code by SamiSha * * Copyright 2012-2015 Gears for Breakfast ApS. All Rights Reserved. */ class SS_CompareRiftPons extends SequenceCondition; var() int RiftValue<Tooltip=Amount of Rift Pons you want to compare with the current Rift Pons in the Bank.>; var int RiftBank; event Activated() { RiftBank = `GameManager.TreasureAmount; if(RiftBank <= RiftValue) OutputLinks[0].bHasImpulse = true; if(RiftBank > RiftValue) OutputLinks[1].bHasImpulse = true; if(RiftBank == RiftValue) OutputLinks[2].bHasImpulse = true; if(RiftBank < RiftValue) OutputLinks[3].bHasImpulse = true; if(RiftBank >= RiftValue) OutputLinks[4].bHasImpulse = true; } defaultproperties { ObjName="Compare Rift Pons" ObjCategory="Comparison" InputLinks(0)=(LinkDesc="In") OutputLinks(0)=(LinkDesc="Bank <= Value") OutputLinks(1)=(LinkDesc="Bank > Value") OutputLinks(2)=(LinkDesc="Bank == Value") OutputLinks(3)=(LinkDesc="Bank < Value") OutputLinks(4)=(LinkDesc="Bank >= Value") VariableLinks(0)=(ExpectedType=class'SeqVar_Int',LinkDesc="Value",PropertyName=RiftValue) }