New To Spellcast Question

言語: JP EN DE FR
2010-06-21
New Items
users online
フォーラム » Windower » Spellcast Scripting » Other » New to Spellcast question
New to Spellcast question
 Cerberus.Reiden
Offline
サーバ: Cerberus
Game: FFXI
user: Reiden
Posts: 322
By Cerberus.Reiden 2012-11-20 22:40:48  
i'm a super noob and just started learning how to use spellcast a few hours ago. So my question is do i have to write one entire xml for all jobs or can i have have seperate xml's.
 Cerberus.Eugene
Offline
サーバ: Cerberus
Game: FFXI
user: Eugene
Posts: 6999
By Cerberus.Eugene 2012-11-20 22:42:03  
<3
 Ragnarok.Sekundes
Offline
サーバ: Ragnarok
Game: FFXI
user: Sekundes
Posts: 4162
By Ragnarok.Sekundes 2012-11-20 22:44:53  
Technically, you could make one xml to rule them all, but it's recommended to make one xml for one job because every action you do would have to go through the entire thing to figure out what actions to do and would cause a great amount of lag. Though there are things called includes, which can be placed multiple xmls to pull code that is common from one spot.
 Cerberus.Reiden
Offline
サーバ: Cerberus
Game: FFXI
user: Reiden
Posts: 322
By Cerberus.Reiden 2012-11-20 22:57:31  
thanks.
@Eugene: yooooooooooooooooo
necroskull Necro Bump Detected! [97 days between previous and next post]
Offline
Posts: 52
By Xnite 2013-02-25 12:27:58  
trying to get sc to show gear set changes in my log, i tried bst xml but wasnt working properly.
its not echoing anything when i first engage, after i do something it echoes both.
 Sylph.Hitetsu
Offline
サーバ: Sylph
Game: FFXI
user: Hitetsu
Posts: 2617
By Sylph.Hitetsu 2013-02-25 13:05:56  
What is it you're trying to do exactly?
Code xml
<addtochat when="engaged">My TP: %TP</addtochat> <!-- Spit out TP when you Engage -->

<if status="Engaged"> <!-- Check to see if you're engaged -->
	<addtochat when="aftercast">My TP: %TP</addtochat> <!-- If you're engaged, perform this action AFTER you use a JA/Spell -->
		
	<if PetIsValid="True"> <!-- If you have a Pet out, change to Pet TP Set after you use a Spell/JA -->
		<equip When="Engaged|Aftercast" Set="PetTP" />
		<addtochat when="aftercast">Pet TP: %PetTP</addtochat> <!-- After an action, spit out Pets TP -->
	</if>
</if>



This will spit out your TP when you first engage, whenever you do an action and will spit out your Pet TP after every action while your pet is out.

EDIT: If you're wanting it to show exact gear swaps, then you'll find a <config> section at the top of your XML, add "ShowGearSwaps = "True" " to that section.
Offline
Posts: 52
By Xnite 2013-02-25 13:15:00  
Basicly i want it just say what set is changed to when i do something.
like if i use cure. say cure set.
 Sylph.Hitetsu
Offline
サーバ: Sylph
Game: FFXI
user: Hitetsu
Posts: 2617
By Sylph.Hitetsu 2013-02-25 13:24:36  
In the case of your XML, it's following logic perfectly then.

Try this: it should equip/tell you your TP set is on if you don't have a pet out. Otherwise, it'll tell you that your Pet TP set is on.

If you want it to tell you that both of your sets are equipped (instead of one or the other), then I doubt there's a better way of doing it than you have now.
Code xml
<equip when="engaged" set="TP" />
<addtochat when="engaged">TP set Equipped</addtochat> 


<if status="Engaged">
	<equip when="aftercast" set="TP" />
	<if PetIsValid="False">
		<addtochat when="aftercast">TP set equipped</addtochat> 
	</if>
	<if PetIsValid="True">
		<equip When="Engaged|Aftercast" Set="PetTP" />
		<addtochat when="aftercast">Pet TP Set Equipped</addtochat>
	</if>
</if>
Offline
Posts: 52
By Xnite 2013-02-25 13:59:19  
that works great TY
Log in to post.