https://code.google.com/p/evolutionrts/ ... actory.bos
QueryNanoPiece(piecenum)
I want to query spikeright1 spikeright2 and spikeright3. The current function will only allow me to query 2. Any ideas? (yes I know this script is fugly -_-)
Need to query 3 points for nano [Solved]
Moderator: Moderators
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Need to query 3 points for nano [Solved]
Last edited by Forboding Angel on 28 Mar 2013, 11:57, edited 1 time in total.
Re: Need to query 3 points for nano
Code: Select all
if( spray == 0 )
{
if (hey==0)
{
********************
}else
hey!=hey;
{
********************
}
piecenum = spikeright1;
}
if( spray != 0 )
{
piecenum = spikeright3;
}
spray = !spray;
Re: Need to query 3 points for nano
I'll just leave this here: http://springrts.com/mantis/plugin.php? ... iew&id=209
And maybe this: Spring.SetUnitNanoPieces(unitID, {piece1, piece2, piece3, and_four_is_forever});
And maybe this: Spring.SetUnitNanoPieces(unitID, {piece1, piece2, piece3, and_four_is_forever});
oh wait 0_0.bos
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: Need to query 3 points for nano
You volunteering your services to convert the script to LUS? 
And don't mention the "converter", because it only gets you like 40% of the way, and the rest is you figuring out what is broken (or at least that's the way it used to be) without the compiler dinging at you when you screwed something up.
Edit: NixTux got me sorted out: https://github.com/n3wm1nd/TA/blob/mast ... llhtcp.bos
Thanks

And don't mention the "converter", because it only gets you like 40% of the way, and the rest is you figuring out what is broken (or at least that's the way it used to be) without the compiler dinging at you when you screwed something up.
Edit: NixTux got me sorted out: https://github.com/n3wm1nd/TA/blob/mast ... llhtcp.bos
Thanks

Re: Need to query 3 points for nano [Solved]
I actually tried the converter on some quite complicated scripts (much much worse than that 300-liner of yours; my tackle was suspension scripts for vehicles and i failed because cba to parse 100500 cryptically named two-letter variables with zero comments).because it only gets you like 40% of the way
It gets the basic stuff like yours quite well, though. The things it chokes on are cob magical stuff and complex math (which you don't have).
Oh, and you can use '/luarules reload' to refresh the script on the fly without having to restart spring, and you get syntax highlighting in your favorite editor (unless that happens to be cobbler).
Totally not a propaganda post.
Re: Need to query 3 points for nano [Solved]
Nobody is trying to convince anyone, its not like we forcechoke coborcs..