• 🏆 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!

[Trigger] Problem with spawning

Status
Not open for further replies.
Level 6
Joined
Apr 20, 2007
Messages
232
Well this is quite a minor problem , but it makes me mad. I make this :
  • Events
  • Map Initialization
  • Conditions
  • Actions
  • Unit - Create 2 Quillboar Chieftain for Neutral Hostile at (Random point in Creeps at Middle1 <gen>) facing (position of (triggering unit))
BUT. IT SPAWNS 'EM IN THE SAME POINT (MIDDLE) WHAT TO DO ?
 
Last edited:
Level 3
Joined
Jan 27, 2007
Messages
54
EDIT :
Ok,All Edited

1.
  • Events
    • [COLOR="Red"]Your event here[/COLOR]
    • Conditions
    • Actions
  • Unit - Create 1 Quillboar Chieftain for Neutral Hostile at (Random point in Creeps at Middle1 <gen>) facing 10 degrees
  • Wait 0.10 seconds
  • Unit - Create 1 Quillboar Chieftain for Neutral Hostile at (Random point in Creeps at Middle1 <gen>) facing 10 degrees
 

Dr Super Good

Spell Reviewer
Level 63
Joined
Jan 18, 2005
Messages
27,191
  • Unit - Create 2 Quillboar Chieftain for Neutral Hostile at (Random pont in Creeps at Middle1 <gen>) facing (position of (triggering unit))
You reference "triggering unit" when the trigger runs on Map Iniztaliazation. . . MAP WHAT??????? I do not even think that is a valid event. . .

PLEASE UPDATE TO USE PROPPER GUI, NOT SOME MADE UP NONSENSE!!!

Otherwise, you will receive nonsense answers. . .
To make sure everything is perfect, you can copy GUI as text and paste it using just the trigger editor.
 
Last edited:

Dr Super Good

Spell Reviewer
Level 63
Joined
Jan 18, 2005
Messages
27,191
I always rembered "Unit - Create Unit" in GUI taking A player, A quantity, A unit, A location (or X/Y) and a facing ANGEL (not location). Maybe not in that order but I am sure it used to. . .

DAM GUI, both actions are labeled the blody same wordwise, I never even bothered to use facing location one since it is unefficent. Why can not one have "facing location [INSERT LOCATION HERE]" to avoid this kind of confusion. . .

Well his script still makes no sense since TRIGGERING unit on mapint??? I do not see how a unit can trigger mapint. . .

WARNING - JASS TALK BELOW
As for testing it, its obvious if you stick a location into a BJ that takes a real it will be invalid. It is like trying to give an integer but giving a unconverted unit instead, both make no sense to the interperater unless converted.
END JASS TALK
 
Level 7
Joined
Jun 4, 2006
Messages
127
I'll completly say whats the problem, I haven't really read the posts yet so...


The actions creating 2 of the mobs will only go to one point. Also your trigger leaks.. fix it but it depends on your event. And also it will not face into anything.

  • Spawn
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set VarPoint = (Random Point in (Playable Map Area))
      • Unit - Create 2 Quillboar Chieftain for Neutral Hostile at [b]VarPoint[/b] facing [b]Default facing degrees[/b]
      • Custom script: call RemoveLocation(udg_VarPoint)
 
Last edited by a moderator:
Status
Not open for further replies.
Top