Spell Element

Talk about AshitaCast here. Need help with setting things up? Questions about how to do something? Post here.
Post Reply
keroro7788
Posts: 13
Joined: Tue May 02, 2017 11:36 am

Spell Element

Post by keroro7788 » Thu May 04, 2017 12:49 am

Is it possible to have ashitacast determine a spell's element and determine whether it is appropriate to equip weather specific gear? Or do I have to break down element by element individually?

In gearswap it would be something like this that I'm trying to do.

Code: Select all

if spell.element == world.day_element or spell.element == world.weather_element then 
	equip(sets.Weather)
	end
This is what I have right now I'm curious as to whether it is possible to simply it. For my actual spell list, I have every spell listed out individually...

Code: Select all

<if ad_name="Flash Nova">
	<equip set="Magical" />
	<if e_day|e_dayelement|e_weather|e_weatherelement="Light">
        <equip><waist>Hachirin-no-Obi</waist></equip>
	</if></if>
<if ad_name="Tenebral Crush|Palling Salvo">
	<equip set="Magical" />
	<if e_day|e_dayelement|e_weather|e_weatherelement="Dark">
         <equip><waist>Hachirin-no-Obi</waist></equip>
	<if buffactive="Burst Affinity"><equip set="Burst Affinity" />
	</if></if></if>
matix
Addon/Plugin Developer
Posts: 49
Joined: Sun May 15, 2016 10:46 pm

Re: Spell Element

Post by matix » Thu May 04, 2017 6:48 am

try checking against ad_element

Code: Select all

ad_element - Spell's element
Possible Value: dark
Possible Value: earth
Possible Value: fire
Possible Value: ice
Possible Value: light
Possible Value: nonelemental
Possible Value: thunder
Possible Value: unknown
Possible Value: water
Possible Value: wind
this code is supposed to check if spell element matches the day or active weather(will return whatever storm you have up if you have a storm)

Code: Select all

<if advanced="%ad_element=%e_dayelement">
	<if ad_element="Light">
		<!--stuff-->
	</if>
</if>	
<elseif advanced="%ad_element=%e_weatherelement">
	<!--stuff-->	
</elseif>
hope this examples help a bit
keroro7788
Posts: 13
Joined: Tue May 02, 2017 11:36 am

Re: Spell Element

Post by keroro7788 » Thu May 04, 2017 11:54 am

I will try when I get home thanks.
For all the Blue mage spells I already have every spell sorted based on physical, magical or their respective utility and wanted to avoid having to sort them based on element too 😢
matix
Addon/Plugin Developer
Posts: 49
Joined: Sun May 15, 2016 10:46 pm

Re: Spell Element

Post by matix » Fri May 05, 2017 3:28 am

yeah i think i sorted them seperately in my own blu xml, sometimes it may be more tedious, but still can the best way depending your own needs
Post Reply