Staredit Network

Staredit Network -> UMS Assistance -> Need Help with Nuke Trigger
Report, edit, etc...Posted by LegitXeris on 2004-12-02 at 22:10:07
hey guys,

I am using the trigger from tutorial database on a new map with only 3 triggers. after first nuke, everything is fine. Once I trigger ghost to nuke the second time, ghost won't nuke.

Also, a very weird thing is, a ghost will keep spawning at a weird random spot that has no location until 40 comes out. then it spawns at another weird location 40 times and keeps nuking at random locations

By the way here is my triggers

player 8 (Computer)
condition
always

action:
Execute AI script 'B/W Terran 2-A Fill Silos With Nuke (Type 1)' at "Anywhere".
preserve trigger

2nd trigger

player 8
conditoin
player 1 bring 1 civilian to "beacon" (Player 1 is human)
player 1 accumulate at least 5 gas

action
Execute AI script 'AI Nuke Here' at "Location to Nuke".
set gas for player 1 subtract 5 gas
move 1 civilian for player 1 to "choose magic"
preserve trigger
Report, edit, etc...Posted by SA_Max71 on 2004-12-02 at 22:39:02
Yes. I had that same problem with one of my movie maps I made. What I did to fix it was I quit using "preserve trigger" in the same trigger that has 'B/W Terran 2-A Fill Silos With Nuke (Type 1)' at "Anywhere in it. So, get rid of the preserve trigger and it should be fine.

EDIT: Just in case you want your first trigger to work more than once try using this trigger~:

Trigger
Description:
yay! this trigger will let a comp nuke more than once!
Players:
¤ one or more computer players
Conditions:
¤ death count is at least 1 of a unit you will never use (like a independent command center)
Actions:
¤ run ai script: B/W Terran 2-A Fill Silos With Nuke (Type 1)
¤ set death count to 0 of the same unit you used in your actions
¤ preserve trigger


~Because I have yet to test this, I can not guaranty that the trigger will work.

EDIT: Opps, I forgot to make the other trigger... here it is...


Trigger
Description:
this trigger will make sure the trigger above work
Players:
¤ one or more computer players
Conditions:
¤ what ever trigger you want (such as player x brings x amount of x units to x location.)
Actions:
¤ set death count to 1 of the unit you used in the first trigger
¤ presever trigger
Report, edit, etc...Posted by LegitXeris on 2004-12-03 at 00:08:32
cool it really did fix my problem thanks... but i have a new problem...

i use

player 8 (computer)

conditions
player 1 brings 1 civilian to "start nuking"
player 1 accumulate at least 5 gas

action:
set script "nuke" at "nuke location"
subtract 5 gas for player 1
move 1 civilian for player 1 to "select nuke"
preserve trigger

now... i have 4 CCs with silos. and i have 4 ghosts that do the nuking, first nukes in east, then ghost is removed, then ghost created in the west, nukes then removed, then ghost craeted in north .. etc etc.

Now my trigger only works twice... well the ghosts are stil placed and removed at the location but the ghosts no longer nukes. is it because i have ran out of nukes at silo?? but if i ran out of nukes at silo, how come i was able to nuke 8 times when i have 4 ccs and 4 silos.

how do i fix this
Report, edit, etc...Posted by Staredit.Net Essence on 2004-12-03 at 15:35:54
Are you asure your using preserve trigger to set the death count back to 1?
Report, edit, etc...Posted by LegacyWeapon on 2004-12-03 at 17:05:20
Nukes do not fire after a set amount of times.
I made a nuke dodging contest, but after around 20 nukes, the Ghosts stop firing... strangely.

The project was cancelled.
Report, edit, etc...Posted by SA_Max71 on 2004-12-03 at 18:22:45
opps, I forgot to finish my trigger... anyways please see my previous post or click on the green arrow: [right][snapback]106058[/snapback][/right]
Report, edit, etc...Posted by StealthyDeath on 2004-12-04 at 02:41:11
You should be using Type 2 script too. Type 1 is used on the BW campaign where ghosts are created at certain places and auto nukes the coordinates that are specified in the AI script.
Report, edit, etc...Posted by Turin on 2004-12-04 at 16:09:22
You also could be running out of money to make the nukes. Make them cost 0.
Report, edit, etc...Posted by SA_Max71 on 2004-12-04 at 16:24:36
QUOTE(Turin @ Dec 4 2004, 01:09 PM)
You also could be running out of money to make the nukes. Make them cost 0.
[right][snapback]106532[/snapback][/right]

that is the worst thing you can do; for some reason it crashes starcraft. to get around this, make the comp always have more than 4000 minerals and gas.
Next Page (1)