A alex189 New Member Joined Aug 29, 2012 Messages 45 Reaction score 0 May 12, 2013 #1 Hi is it possible to use ZetaDia.CurrentAct in a In condition and what value should we expect?
herbfunk Community Developer Joined Oct 30, 2012 Messages 238 Reaction score 7 May 12, 2013 #2 This prob should be in the developer forum.. CurrentAct is an enum value but can be convert to int by using (int)ZetaDia.CurrentAct The enum values Code: public enum Act { Invalid=-1, A1=0, A2=100, A3=200, A4=300, Test=1000, } However, checking Rrrix's Questing Profiles I found these tags, which may help you... <If condition="ZetaDia.CurrentActSNOId == 70015"> <LogMessage message="We're in the wrong act, loading Act 1" /> <LoadProfile profile="Act1_rrrix.xml" /> </If> <If condition="ZetaDia.CurrentActSNOId == 70016"> <LogMessage message="We're in the wrong act, loading Act 2" /> <LoadProfile profile="Act2_rrrix.xml" /> </If> <If condition="ZetaDia.CurrentActSNOId == 70017"> <LogMessage message="We're in the wrong act, loading Act 3" /> <LoadProfile profile="Act3_rrrix.xml" /> </If> <If condition="ZetaDia.CurrentActSNOId == 70018"> <LogMessage message="We're in the wrong act, loading Act 4" /> <LoadProfile profile="Act4_rrrix.xml" /> </If> Click to expand...
This prob should be in the developer forum.. CurrentAct is an enum value but can be convert to int by using (int)ZetaDia.CurrentAct The enum values Code: public enum Act { Invalid=-1, A1=0, A2=100, A3=200, A4=300, Test=1000, } However, checking Rrrix's Questing Profiles I found these tags, which may help you... <If condition="ZetaDia.CurrentActSNOId == 70015"> <LogMessage message="We're in the wrong act, loading Act 1" /> <LoadProfile profile="Act1_rrrix.xml" /> </If> <If condition="ZetaDia.CurrentActSNOId == 70016"> <LogMessage message="We're in the wrong act, loading Act 2" /> <LoadProfile profile="Act2_rrrix.xml" /> </If> <If condition="ZetaDia.CurrentActSNOId == 70017"> <LogMessage message="We're in the wrong act, loading Act 3" /> <LoadProfile profile="Act3_rrrix.xml" /> </If> <If condition="ZetaDia.CurrentActSNOId == 70018"> <LogMessage message="We're in the wrong act, loading Act 4" /> <LoadProfile profile="Act4_rrrix.xml" /> </If> Click to expand...