Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Reelix

#1
















#2
General Discussion / Re: Protoss Life
March 20, 2010, 05:13:22 AM
Phoenix's are useless, you say?

Say early-ish game I walk into a Zerg base with 6 Phoenix's - What does he have to defend (AA Wise)?

3 hydralisks?

Toss them into the air, and pwn them.

A queen?

Toss it into the air, and pwn it.

Overlords?

Just pwn it!

GG :)

Also works vs another protoss player - Just take all his Stalkers, then pwn his probes :p

Get a void ray, and the game is over.
#3
# AIControlWantsToUnburrow(unit u)
# AIControlWantsToBurrow(unit u)
# AIControlForceUnburrow(unit u)

Those 3 exist.

Curse the lack of AIControlForceBurrow(unit u)

:(

I've tried something along the lines of

if (AIControlWantsToUnburrow(theUnit))
{
    // doBurrow(theUnit);
}

But that just bunny-hops the roach as well


-- Edit ---


Possible Helpful Functions:

UnitTestState(unit u, int state) - Test state of the unit
UnitGetPropertyInt(unit u, int property, bool current) - Property of the unit
UnitOrder(unit, int)
UnitOrderIsValid(unit, order)
UnitTypeTestFlag(string, int)
UnitTypeTestAttribute(string, int)
AICast(unit u, order, marker, bool)
AICastFlee(unit, unit, int, marker)

AIControlWantsToMove(unit u)  / AIControlWantsToUnburrow(unit u)  / AIControlWantsToBurrow(unit u)
-- Maybe a StopAction(unit u) somewhere?
#4
SC2 Tools / Re: SC2 Strat Javascript
March 16, 2010, 05:06:21 AM
Make an enemy attack, make it load simple Zerg0.galaxy files, and you have browser-based starcraft!

Woot :p

- Reelix
#5
Hmmm - I never thought of that...

I DO know that "RoachBurrow" and "RoachUnburrow" are two separate abilities...

Don't suppose you know a

static bool IsBurrowed(unit u);

command? :)
#6
AI Help Section / Re: c_stockIdle vs c_stockAlways
March 16, 2010, 01:54:08 AM
"I believe setstock should be used only to give the AI what to maintain if it loses something. I don't think the engine works through its stock in a first in, first out, basis."

I tried a little

AISetStock(player, 6, "Zergling");
if (attackWave = 1)
{
AISetStock(player, 0, "Zergling");
doAttack...
}


Which, while technically works, gets overwritten by the above AISetStock :p

I hate using global variables....

bool canBuildZerglings = true; // Global Var

// Inside Function
if (canBuildZerglings)
{
   AISetStock(player, 6, "Zergling");
}
if (attackWave = 1)
{
  canBuildZerglings = false;
}


As this gets applied to every zerg AI (Problems with 2 Zerg AI's in 1 game) - So I have to make TvZ or PvZ to test :<
#7
AI Help Section / Roach Burrow Assistance Required
March 16, 2010, 01:49:55 AM
Hi All!

After spending about 6 hours last night coverting my AI from version 0.1 to 0.2, I have come across a slight problem.

What I'm trying to do is select every roach a player has, iterate through them all, and, if their health is below 40%, burrow, and stay burrowed, while health < 90%

Now, it works rather well, up to a point.

When the roaches health is below 40% it burrows like it's meant to, and just pops straight back up - It subsequently "leapfrogs" up and down while it's health is below 90%, causing it to be obliterated in the heat of battle.

Does anyone know how to make a burrowed unit, stay burrowed?

a simple (Pseudocode)

while (healthPercect < 90)
{
     AICast(burrow, roach);
}


causes problems.

I think sending the burrow "spell" unburrows the burrowed unit...

Does anyone have a solution to this?
#8
Non US copies people can't download the patch past patch 4 for some reason :(
#9
Quote from: Nova on March 12, 2010, 05:29:20 AM
You guys remember how bloody huge the 256 maps were in SC 1?

I'm the type of guy that would enjoy a 1024x1024 map with 16 players, and a 1000 food limit ;p
#10
On a confirmed max max size of 256x256?

The existing 14 player map is already total chaos...
#11
Not enough Pylons / Re: Dome-shaped everything?
March 12, 2010, 05:11:12 AM
Official SC2 / Cracked?

Which launcher?

Fully patched?

PC Specs?
#12
Bot Ideas / Starcraft 2 Bot?
March 12, 2010, 04:42:59 AM
How about a bot that executes our own version of Galaxy Script to play for us?

Lets coders have some fun, pwning players whilst just watching, knowing that the PC can execute commands insanely faster and more accurately than any human player :)
#13
AI Help Section / Re: Need some helps when starting.
March 12, 2010, 03:53:07 AM
Don't use LazyLauncher - New SC2 Launcher is out (Revision 43 at the time of writing)
#14
"I can line up 8 seige tanks and let the AI take every single resource on the map, and just blast them away. TvZ."

You have 8 Siege Tanks, they attack with 4 Mutalisks.

GG ;)