BlueStryker
Member
I'm getting the following Syntax error but can't seem to figure out what it's actually referring to. I've look through the wiki and the forums but haven't been able to find anything that has helped so now I'm asking if anyone can tell me what I'm missing.
Syntax error in 'position' script for Template 'skPick' on line 28
-> Invalid use of a reserved word in script
I have tried many different changes to the script but still just get that error. Below is the script, I believe, they are referring to.
<position><![CDATA[
~set up our height based on our tallest portal
height = portal[info].height
~if this is a "sizing" calculation, we're done
doneif (issizing <> 0)
~position our tallest portal at the top
portal[info].top = 0
~center the other portals vertically
perform portal[tname].centervert
perform portal[domain].centervert
perform portal[lbldomain].centervert
perform portal[value].centervert
perform portal[delete].centervert
~position the delete portal on the far right
perform portal[delete].alignedge[right,0]
~position the info portal to the left of the delete button
perform portal[info].alignrel[rtol,delete,-8]
~position the incrementer on the left
portal[value].left = 0
~position the name next to the incrementer
perform portal[tname].alignrel [ltor,value,10]
~if we don't need a domain, hide it and let the name use all available space
if (tagis[User.NeedDomain] = 0) then
portal[lbldomain].visible = 0
portal[domain].visible = 0
portal[tname].width = minimum(portal[tname].width,portal[info].left - portal[tname].left - 10)
~otherwise, position the domain portals next to the name
else
perform portal [lbldomain].alignrel [ltor,tname,20]
perform portal [domain].alignrel [ltor,lbldomain,5]
endif
~if the ability is auto-added, change its font to indicate that fact
if (candelete = 0) then
perform portal[tname].setstyle[lblAuto]
endif
]]></position>
Syntax error in 'position' script for Template 'skPick' on line 28
-> Invalid use of a reserved word in script
I have tried many different changes to the script but still just get that error. Below is the script, I believe, they are referring to.
<position><![CDATA[
~set up our height based on our tallest portal
height = portal[info].height
~if this is a "sizing" calculation, we're done
doneif (issizing <> 0)
~position our tallest portal at the top
portal[info].top = 0
~center the other portals vertically
perform portal[tname].centervert
perform portal[domain].centervert
perform portal[lbldomain].centervert
perform portal[value].centervert
perform portal[delete].centervert
~position the delete portal on the far right
perform portal[delete].alignedge[right,0]
~position the info portal to the left of the delete button
perform portal[info].alignrel[rtol,delete,-8]
~position the incrementer on the left
portal[value].left = 0
~position the name next to the incrementer
perform portal[tname].alignrel [ltor,value,10]
~if we don't need a domain, hide it and let the name use all available space
if (tagis[User.NeedDomain] = 0) then
portal[lbldomain].visible = 0
portal[domain].visible = 0
portal[tname].width = minimum(portal[tname].width,portal[info].left - portal[tname].left - 10)
~otherwise, position the domain portals next to the name
else
perform portal [lbldomain].alignrel [ltor,tname,20]
perform portal [domain].alignrel [ltor,lbldomain,5]
endif
~if the ability is auto-added, change its font to indicate that fact
if (candelete = 0) then
perform portal[tname].setstyle[lblAuto]
endif
]]></position>