Staredit Network

Staredit Network -> UMS Assistance -> [SOLVED] spider mines
Report, edit, etc...Posted by Medieval_Massacre on 2005-11-05 at 21:26:10

null
Trigger
Players:
¤ Player 8
Conditions:
¤ Always
Actions:
¤ Center location labeled "mine" on spider mine owned by player 8 at anywhere
¤ Preserve trigger




null
Trigger
Players:
¤ Player 8
Conditions:
¤ Player 8 brings exactly 0 vulture spider mine to location "mines"
Actions:
¤ Create 1 spider mine at "mine" for player 8
¤ Preserve trigger


The spider mine isnt being created. Any help?
Report, edit, etc...Posted by Joshgt2 on 2005-11-05 at 22:03:19
The mine should be created but there might be a bug in the whole map in general. Maybe you can't create spider mines like that. You might have to set the hanger count on the vulture and try finding the AI sript that might make the vulture always lay the mine down when the ocnditions are met.
Report, edit, etc...Posted by Urmom(U) on 2005-11-05 at 22:03:35
Try adding "Set Switch" for the first triggers actions and add "Switch is set" for the second triggers conditions.

Josh, you can't modify hangar count for vultures. There is no AI script for that either.

Make sure that the triggers are owned by the correct player, that the player has a start location, and any other small thing.
Report, edit, etc...Posted by Joshgt2 on 2005-11-05 at 22:05:49
I didn't know. I was just trying to come up with things that might help the guy out with this problem.
Report, edit, etc...Posted by Staredit.Net Essence on 2005-11-06 at 03:05:40
QUOTE(Medieval_Massacre @ Nov 6 2005, 12:26 PM)

null


Trigger
Players:
¤ Player 8
Conditions:
¤ Always
Actions:
¤ Center location labeled "mine" on spider mine owned by player 8 at anywhere
¤ Preserve trigger


null


Trigger
Players:
¤ Player 8
Conditions:
¤ Player 8 brings exactly 0 vulture spider mine to location "mines"
Actions:
¤ Create 1 spider mine at "mine" for player 8
¤ Preserve trigger


The spider mine isnt being created. Any help?
[right][snapback]349215[/snapback][/right]


add a wait time to the first trigger.





problem solved
Report, edit, etc...Posted by notnuclearrabbit on 2005-11-06 at 05:52:33
[center]Spider mines doen't activate 'Bring' conditions.[/center]
Report, edit, etc...Posted by Kenoli on 2005-11-06 at 11:04:32
QUOTE
Spider mines doen't activate 'Bring' conditions.
Yes they do, but even if they didn't it would just make a ton of mines, not make none.

First make sure your triggers are right. Then make sure that there isn't actually a spider mine in the location. If there are any spider mines for player8 on the map, that location will be on one, and it won't make a mine.
Report, edit, etc...Posted by PCFredZ on 2005-11-06 at 15:42:44
QUOTE(Medieval_Massacre @ Nov 5 2005, 09:26 PM)

null


Trigger
Players:
¤ Player 8
Conditions:
¤ Always
Actions:
¤ Center location labeled "mine" on spider mine owned by player 8 at anywhere
¤ Preserve trigger


null


Trigger
Players:
¤ Player 8
Conditions:
¤ Player 8 brings exactly 0 vulture spider mine to location "mines"
Actions:
¤ Create 1 spider mine at "mine" for player 8
¤ Preserve trigger


The spider mine isnt being created. Any help?
[right][snapback]349215[/snapback][/right]

How many spider mines are there supposed to be on the map at any given time? If there will be more than 1, your method will need tweaking.

Now, for the actual logic debug:

Trigger 1 will run even if there are no spider mines owned by P8, because the condition is "Always". Since it cannot detect the mine, it will center the location at the exact center of "anywhere".

Trigger 2 will then immediately run since you would not have a spider mine at the center of the map.
Report, edit, etc...Posted by Gigins on 2005-11-06 at 16:14:18
If there is no unit to center location on then it isn't centered on anywhere. It just stays wherever it is. The trigger runs when he have no mines and then creates a mine, when it dies, a new one is created. THe trigger works BTW, it's something else that disturbs it.

[Solved]?
Report, edit, etc...Posted by Mini Moose 2707 on 2005-11-06 at 16:23:55
The only reason I can see for the trigger not working is that Player 8 doesn't have a Start Location or is for some other reason (defeat trigger, etc) not in the game.
Report, edit, etc...Posted by Tanos on 2005-11-06 at 16:58:05

Trigger
Description:
Trigger A
Players:
¤ Player 8
Conditions:
¤ Switch 'CenterMines' is ON.
Actions:
¤ Center Location 'Mines' on any Spider Mine for Player 8.
¤ Wait 2000 Milliseconds.
¤ Set Switch 'CenterMines' OFF
¤ Preserve Trigger.



Trigger
Description:
Trigger B
Players:
¤ Player 8
Conditions:
¤ Bring Atleast '0' Spider Mines to 'Mines'.
¤ Switch 'CenterMines' is OFF.
Actions:
¤ Create 1 Spider Mine at location 'Mines'.
¤ Set Switch 'CenterMines' ON.
¤ Wait 2000 Milliseconds.
¤ Preserve Trigger.


This this will work! i hope blink.gif
Note: I never use 'Exactly' because it always messes up with me so i use 'Atleast' and 'AtMost'.
Report, edit, etc...Posted by PCFredZ on 2005-11-06 at 17:12:25
QUOTE(DEAD @ Nov 6 2005, 04:14 PM)
If there is no unit to center location on then it isn't centered on anywhere. It just stays wherever it is.
[Solved]?
[right][snapback]349721[/snapback][/right]

Try it yourself and see what happens.
Report, edit, etc...Posted by Medieval_Massacre on 2005-11-06 at 19:05:05
Thanks for all the help. What happened was when the spider mine would get destroyed, it would make it in the center of the map, but when I posted this, I didn't get the idea that it would make it in the middle of the map until PCFredZ brought that up. I think it was becasue i put it as "Anywhere." I also had to change the "Exactly" to "At Most". I was using hyper triggers. I also made a location and instead of saying anywhere. I made it over a small place and it made it in the center of that location. So if a spider mine dies i guess when you recreate it with the triggers i used its recreated in the center of the location.

Anyway, Problem Solved, Thnx
Next Page (1)