Buffactive Question

Eorzea Time
 
 
 
言語: JP EN FR DE
日本語版のFFXIVPRO利用したい場合は、上記の"JP"を設定して、又はjp.ffxivpro.comを直接に利用してもいいです
users online
フォーラム » Windower » Spellcast Scripting » Other » Buffactive Question
Buffactive Question
 Asura.Izilder
Offline
サーバ: Asura
Game: FFXI
user: Izildur
Posts: 670
By Asura.Izilder 2013-10-03 08:51:50  
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
サーバ: Lakshmi
Game: FFXI
user: Byrthnoth
Posts: 6137
By Lakshmi.Byrth 2013-10-03 09:21:29  
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
サーバ: Asura
Game: FFXI
user: Izildur
Posts: 670
By Asura.Izilder 2013-10-03 10:45:18  
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
サーバ: Asura
Game: FFXI
user: Izildur
Posts: 670
By Asura.Izilder 2013-10-03 12:35:56  
nvm i fixed it xd just need to add Embrava now and hope that works as well.
 Asura.Izilder
Offline
サーバ: Asura
Game: FFXI
user: Izildur
Posts: 670
By Asura.Izilder 2013-10-04 15:18:02  
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
サーバ: Lakshmi
Game: FFXI
user: Byrthnoth
Posts: 6137
By Lakshmi.Byrth 2013-10-04 15:33:00  
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
サーバ: Asura
Game: FFXI
user: Izildur
Posts: 670
By Asura.Izilder 2013-10-04 15:55:50  
yes you are correct about the "ClassTrigger buff" in AE - i will try your suggestion
 Asura.Izilder
Offline
サーバ: Asura
Game: FFXI
user: Izildur
Posts: 670
By Asura.Izilder 2013-10-04 16:07:37  
;; 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
サーバ: Asura
Game: FFXI
user: Izildur
Posts: 670
By Asura.Izilder 2013-10-04 16:37:36  
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
サーバ: Lakshmi
Game: FFXI
user: Byrthnoth
Posts: 6137
By Lakshmi.Byrth 2013-10-04 16:40:16  
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
サーバ: Asura
Game: FFXI
user: Izildur
Posts: 670
By Asura.Izilder 2013-10-04 16:40:18  
could be something to do with a wait like you said?

edit: you beat me to it lol trying it now
 Asura.Izilder
Offline
サーバ: Asura
Game: FFXI
user: Izildur
Posts: 670
By Asura.Izilder 2013-10-04 16:50:35  
it dont like that - up and down wont work
 Asura.Izilder
Offline
サーバ: Asura
Game: FFXI
user: Izildur
Posts: 670
By Asura.Izilder 2013-10-05 03:53:02  
anyone?
 Asura.Izilder
Offline
サーバ: Asura
Game: FFXI
user: Izildur
Posts: 670
By Asura.Izilder 2013-10-05 14:30:44  
bump
 Bahamut.Alteubent
Offline
サーバ: Bahamut
Game: FFXI
user: Alteubent
Posts: 16
By Bahamut.Alteubent 2013-10-15 17:42:43  
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.