I've been looking for a tutorial to teach how to make a computer player to spawn nydus worms and unload the units from worm. It would be pretty cool, if there would be 1-5 nydus worm spawning at a time. But unfortunately, I haven't found any tutorials for that, so I decided to ask for some help.
I like to play against the computer AI, it's more comfortable for me so thats why I want to learn about spawning nydus worms.
I know it's done from the triggers.
And by the way, I would like to know, how to make zergs rain (I hope you know what I'm trying to say).
First, place 11 points on the map (hotkey P while in the terrain editor)
Triggers: Create a global variable called "NydusPoints" and have it have an array size of 10
Melee initialization trigger, add these actions:
Set (NydusPoints[0]) == (Point 000)
Repeat for each point you placed, increase the array index by 1 every time.
The action is called "Set Variable"
Create a new global variable called "ZergArmy"
Trigger:
The event is "Time Elapsed" and the actions are "Issue order to unit" (you have to change the order type to "targetting unit" for the first one, targetting point for the second, and no target for the third), "wait" and "Pick each unit in unit group". If there are multiple unload commands, pick the one the nydus worm has.
I hope i got these triggers right and didnt forget anything.
In any case, if it doesnt work, check what doesnt make sense and/or scroll through the actions list and see for yourself what might work.
EDIT: I have some problems at following your tutorial.
I chosed Set Variable, but this is all I got;
Set NydusPoints[0] =
Did I do something wrong?
And I can't find these:
(Unit attribute check(Structure)) == False (not sure whether i wrote this condition correctly)
(Unit attribute check(Missile) == False
If they are not: ((Unit type of (Triggering unit)) has Structure attribute) == false
because:
Unit Type Attribution Check
- Unit: Unit Type Of Unit
- Unit: Triggering Unit
- Attribute Type: Structure
Operator: ==
Value 2: False
And then
Add unit to unit group doesn't let choose (ZergArmy).
So, How many Triggers and Global Variables do I have to have?
EDIT: I have some problems at following your tutorial.
I chosed Set Variable, but this is all I got; Set NydusPoints[0] = Did I do something wrong?
And I can't find these: (Unit attribute check(Structure)) == False (not sure whether i wrote this condition correctly) (Unit attribute check(Missile) == False
If they are not: ((Unit type of (Triggering unit)) has Structure attribute) == false because: Unit Type Attribution Check - Unit: Unit Type Of Unit - Unit: Triggering Unit - Attribute Type: Structure Operator: == Value 2: False
And then Add unit to unit group doesn't let choose (ZergArmy).
So, How many Triggers and Global Variables do I have to have?
Sorry, I'm a little bit stupid :)
Thanks.
I was looking at this as well and had the same problem, what I had to set the variable to was point.
NydusPoints = No Point <Point[8]>
Haven't played with the rest of the trigger yet, but will do so later on.
Btw sorry for the threadromancy. Was hoping to help Draun if they hadn't worked it out yet.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hey,
I've been looking for a tutorial to teach how to make a computer player to spawn nydus worms and unload the units from worm. It would be pretty cool, if there would be 1-5 nydus worm spawning at a time. But unfortunately, I haven't found any tutorials for that, so I decided to ask for some help. I like to play against the computer AI, it's more comfortable for me so thats why I want to learn about spawning nydus worms. I know it's done from the triggers. And by the way, I would like to know, how to make zergs rain (I hope you know what I'm trying to say).
Thanks.
First, place 11 points on the map (hotkey P while in the terrain editor)
Triggers: Create a global variable called "NydusPoints" and have it have an array size of 10
Melee initialization trigger, add these actions:
Set (NydusPoints[0]) == (Point 000)
Repeat for each point you placed, increase the array index by 1 every time.
The action is called "Set Variable"
Create a new global variable called "ZergArmy"
Trigger:
The action is "Add unit to unit group"
The event is "Time Elapsed" and the actions are "Issue order to unit" (you have to change the order type to "targetting unit" for the first one, targetting point for the second, and no target for the third), "wait" and "Pick each unit in unit group". If there are multiple unload commands, pick the one the nydus worm has.
I hope i got these triggers right and didnt forget anything.
In any case, if it doesnt work, check what doesnt make sense and/or scroll through the actions list and see for yourself what might work.
Thanks! I've been looking that for so long.
EDIT: I have some problems at following your tutorial.
I chosed Set Variable, but this is all I got; Set NydusPoints[0] = Did I do something wrong?
And I can't find these: (Unit attribute check(Structure)) == False (not sure whether i wrote this condition correctly) (Unit attribute check(Missile) == False
If they are not: ((Unit type of (Triggering unit)) has Structure attribute) == false because: Unit Type Attribution Check - Unit: Unit Type Of Unit - Unit: Triggering Unit - Attribute Type: Structure Operator: == Value 2: False
And then Add unit to unit group doesn't let choose (ZergArmy).
So, How many Triggers and Global Variables do I have to have?
Sorry, I'm a little bit stupid :)
Thanks.
I was looking at this as well and had the same problem, what I had to set the variable to was point. NydusPoints = No Point <Point[8]>
Haven't played with the rest of the trigger yet, but will do so later on.
Btw sorry for the threadromancy. Was hoping to help Draun if they hadn't worked it out yet.