• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

About summoning!

Status
Not open for further replies.
Level 3
Joined
Apr 5, 2008
Messages
41
Uhm.. i want to make a skill that can summon an egg that will hatch into an ant with unlimited life span can someone teach me how?
 
Level 12
Joined
Jul 27, 2008
Messages
1,181
Create the egg, and give it a summon skill (like feral spirit) (customized ofc).

Make the skill have a casttime, and order the egg to cast immediately(by triggers).

Change the summon duration to 0, and the unit to your summon and you're done.
 
Level 7
Joined
Jul 18, 2009
Messages
272
You create 2 Units, the Egg and the Ant.

Then you change a summoning ability (like summon water elemental) so that it summons your egg and change the duration to the hatching time you want.

Now you can either do the rest with or without triggers.

With trigger: When the egg dies, you create the ant at it's position. Advantage: you can make that the ant isn't spawned when the egg is killed by an enemy.

Without trigger: You change the ability "produce hydra" (or something like that) to number of units - 1 and unittype - ant. Advantage: no triggers needed.
 
Level 3
Joined
Apr 5, 2008
Messages
41
Ok ive done that, thanks! now...

- How can i change the model size? and color
- How can i make the workers to harvest food automaticaly (need suggestions) like in sim ant.

I hope you guys will still help me with this
 
Level 37
Joined
Mar 6, 2006
Messages
9,240
You can change size and color in object editor:

Art - Scaling Value
Art - Tinting color (red, green, blue)

or with triggers:

Animation - Change unit's size
Animation - Change unit's vertex coloring

For the automatic harvesting:

Unit enters playable map area
Unit type of triggering unit equal to...
Order triggering unit to right click gold mine
 
Level 3
Joined
Apr 5, 2008
Messages
41
No i mean like pick items named food from the ground and bring it to the queen? something like that. and when the item is used, the map will make a new one in random position.
 
Level 37
Joined
Mar 6, 2006
Messages
9,240
  • Untitled Trigger 052
    • Events
      • Unit - A unit enters (Playable map area)
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Paladin
    • Actions
      • Set Temp_Loc_1 = (Position of (Triggering unit))
      • Set Temp_Real_1 = 9999999.00
      • Item - Pick every item in (Playable map area) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Item-type of (Picked item)) Equal to Claws of Attack +15
            • Then - Actions
              • Set Temp_Loc_2 = (Position of (Picked item))
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Distance between Temp_Loc_1 and Temp_Loc_2) Less than Temp_Real_1
                • Then - Actions
                  • Set Temp_Item_1 = (Picked item)
                  • Set Temp_Real_1 = (Distance between Temp_Loc_1 and Temp_Loc_2)
                • Else - Actions
              • Custom script: call RemoveLocation(udg_Temp_Loc_2)
            • Else - Actions
      • Unit - Order (Triggering unit) to Right-Click Temp_Item_1
      • Custom script: call RemoveLocation(udg_Temp_Loc_1)
This orders the unit to go to pick up food when they spawn. The unit will head to the closest item of that type.

Then create another trigger, with the event of "Unit acquires an item". Check the item type, and order the unit to move to the queen.

Then have a trigger check when the unit arrives to the queen, and make the unit give the item to the queen, and order it to get more food.

Then create another item of that type

  • Untitled Trigger 053
    • Events
    • Conditions
    • Actions
      • Set Temp_Loc_1 = (Random point in (Playable map area))
      • Item - Create Tome of Experience at Temp_Loc_1
      • Custom script: call RemoveLocation(udg_Temp_Loc_1)
Though it's not simple as that. You don't want to create items at locations you can't get to. You might want to use regions or something.
 
Level 3
Joined
Apr 5, 2008
Messages
41
Nice! But i want it to be a skill so i can make the ant to stop gathering food. Thanks for the help anyway.

But i have a problem

I made a skill by editing the summon water elemental. I changed the summon monster to an egg when the life span time ends the ants spawn because of the spawn hydra skill.. but the thing is when someone kill the egg the ant emerges fully developed which i dont like. can you help me?

And also... About the Waygate? It doesnt work properly.. when i place the waygate in the ground and place another one coz i assumed that'll be the first waygates users path. but it doesnt work.. i dont know how to make it work right.

EDITED:
I'm stuck at making the trigger you enlisted.. I dont know how to the following.
Set Temp_Loc_1 = (Position of (Triggering unit))
Set Temp_Real_1 = 9999999.00
Item - Pick every item in (Playable map area) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item-type of (Picked item)) Equal to Claws of Attack +15
Then - Actions
Set Temp_Loc_2 = (Position of (Picked item))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Distance between Temp_Loc_1 and Temp_Loc_2) Less than Temp_Real_1
Then - Actions
Set Temp_Item_1 = (Picked item)
Set Temp_Real_1 = (Distance between Temp_Loc_1 and Temp_Loc_2)
Else - Actions
Custom script: call RemoveLocation(udg_Temp_Loc_2)
Else - Actions
Unit - Order (Triggering unit) to Right-Click Temp_Item_1
Custom script: call RemoveLocation(udg_Temp_Loc_1)

especially this one... i dont know how to do this. Set Temp_Loc_1 = (Position of (Triggering unit))
 
Last edited:
Level 3
Joined
Apr 5, 2008
Messages
41
how about that?
Set Temp_Real_1 = 9999999.00

(Distance between Temp_Loc_1 and Temp_Loc_2) Less than Temp_Real_1

And also... About the Waygate? It doesnt work properly.. when i place the waygate in the ground and place another one coz i assumed that'll be the first waygates users path. but it doesnt work.. i dont know how to make it work right.
 
Level 3
Joined
Apr 5, 2008
Messages
41
Ok ill try that now. do you have ym or msn?

what do you mean by real comparison? where can i find that? and how can i put the distance?

EDITED:
I think i got the distance thing but the prob is.. I set the variable type for Temp_Real_1 to Real. did i do it right??
(Distance between Temp_Loc_1 and Temp_Loc_2) Less than Temp_Real_1

and

I set Temp_Item_1's variable type to Item. is it right?
Set Temp_Item_1 = (Picked item)

I cant figure out how to do this...
Unit - Order (Triggering unit) to Right-Click Temp_Item_1

whats are this for??
Custom script: call RemoveLocation(udg_Temp_Loc_1)
Custom script: call RemoveLocation(udg_Temp_Loc_2)
 
Last edited:
Level 22
Joined
Feb 3, 2009
Messages
3,292
Ok ill try that now. do you have ym or msn?

what do you mean by real comparison? where can i find that? and how can i put the distance?

EDITED:
I think i got the distance thing but the prob is.. I set the variable type for Temp_Real_1 to Real. did i do it right??
(Distance between Temp_Loc_1 and Temp_Loc_2) Less than Temp_Real_1

and

I set Temp_Item_1's variable type to Item. is it right?
Set Temp_Item_1 = (Picked item)

I cant figure out how to do this...
Unit - Order (Triggering unit) to Right-Click Temp_Item_1

whats are this for??
  • Custom script: call RemoveLocation(udg_Temp_Loc_1)
  • Custom script: call RemoveLocation(udg_Temp_Loc_2)


Custom script: call RemoveLocation(udg_Temp_Loc_1)
Custom script: call RemoveLocation(udg_Temp_Loc_2)[/QUOTE]

Remove locations which leak and can cause lag.
 
Level 3
Joined
Apr 5, 2008
Messages
41
ok ill try it.

EDIT:

I tried it and it works smoothly. But i want the unit to do it continuously until i want it to. How can i make it like when i want the trigger to be triggered when a certain skill is used to gather items?
 
Level 37
Joined
Mar 6, 2006
Messages
9,240
Change the event to "unit starts the effect of an ability".

Then

Set Temp_Group_1 = Units in (playable map area) matching...unit type of (matching unit) equal to...etc.
Pick every unit int Temp_Group_1


Then copy and paste the actions in the trigger inside the loop. Change (triggering unit) to (picked unit)

Add
Custom Script: call DestroyGroup(udg_Temp_Group_1)
at the very end of the trigger.

That should do it.

However, note that some units may head to the same item...
 
Level 6
Joined
Aug 26, 2009
Messages
221
But i have a problem

I made a skill by editing the summon water elemental. I changed the summon monster to an egg when the life span time ends the ants spawn because of the spawn hydra skill.. but the thing is when someone kill the egg the ant emerges fully developed which i dont like. can you help me?

make the egg and ant, and edit phoenix morphing ability:
data - alternate form unit --> ant you made self
data - normal form unit --> egg
give egg that ability and tadaaaaa.... i never try it..
 
Status
Not open for further replies.
Top