Buffactive Question

Language: JP EN DE FR
New Items
2023-11-19
users online
Forum » Windower » Spellcast Scripting » Other » Buffactive Question
Buffactive Question
 Asura.Izilder
Offline
Server: Asura
Game: FFXI
user: Izildur
Posts: 670
By Asura.Izilder 2013-10-03 08:51:50
Link | Quote | Reply
 
For this example i wish to know how i can force a check for both Haste AND March before performing the group change not just Haste OR March


Code
                    <if Spell="ClassTrigger">
                            <if SpellTargetRaw="buff">
                                    <if mode="" BuffActive="Haste|March">
                                            <var cmd="set _CurrentEquipmentTag buffed" />
                                    </if>
                                    <else>
                                            <var cmd="set _CurrentEquipmentTag unbuffed" />
                                    </else>
                            </if>
                            <else>
                                    <var cmd="set _GearSet %SpellTargetRaw" />
                            </else>
 Lakshmi.Byrth
VIP
Offline
Server: Lakshmi
Game: FFXI
user: Byrthnoth
Posts: 6137
By Lakshmi.Byrth 2013-10-03 09:21:29
Link | Quote | Reply
 
Code
<if mode="AND" BuffActive="Haste" BuffActive="March">


I am fairly sure that you don't need the MODE="AND" because I think it's the default.
[+]
 Asura.Izilder
Offline
Server: Asura
Game: FFXI
user: Izildur
Posts: 670
By Asura.Izilder 2013-10-03 10:45:18
Link | Quote | Reply
 
that dont work ;;

i tried this
Code
                                    <if advanced='(bool)buffactive("March") AND (bool)buffactive("Haste")'>


which didnt work but it did work if i put Madrigal in place of "Haste"


ideas?
 Asura.Izilder
Offline
Server: Asura
Game: FFXI
user: Izildur
Posts: 670
By Asura.Izilder 2013-10-03 12:35:56
Link | Quote | Reply
 
nvm i fixed it xd just need to add Embrava now and hope that works as well.
 Asura.Izilder
Offline
Server: Asura
Game: FFXI
user: Izildur
Posts: 670
By Asura.Izilder 2013-10-04 15:18:02
Link | Quote | Reply
 
buffs up work buffs down wont - any ideas? also note, the march-haste-embrava did work for both up and down before i added the 2nd embrava buffactive
Code
                    <if Spell="ClassTrigger">
                            <if SpellTargetRaw="buff">
                                    <if advanced='(bool)buffactive("March") AND (bool)buffactive("Haste") AND ((bool)buffactive("Embrava"))'>
                                            <var cmd="set _CurrentEquipmentTag buffed" />
                                    </if>
                                    <else>
                                            <var cmd="set _CurrentEquipmentTag unbuffed" />
                                    </else>
                                  <if advanced='(bool)buffactive("Embrava")'>
                                            <var cmd="set _CurrentEquipmentTag embrava" />
                                    </if>
                                    <else>
                                            <var cmd="set _CurrentEquipmentTag unbuffed" />
                                    </else>									
                           
							<else>
                                    <var cmd="set _GearSet %SpellTargetRaw" />
                            </else>
						
							</if>
 Lakshmi.Byrth
VIP
Offline
Server: Lakshmi
Game: FFXI
user: Byrthnoth
Posts: 6137
By Lakshmi.Byrth 2013-10-04 15:33:00
Link | Quote | Reply
 
You need to change the inner logic above to something like this:
Code
                <if advanced='(bool)buffactive("March") AND (bool)buffactive("Haste") AND ((bool)buffactive("Embrava"))'>
                        <var cmd="set _CurrentEquipmentTag buffed" />
                </if>
              <elseif advanced='(bool)buffactive("Embrava")'>
                        <var cmd="set _CurrentEquipmentTag embrava" />
                </elseif>
                <else>
                        <var cmd="set _CurrentEquipmentTag unbuffed" />
                </else>                                  
        


I assume that you are using "ClassTrigger buff" in AutoExec for gain/loss events. I haven't tried it myself, so I don't know if those events fire before the buff is added/removed from the buff list in memory. You may need to add a slight wait (0.1 seconds) before your trigger.

Your final </if> also looks like it's in the wrong place.
 Asura.Izilder
Offline
Server: Asura
Game: FFXI
user: Izildur
Posts: 670
By Asura.Izilder 2013-10-04 15:55:50
Link | Quote | Reply
 
yes you are correct about the "ClassTrigger buff" in AE - i will try your suggestion
 Asura.Izilder
Offline
Server: Asura
Game: FFXI
user: Izildur
Posts: 670
By Asura.Izilder 2013-10-04 16:07:37
Link | Quote | Reply
 
;; sigh buffs up work buffs down dont (btw using madrigal in place of embrava just for testing purposes)
Code
        <!-- Group switching using ClassTrigger. -->
        <include name="ClassTriggerGroupSwitching">
                <!-- Group switching -->
                <if Spell="ClassTrigger">
                        <if SpellTargetRaw="buff">
						 <if advanced='(bool)buffactive("March") AND (bool)buffactive("Haste") AND ((bool)buffactive("Embrava"))'>
								  <var cmd="set _CurrentEquipmentTag buffed" />
						  </if>
						<elseif advanced='(bool)buffactive("Madrigal")'>
								  <var cmd="set _CurrentEquipmentTag embrava" />
						  </elseif>
						  <else>
								  <var cmd="set _CurrentEquipmentTag unbuffed" />
						  </else>  
					</if>	  
                        <else>
                                <var cmd="set _GearSet %SpellTargetRaw" />
                        </else>
                       
                        <if NotGroup="$_GearSet-$_CurrentEquipmentTag">
                                <command>sc group $_GearSet-$_CurrentEquipmentTag</command>
                        </if>
                        <command>alias jobgearup .gc %MainJob base $_GearSet-unbuffed $_GearSet-buffed $_GearSet-generic;</command>
                        <cancelspell />
                        <return />
                </if>
        </include>
 Asura.Izilder
Offline
Server: Asura
Game: FFXI
user: Izildur
Posts: 670
By Asura.Izilder 2013-10-04 16:37:36
Link | Quote | Reply
 
if i type

//trigger ClassTrigger Buff


after the song is down it works... ideas? @@
Code
                            ae register 10006 (regex)gainbuff_(Madrigal)(/regex) trigger "ClassTrigger" buff;
                            ae register 10007 (regex)losebuff_(Madrigal)(/regex) trigger "ClassTrigger" buff;	
 Lakshmi.Byrth
VIP
Offline
Server: Lakshmi
Game: FFXI
user: Byrthnoth
Posts: 6137
By Lakshmi.Byrth 2013-10-04 16:40:16
Link | Quote | Reply
 
Yeah, add a wait statement like I recommended.

Code
                            ae register 10006 (regex)gainbuff_(Madrigal)(/regex) trigger "ClassTrigger" buff;
                            ae register 10007 (regex)losebuff_(Madrigal)(/regex) wait 0.1;trigger "ClassTrigger" buff;	
 Asura.Izilder
Offline
Server: Asura
Game: FFXI
user: Izildur
Posts: 670
By Asura.Izilder 2013-10-04 16:40:18
Link | Quote | Reply
 
could be something to do with a wait like you said?

edit: you beat me to it lol trying it now
 Asura.Izilder
Offline
Server: Asura
Game: FFXI
user: Izildur
Posts: 670
By Asura.Izilder 2013-10-04 16:50:35
Link | Quote | Reply
 
it dont like that - up and down wont work
 Asura.Izilder
Offline
Server: Asura
Game: FFXI
user: Izildur
Posts: 670
By Asura.Izilder 2013-10-05 03:53:02
Link | Quote | Reply
 
anyone?
 Asura.Izilder
Offline
Server: Asura
Game: FFXI
user: Izildur
Posts: 670
By Asura.Izilder 2013-10-05 14:30:44
Link | Quote | Reply
 
bump
 Bahamut.Alteubent
Offline
Server: Bahamut
Game: FFXI
user: Alteubent
Posts: 16
By Bahamut.Alteubent 2013-10-15 17:42:43
Link | Quote | Reply
 
It looks like in the command in your autoexec file that you are trying to have windower process the event the way that its currently written, instead of it being sent to spellcast.

Your trigger mechanism seems to be stored in spellcast. You might want to try directing it to spellcast from Autoexec. Even if that weren't necessary, if the two autoexec lines that you have written are in a file for autoexec they dont look formatted correctly.

Some lines from autoexec files that I used previously as an example:
Code
<register event="time_6.*|time_17.*">sc var set NDD Dusk</register>
<register event="gainbuff_Voidwatcher" runonce="false">exec sam/BindVoidNinWar.txt;</register>
<register event='(regex)hpp_(100|7[5-9]|[8-9].)$(/regex)'>sc enable L.Ring</register>

If you are trying to make something happen when you gain or lose a buff aside from setting the variable you can nest that into the same AE line.
I dont really see why something thats a singular gain or lose buff would need to be a regex for your AE trigger.
Log in to post.