Staredit Network

Staredit Network -> UMS Assistance -> Trigger preservation and defaults
Report, edit, etc...Posted by concienne on 2004-12-11 at 13:52:24
are triggers preserved when i create a new map and set some triggers, like INSANE COMPUTERS, and then edit the map itself with different editors??

also does anyone know what the default A.I. SCRIPT is for the computers, when making a new map?
Report, edit, etc...Posted by LegacyWeapon on 2004-12-11 at 13:55:14
Triggers carry on when you switch map editors. THey don't change unless you change them.

We have tutorials for everything!
http://www.staredit.net/index.php?act=tuto...le=AI%20Scripts
Report, edit, etc...Posted by SaLaCiouS(U) on 2004-12-11 at 14:03:01
There is no default AI.
Report, edit, etc...Posted by DT_Battlekruser on 2004-12-12 at 01:27:03
Meaning that computer units will not do anything at all unless you move units toward them, in which case they will act as their alliance status maakes them.
Report, edit, etc...Posted by Drakiel on 2004-12-12 at 16:30:28
Default computer, if no alliance is set anywhere (forces, triggers, etc).
I'm pretty sure they're neutral.
As in... they just stand there unless you attack them.
Once attacked, the attacker is set as enemy and the comp gets pissed.

Triggers are preserved in that... yes triggers stay when you switch from editor to editor. But if you mean the "preserve" (action) then you have to set it in order to use it... umm yea... And they occur forever until the "conditions" are NOT met.
Report, edit, etc...Posted by DT_Battlekruser on 2004-12-12 at 17:58:10
Default computers are not neutral,y ou can't tell because something will always be set in the Force boxes. A computer in it's own force is enemy to all ohter players unless SetAllianceStatus() is used.
Report, edit, etc...Posted by concienne on 2004-12-12 at 20:55:29
what i mean to say exaclty, is, when you create a new melee style map, without setting any triggers, which AIscript is in use for the computer?? like normal, or insane, etc....
Report, edit, etc...Posted by LegacyWeapon on 2004-12-12 at 21:27:40
there is none.
Report, edit, etc...Posted by concienne on 2004-12-12 at 21:52:07
so then when fighting a computer, how do they build and atack you??

then YOU say: well thats their standard AI programming...

then I say: whats there "standard AI" programming?? whats it equivalent to? easy, insane, etc...??
Report, edit, etc...Posted by DT_Battlekruser on 2004-12-13 at 00:15:28
QUOTE(DT_Battlekruser @ Dec 11 2004, 10:27 PM)
Meaning that computer units will not do anything at all unless you move units toward them, in which case they will act as their alliance status maakes them.
[right][snapback]109432[/snapback][/right]



THERE IS NO DEFAULT AI. They just sit there.
Report, edit, etc...Posted by StealthyDeath on 2004-12-13 at 00:28:16
You guys are missing the point to his questions. He is asking what script is used in a normal melee game.

Concienne, the script that is run a normal melee game is the 'Custom' ones. E.G. Terran Custom Level, Zerg Expansion Custom Level, etc....

Melee maps don't need any AI scripts to run all you need is terrain and resources. But if you are making an UMS melee map, then you need to have locations and a Run AI Script trigger for each computer you want.
Report, edit, etc...Posted by concienne on 2004-12-14 at 19:30:01
thank you stealthy death.... thats what i was asking... so now i know they are CUSTOM by default on melee style....(when no triggers are set, or in use.)

ADDITION: ALSO: when creating a melee map, if i set comps to INSANE at there location, and zone (if thats the only trigger set, other than normal victory/defeat triggers), does that mean, i now have to run the map in UMS mode??? or can i still run in melee mode, with there insane trigger?? and if so, if i set comps to user select, can i run all three (terran, zerg, toss) insane scripts for ALL PLAYERS, or even all 3 scripts for each individual player, so that i can choose random for all 7 other comps and still have them run insane script? (in melee mode)
Report, edit, etc...Posted by LegacyWeapon on 2004-12-14 at 19:58:57
QUOTE(StealthyDeath @ Dec 13 2004, 12:28 AM)
You guys are missing the point to his questions.  He is asking what script is used in a normal melee game. 

Concienne, the script that is run a normal melee game is the 'Custom' ones.  E.G. Terran Custom Level, Zerg Expansion Custom Level, etc....

Melee maps don't need any AI scripts to run all you need is terrain and resources. But if you are making an UMS melee map, then you need to have locations and a Run AI Script trigger for each computer you want.
[right][snapback]110056[/snapback][/right]

They have no default AI that the Melee maps use. Blizzard uses a different one every time it detects something using triggers. Like if you have less units than the computer within let's say first 2 minutes of the game, then attack with everything. The AI script changes with the game.
Report, edit, etc...Posted by StealthyDeath on 2004-12-16 at 23:29:50
It's because the computer's AI script can change depending on what the enemy has. In the AI, there are commands that tell the computer what to do if the enemy owns this or that, if they have this much resources, or it might randomize it. It's all done in one long script.

Here's some examples that could be found in the melee scripts.

CODE
enemyowns_jump (unit) (block)
If enemy has a %1(unit), jump to %2(block).

enemyresources_jump (word) (word) (block)
If enemy has at least %1(word) minerals and %2(word) gas then jump in %3(block).

groundmap_jump (block)
If it is a ground map(in other words, if the enemy is reachable), jump to %1(block)

notowns_jump (unit) (block)
If computer doesn't have a %1(unit), jump to %2(block).

race_jump (block) (block) (block)
According to the enemy race, jump in %1(block) if enemy is Terran, %2(block) if Zerg or %3(block) if Protoss.

random_jump (byte) (block)
There is %1(byte) chances out of 256 to jump to %2(block).

resources_jump (word) (word) (block)
If computer has at least %1(word) minerals and %2(word) gas then jump in %3(block).

time_jump (byte) (block)
Jumps to %2(block) if %1(byte) normal game minutes have passed in the game.
Next Page (1)