Trigger Alias?

Langues: JP EN DE FR
users online
Forum » Windower » Support » Trigger Alias?
Trigger Alias?
 Ragnarok.Tarusofo
Offline
Serveur: Ragnarok
Game: FFXI
user: Neptune
Posts: 67
By Ragnarok.Tarusofo 2013-02-16 09:50:52
Link | Citer | R
 
Hello everyone, after some searching (on FFXIAH and Windower forums) and posting on the SMN forums without response, I hoped I might find an answer here.

I recently started using an XML for Summoner from someone else, I liked it because it had labeled all the attacks of the different summons with alias, thus making it easier to have just one sec of macros, interexchangeable between Avatars. My problem is, how do you trigger an alias, manually?

Quoting the XML:
Code
            <elseif Spell = "Shiva">
                <action type = "Command">alias 75Nuke input /pet "Heavenly Strike" <%t></action>
                <action type = "Command">alias 65Nuke input /pet "Blizzard IV" <%t></action>
                <action type = "Command">alias atkPact input /pet "Double Slap" <%t></action>
                <action type = "Command">alias bufPact input /pet "Frost Armor" <%me></action>
                <action type = "Command">alias abfPact /;</action>
                <action type = "Command">alias debPact input /pet "Sleepga" <%t></action>
                <action type = "Command">alias a70Pact input /pet "Rush" <%t></action>
            </elseif>


But I've tried everything to add on the in-game macros to trigger them, and nothing.

/console 75nuke didn't work, as it didn't /console or /command alias 75nuke or any of the variations.

Am I crazy? Am I missing something? I've never used aliases before, before spellcast I used windower macros and during spellcast, I've never had a need to use them. Any help would be much appreciated. Thanks!!
 Ragnarok.Martel
Offline
Serveur: Ragnarok
Game: FFXI
Posts: 2961
By Ragnarok.Martel 2013-02-16 10:23:03
Link | Citer | R
 
//aliasname typed in chat, or /console aliasname in a macro should trigger an alias.

But it's not your triggers that are broken, it's your xml.

This is your problem. <%t> You CANNOT use < or > inside of a xml, except as part of a tag.

Also, I'm not sure why you have a % there. I don't think you need that. Anyway.

rather than < you have to use &lt ; (without the space between the T and the ;.) and rather than > you use &gt ;(again, no space).

try this.
Code
<elseif Spell = "Shiva">
    <cmd>alias 75Nuke input /pet "Heavenly Strike" <t></cmd>
    <cmd>alias 65Nuke input /pet "Blizzard IV" <t></cmd>
    <cmd>alias atkPact input /pet "Double Slap" <t></cmd>
    <cmd>alias bufPact input /pet "Frost Armor" <me></cmd>
    <cmd>alias abfPact /;</cmd><!-- what's with this? /; ? -->
    <cmd>alias debPact input /pet "Sleepga" <t></cmd>
    <cmd>alias a70Pact input /pet "Rush" <t></cmd>
</elseif>


Ahh, hmmm. the forums are converting my & lt; etc, into <'s... can try quoting my post first then copying to get them. Or you can just change it manually. /shrug.
 Ragnarok.Martel
Offline
Serveur: Ragnarok
Game: FFXI
Posts: 2961
By Ragnarok.Martel 2013-02-16 10:32:52
Link | Citer | R
 
Two suggestions for you.

1: Use notepadd++ for XML editing. it uses color coding and highlighting for XMLs. So when you break something, forget to close a tag, or use improper syntax, it's pretty easy to tell.

for example in your smn code snippet there only the first two lines had color coding. It stopped after the first <%t> and everything below that was just black and white.

2: Dragging and dropping or pasting a XML location into firefox(or presumably other web browsers) will parse the xml, and report certain kinds of errors. Like the type of errror and the line it was detected on. Good stuff.

Using these, you'll be able to fix a lot of basic XML issues just by experimenting and testing.
 Ragnarok.Tarusofo
Offline
Serveur: Ragnarok
Game: FFXI
user: Neptune
Posts: 67
By Ragnarok.Tarusofo 2013-02-16 13:39:25
Link | Citer | R
 
Hi sorry! Thanks for the fast reply, I saw it earlier but didn't have time to reply.

The XML seems to open fine on Firefox and currently using Notepad++ (love it), so I don't think there's a syntax problem, and like you've said, the targets are being changed by the forums. On the XML itself they're like this:

<action type = "Command">alias 65Nuke input /pet "Thunder IV" & l t ; % t & g t ;</action>

(without the spaces)
 Ragnarok.Tarusofo
Offline
Serveur: Ragnarok
Game: FFXI
user: Neptune
Posts: 67
By Ragnarok.Tarusofo 2013-02-16 13:47:03
Link | Citer | R
 
Actually just figured it out, it had to do with the "%" which idk why was there on the targets. Deleted it, reloaded and seems to work fine. Thanks for making me pay attention at the target brackets!
 Ragnarok.Martel
Offline
Serveur: Ragnarok
Game: FFXI
Posts: 2961
By Ragnarok.Martel 2013-02-16 13:49:20
Link | Citer | R
 
Soo, is it working now? If not, what happens now? Nothing at all? some kinda error message?

Why <%t> though? <t> should return as the target name in game and in sc, assuming you're targeting something, without the %.

Infact, does sc even recognize %t as a variable? % indicates a variable in SC. Whereas $ indicates a user defined variable. There's stuff like %target and %targettype, etc. but I dunno if %t works.

So even if your aliases are firing now, you may be telling them to target nothing.
 Ragnarok.Martel
Offline
Serveur: Ragnarok
Game: FFXI
Posts: 2961
By Ragnarok.Martel 2013-02-16 13:51:22
Link | Citer | R
 
Looks like I posted a wee bit late regarding that %. <,<

I'd removed the % from the version I posted for you to try initially. Well, as long as it works now.
 Ragnarok.Tarusofo
Offline
Serveur: Ragnarok
Game: FFXI
user: Neptune
Posts: 67
By Ragnarok.Tarusofo 2013-02-17 02:37:51
Link | Citer | R
 
Sorry, fell asleep heh. Yeah I assume the % somehow appeared when I copied from the source (I didn't mean to add it there). It works perfectly now, as far as aliases go! I have one tiny bit problem though, if you wouldn't mind taking a look at it again... >_<?

The Elemental Siphon variable is triggered by casting the Dark Spirit, and then it detects which Element is more desirable for Siphoning. Problem is when I try to activate it, it says "Cannot attack that target".

I've looked and can't find anything to that extent. I'll post the snippet for siphon on the XML here:
 Ragnarok.Martel
Offline
Serveur: Ragnarok
Game: FFXI
Posts: 2961
By Ragnarok.Martel 2013-02-17 12:20:09
Link | Citer | R
 
While you can't use < or > in a XML, EXCEPT for on tags.... you should use them for the tags themselves. <,<;

Tags being anything like, <if>, </if>, <elseif>, and even <!-->.

Using &lt ; etc, for all of the < and > makes the XML very hard to read in notepad++.

And it may not even parse correctly anymore, though I can't say for sure, as I've never used &lt ; for all my <'s. Ok, confirmed that code snippet wouldn't work in game with all the tags using &lt ;.

You should only need the &lt ; on the <me> in the siphon cmd for this snippet.

I'm getting a couple of errors, but both of those might be fixed depending on the rest of the XML.

First, since I don't have a variable called thunder spirit, it's trying to cast $Thunder spirit(since it's thunder day) which of course doesn't work. This could be a intended effect assuming there's variables for all the spirits somewhere. If not, removing the $ from all of the changespell rules should make it cast.

Second, the dark spirit rules aren't getting parsed since there's nothing setting the $ES variable to 1. Perhaps it's a default var, or another rule somewhere was setting it.

After addressing those two issues it seems to be working, but I don't have smn high enough to actually test it. And I never did get a "cannot attack that target error."
 Ragnarok.Tarusofo
Offline
Serveur: Ragnarok
Game: FFXI
user: Neptune
Posts: 67
By Ragnarok.Tarusofo 2013-02-19 10:06:32
Link | Citer | R
 
Hey sorry, haven't been playing SMN lately so I didn't think of it, but after checking it, spellcast parses fine and yes there are variables at the start that set it to 1 (true). I just think I'll need to give it a thorough look through it. Thanks so much for the help anyway. (: Really appreciate it! Thanks to the aliases fix, I've managed to make my own BST XML assigning alias for the Ready commands. Makes it so much smoother as far as in-game macros goes!
Log in to post.