| 05-24-2005, 06:07 PM | #1 |
I'm trying to make a TD bot, so I want to CPU to build buildings in a line, is there a way I can modify location so I cound do that? ____________________ Another thing, I found out that ConvertedPlayer(0) shot WC3 down, pretty dangerus if you are using variables since zero is the default. Does a list of fatal code exists her on wc3? |
| 05-24-2005, 06:13 PM | #2 |
What do you mea by modiffying Location?. You can do this, with offsets, would be complicated but this was done before, by the ROC times there was a contest about making AI build towers in an intelligent way and 2 people got able to submit |
| 05-24-2005, 06:22 PM | #3 |
I'm most TDs a tower is 4x4 in size of small cubes, I wound like to move the loc in all direction 1 cube. I've found OffsetLocation() but how much is a cube there? BTW Why are there only spell contest nowadays, I'm not god making spells ;) |
| 05-24-2005, 06:32 PM | #4 |
Well instead of OffSetLocation you should just use Coordinates, x y , there are plenty of natives that use x, y instead of locations, like you would se here: http://jass.sourceforge.net/doc/api/...unctions.shtml |
| 05-24-2005, 07:28 PM | #5 |
Well, I'll try to figure it out. Thx for the help. I just open common.j in JSP to find functions ;) So there not a list of fatals error here then? Maybe you shoud make one and sticky it |
| 05-30-2005, 10:47 PM | #6 | |
Quote:
Maybe you can make a similair contest? I've created a map that show how to build Tower in a line in GUI, maybe more will be able to submit if you cound use that as a example? I can send you the map if you like to see it, Vex. BTW Whats the rules for posting in the contest section ? |
