Making Scripts

Eorzea Time
 
 
 
Language: JP EN FR DE
users online
Forum » Windower » Spellcast Scripting » Scholar » Making scripts
Making scripts
 Ragnarok.Presidentobama
Offline
Server: Ragnarok
Game: FFXI
user: kasain
Posts: 585
By Ragnarok.Presidentobama 2013-04-03 21:41:29
Link | Quote | Reply
 
Hello, I would like to try to make two scripts.

First
One would be an "if" command.
If Light arts activated or up equip hands "xyz"
How does an "If" comand work? Is it somethinG i always mast hit macro key for?


Second
The other one may seem for for Damage dealers. But SE only gives us five lines.

So I have

JA immorance <t> <wait .5>
/ma luminhelix <t> <wait 8>
Ja immorence <wait .5>
/ma "stome" <t>
/Equip.shattersoulset.txt

But I run out of lines. Is their a way i can enter a fast cast set at the begining of the script? If I write it on notepad or excel can I increase the lines?
 Ragnarok.Hotkarl
Offline
Server: Ragnarok
Game: FFXI
user: hotkarl
Posts: 520
By Ragnarok.Hotkarl 2013-04-03 22:07:04
Link | Quote | Reply
 
Txt scripts don't run out of lines, and as far as the situational "if" equips you will need spellcast.
 Ragnarok.Presidentobama
Offline
Server: Ragnarok
Game: FFXI
user: kasain
Posts: 585
By Ragnarok.Presidentobama 2013-04-03 22:10:42
Link | Quote | Reply
 
I see, so theirs no way to put my empy+2 hands equipped if light arts goes up. Kinda anoying as they finaily added +15int hands, this out classed the +9 int for shattersoul.

But having now to remember to somehow equip hands before doing the JA what lets you extend length of your next spell will get anoying. As it will be needed for regen V. hailstorm and phalinx,

But I guessing their is no way to equip the hands in order to do the 3 spells and one Job ability?


I saw a twilight armor set that when hp = 20% it autimaticly equips twilolight armor for warriors. So I was hopeing something along the same line

I do have spell cqast on windwer 4. I just not sure how to do much beyond armor swaps.
 Phoenix.Kirana
Offline
Server: Phoenix
Game: FFXI
Posts: 2025
By Phoenix.Kirana 2013-04-03 22:14:08
Link | Quote | Reply
 
Have you considered trying spellcast?

edit: oops, just read the last sentence.

You can use if statements and such in a spellcast xml. You can also use autoexec to accomplish the automatic changes you are looking for.
 Ragnarok.Presidentobama
Offline
Server: Ragnarok
Game: FFXI
user: kasain
Posts: 585
By Ragnarok.Presidentobama 2013-04-03 22:16:19
Link | Quote | Reply
 
Sure, I know a little about it, as I have it but not quite sure how to use it well. Thats why I was posting here. maybe someone can direct me to where I can learn how to use it well for the spells I do.
 Ragnarok.Presidentobama
Offline
Server: Ragnarok
Game: FFXI
user: kasain
Posts: 585
By Ragnarok.Presidentobama 2013-04-03 22:23:14
Link | Quote | Reply
 
Phoenix.Kirana said: »
You can use if statements and such in a spellcast xml. You can also use autoexec to accomplish the automatic changes you are looking for.


Can you give me an example of an autoexec comand you made and an If comand you made?

That waY i can see and customise it for what I do.
 Sylph.Hitetsu
Offline
Server: Sylph
Game: FFXI
user: Hitetsu
Posts: 2617
By Sylph.Hitetsu 2013-04-04 02:41:17
Link | Quote | Reply
 
A simple "If" statement:
Code xml
<if spell="Exenterator">
			<equip set="Exenterator" when="precast" />
			<equip set="$GearType" when="aftercast" />
		</if>



And for AutoExec:
Code xml
<register event="losebuff_Reraise">input /echo [AutoExec] Reraise Lost</register>


Unfortunately I don't have AutoExec do much for me aside from spit out information, but
Code xml
	<register event="hp_1*|2*">input /equip Head "Twilight Helm";wait 0.5;input /equip Body "Twilight Mail"</register>
	<register event="gainbuff_Weakened">input /equip Head "Twilight Helm";wait 0.5;input /equip Body "Twilight Mail"</register>


Those should change equipment based off the conditions of have < 30% HP or being killed once and having Weakness active.
 Ragnarok.Presidentobama
Offline
Server: Ragnarok
Game: FFXI
user: kasain
Posts: 585
By Ragnarok.Presidentobama 2013-04-04 20:06:55
Link | Quote | Reply
 
Thanks