Buff activated gear

Talk about AshitaCast here. Need help with setting things up? Questions about how to do something? Post here.
Post Reply
Mimikins
Posts: 3
Joined: Sat Sep 30, 2017 9:11 pm

Buff activated gear

Post by Mimikins » Sun Oct 01, 2017 9:56 am

Hi all!

I play whm/sch and was trying to get my light obi/twilight cape to activate when I cast aurorastorm on myself. I can get it to work for when it's lights day or light weather but having trouble with this buff.

This is what I was trying to use

Code: Select all

<if ad_skill="HealingMagic">
		<if ad_name="Cure*">
			<equip set="Cure" />
			<if Mode="OR" e_weatherelement="Light" e_dayelement="Light" buffactive="184">
				<equip>
					<back>Twilight Cape</back>
					<waist>Korin Obi</waist>
				</equip>
					
			</if>	
		</if>
Any help is appreciated :D

Dasva
Posts: 13
Joined: Wed May 18, 2016 11:53 am

Re: Buff activated gear

Post by Dasva » Tue Oct 03, 2017 1:49 pm

Shouldn't need the buff. From the variables readme "e_weatherelement - Current Vana Weather's Element, if you have a storm spell active will return that element instead"

Mimikins
Posts: 3
Joined: Sat Sep 30, 2017 9:11 pm

Re: Buff activated gear

Post by Mimikins » Wed Oct 04, 2017 8:41 pm

I've just been to sea where it's 100% light weather and it doesn't seem to be working there either. It equipped on lights day just can't seem to get the light weathers to work :X I'm pretty sure it worked last time I played in FFXI but since returning I don't know what I've done :S I did change some gear I don't think I did anything to the code.

If anyone could give an example of what it should be coded like it would be much appreciated :D

Mimikins
Posts: 3
Joined: Sat Sep 30, 2017 9:11 pm

Re: Buff activated gear

Post by Mimikins » Wed Oct 04, 2017 9:44 pm

ok so I had a chat with atom0s on discord. The mode="or" doesn't seem to be working. Replacing it with advanced has solved my problem :D

Many thanks to Atom0s :D
Here is how it should read to other people that may be experiencing the same issue :

Code: Select all

   <if ad_skill="HealingMagic">
            <if ad_name="Cure*">
                <equip set="Cure" />
                <if advanced="(%e_weatherelement=light)|(%e_dayelement=light)">
                    <equip>
                        <back>Twilight Cape</back>
                        <waist>Korin Obi</waist>
                    </equip>
                </if>
            </if>
            <elseif ad_name="Curaga*">
                <equip set="Curaga" />
                <if advanced="(%e_weatherelement=light)|(%e_dayelement=light)">
                    <equip>
                        <back>Twilight Cape</back>
                        <waist>Korin Obi</waist>
                    </equip>
                </if>
            </elseif>

matix
Addon/Plugin Developer
Posts: 44
Joined: Sun May 15, 2016 10:46 pm

Re: Buff activated gear

Post by matix » Fri Oct 06, 2017 6:52 am

for anyone reading this later, thorny pointed it out on the irc/discord, but "Mode" is case sensitive and must be "mode"

Dasva
Posts: 13
Joined: Wed May 18, 2016 11:53 am

Re: Buff activated gear

Post by Dasva » Fri Oct 06, 2017 5:03 pm

Haha was going to come back to this because was having problems too but yeah I just do different ifs for day and weather. Tried advanced and | but didn't think to try brackets too. Good to know there is a way to do it like that now can make crazy ones like don't swap if day and weather conflict

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest