The most simple way is this:
- respawn
- Events
- Unit - A unit Dies
- Conditions
- (Unit-type of (Dying unit)) Equal to Footman
- Actions
- Unit - Create 1 Footman for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing degrees
how to make creeps respawn with JASSNEWGEN
plz do not give me a custom text script
and stills, custom trigger text doesnt works in world editor does it? , hard to understand huh?and World Editor,
yeah you got it right, i want a trigger with jassnewgen, anything you want expect custom text script, theres some triggers that works for jassnewgen/World Editor Unlimited but not normal World Editor thats why I said jassnewgen read before talking please. I said jassnewgen/WEU because jassnewgen includes WEU if you set it too.
CrackBam said:and stills, custom trigger text doesnt works in world editor does it?
CrackBam said:well if i got it wrong and you dont say it ironic to me but something else well im sry, im not in your mind to know what you mean by some pictures into a post behind a computer sry
I used JNG before I learned jass because of other things like no doodad limit or increased number of tiles, so please give guy a break.
If you don't know or don't want to help stay away from such threads, you have off topic forums go spam there.
ty is there a way to make it timed? like after 6 secs the unit respawns etc, if yes does the unit drops the items it has to after 6 secs too, if yes i need normal drop system means based on luck etc.. and also how to make the revived unit have a system of items which shall drop after its death ? and the rect i made must touch the water too, how to make it so the respawn of creeps wont touch the water at all?
I think about the after 6 secs spawn I can doat Actions category, will it work?
- respawn
- Events
- Unit - A unit Dies
- Conditions
- (Unit-type of (Dying unit)) Equal to Footman
- Actions
- Wait 6.00 seconds
- Unit - Create 1 Footman for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing degrees
That's why I use triggering unit.If 2 units died in those 6 seconds your trigger would start a new wait and the first unit would be forgotten. The second unit would still respawn.
If 3 units died in those 6 seconds your trigger would start 2 new waits and the first two units would be forgotten. The third unit would still respawn.
You would have to make each unit unique by storing it in a unit array, example:
- Untitled Trigger 001
- Events
- Unit - A unit Dies
- Conditions
- Actions
- For each (Integer A) from 1 to 128, do (Actions)
- Loop - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- unit[(Integer A)] Equal to (Dying unit)
- Then - Actions
- Set unit[(Integer A)] = (Dying unit)
- Else - Actions
- Do nothing
- Untitled Trigger 002
- Events
- Time - Every 6.00 seconds of game time
- Conditions
- Actions
- For each (Integer A) from 1 to 128, do (Actions)
- Loop - Actions
- Unit - Create 1 (Unit-type of unit[(Integer A)]) for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing degrees
- Set unit[(Integer A)] = No unit
Note that these 2 triggers create i think 128 leaks every 6 seconds. If you want to remove the leaks find the leaks thread on hive.
These 2 triggers can hold up to 128 units in a six second period.
So basically what you're saying is that you WANT a trigger that doesn't work in the standard World Editor but does work in JassNewGenPack. Do you even know why it doesn't work in the World Editor...? That's right! Its because there are extra actions added to the trigger editor that the normal World Editor doesn't have (extra actions that are created in Jass, which you can also accomplished by using Jass in the first place in the normal World Editor...)
There is really no need to use customized triggers since they already exist in Jass in the first place.
Wow, hold your horses. You're saying that custom trigger text/Custom script (which is actually Jass) can not be used in the standard World Editor?
Without Jass you wouldn't even be abled to use GUI triggers, since they exist of Jass...
/Tripple Facepalm
JassNewgenPack was created to help improve users who know Jass by adding for example syntax highlighting and a bunch of other usefull stuff to make it easyer to write Jass.
He meant that not using "custom text script" makes no sense since JNGP was created for that reason...
Really, linking JassNewGenPack with (GUI) in the first place, is plain stupid...