HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Proffesional Trigger Help Needed Please!!

07-05-2007, 06:54 PM#1
NLD]Potter
Hi,

I am currently working on a spell called Circle of Life, the following is the basic description of what the ability does:

The Arch Druid is able to speed up the Circle of Life by creating an enchanted shurb from a target corpse. Overtime the shurb will grow into an Ent. The Ents are permanent however, only a certain number of them can be controlled at a time.

It is based of the Carrion Beetle abilty. So at first it creates a shrub and overtime it dies and technically it should create an Ent. However, due to my noobish GUI triggering skills it is not working as i had hoped. I have been working on it for 3 days now trying to get it to work. It is sort of working but still not perfect. It is a rather long trigger so i thought i would attach a sample map of the ability.

So i was wondering if some pro's could give me some constructive critisicm on my ability and where my problems lie. I know i should be investing time in learning JASS but i dont have the time for that quite yet..

Any help is appreciated!!

Thanks in advance,

-NLD]Potter

PS. Credits to Mc! for the TimeAura model btw.
07-05-2007, 07:32 PM#2
Histenchist
You should give more information about the "problem"!

And btw why dont you just use something like this?
Trigger:
Create Ent
Collapse Events
Unit - A unit Dies
Collapse Conditions
(Unit-type of (Triggering unit)) Equal to Enchanted Shrub (Level 1)
Collapse Actions
Unit - Create 1 Ent (Level 1) for (Owner of (Triggering unit)) at (Position of (Triggering unit)) facing Default building facing degrees
07-05-2007, 08:06 PM#3
NLD]Potter
Okay the problem is that when the enchanted shrub is created a dummy is created at the shrubs position. This dummy is the time aura, it gives the spell a nice effect i think cause it is a clock with turning hands, just for the effect. It takes 21.33 seconds for the big hand to make a full 360 degrees turn and then it dies together with the shrub. At this point the Ent has to be created.. However since the caster can make multiple shrubs the ent doesnt spawn on the corresponding shrub...

So thus your proposed triggering is not effective i think, seeing as i will need to use variables and stuff to distinguish from the different shrubs..

If you take a look at the attachment it might clear up a few things...

EDIT: ROFL ... just realized that your trigger might actually be more effective .. let me give it a try .. lol sorry for that

EDIT 2: Okay i feel really stupid, but yes so far so good it seems to work.. will ask for more help if problems arise .. THANKS A LOT!!
07-05-2007, 09:24 PM#4
NLD]Potter
Okay so now that the first problem has been sorted out nicely!! Thanks Histenchist!! I have 2 new problems:

1) How do you ensure that a level 2 Ent is created using the level 2 ability? Cause i tested the ability and i created a level 1 Shrub, while that one was "growing" I upgraded the ability to level 2. When the time expired, a level 2 Ent was created on both the level 1 and level 2 shrub...
Trigger:
Shrub Dies Copy
Collapse Events
Unit - A unit Dies
Collapse Conditions
(Unit-type of (Dying unit)) Equal to Enchanted Shrub
Collapse Actions
Set Player_Number = (Player number of (Owner of (Dying unit)))
Collapse For each (Integer B) from 1 to 4, do (Actions)
Collapse Loop - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Level of Circle of Life for Caster[Player_Number]) Equal to (Integer B)
Collapse Then - Actions
Unit - Create 1 Ent_LVL[(Integer B)] for (Owner of (Dying unit)) at (Position of (Dying unit)) facing (Random angle) degrees
Collapse Else - Actions
Do nothing

The variables for "Ent_LVL" have been predefined: Ent_LVL[1] = Ent (Level 1) ... you get the picture..

Then problem (2)

This involves animations or special effects:
-how do you make the shrub grow overtime, during the 21.33 seconds it lasts?
07-06-2007, 01:28 AM#5
Castlemaster
1)A much simpler way to present that is to use the level of ability for unit command in the array portion.

Trigger:
Unit - Create 1 Ent_LVL[Level of (Circle of Life) for (Arch Druid)] for (Owner of (Dying unit)) at (Position of (Dying unit)) facing (Random angle) degrees

If you stored Arch Druid to a variable from the earlier trigger, then your system of trying to specify the level of the ent is condensed into a single command. I do almost all my array trigger spells this way and it works wonderfully.

2) There is an animation-change unit size command that will do that.
To make a "smooth" growth, you want to use a loop that ends with a wait command.

Trigger:
For each (Integer B) from 1 to 220, do (Actions)
Loop - Actions
Animation - Change (Ent Shrub)'s size to ((Integer B)%, (Integer B)%, (Integer B)%) of its original size
Wait Game time (0.10) seconds

This will change it from 1% to 220% its normal size over 22 seconds.

Hope that helps out.
07-06-2007, 01:52 AM#6
sas_Skorpion
Guys wait please ... why use triggers when u can do it this way ...

Make a unit (Enchanted Shrub) that haves it life regeneration -x
Make the ability like the phoenix egg :)
And when it dies it morphs to the Ent ... here i attached a demo

And u can make units with different levels of this morph ability and by that way u can solve the problem of lvl 2 ent :P

::::::::::: LOL DID IT WITHOUT TRIGGERS AND IT TOOK ME 5 MINUTES :P EHEEHEH ::::::::::::::::::::::
Attached Files
File type: w3xEnchanter Shrub Demo.w3x (13.0 KB)
07-07-2007, 04:46 PM#7
NLD]Potter
Quote:
Originally Posted by Castlemaster
1)A much simpler way to present that is to use the level of ability for unit command in the array portion.

Trigger:
Unit - Create 1 Ent_LVL[Level of (Circle of Life) for (Arch Druid)] for (Owner of (Dying unit)) at (Position of (Dying unit)) facing (Random angle) degrees
If you stored Arch Druid to a variable from the earlier trigger, then your system of trying to specify the level of the ent is condensed into a single command. I do almost all my array trigger spells this way and it works wonderfully.

I have already tried this and it wont work. Okay so lets say my Arch Druid has Circle of Life level 1 then creates a shrub. Then as the shrub is growing my arch druid levels up Circle of Life to level 2. Then when the level 1 shrub dies it will create a level 2 Ent seeing as the trigger tells it to make an ent according to the level of the ability. So at this point the Circle of Life ability is at level 2. You see what the problem is??

Quote:
Originally Posted by Castlemaster
2) There is an animation-change unit size command that will do that.
To make a "smooth" growth, you want to use a loop that ends with a wait command.

Trigger:
For each (Integer B) from 1 to 220, do (Actions)
Loop - Actions
Animation - Change (Ent Shrub)'s size to ((Integer B)%, (Integer B)%, (Integer B)%) of its original size
Wait Game time (0.10) seconds

This will change it from 1% to 220% its normal size over 22 seconds.

Hope that helps out.

I will try this .. Thanks a lot!!

EDIT: How do you make it so that it changes size while it is doing it birth animation for example?? Is that possible??
07-07-2007, 04:47 PM#8
NLD]Potter
Quote:
Originally Posted by sas_Skorpion
Guys wait please ... why use triggers when u can do it this way ...

Make a unit (Enchanted Shrub) that haves it life regeneration -x
Make the ability like the phoenix egg :)
And when it dies it morphs to the Ent ... here i attached a demo

And u can make units with different levels of this morph ability and by that way u can solve the problem of lvl 2 ent :P

::::::::::: LOL DID IT WITHOUT TRIGGERS AND IT TOOK ME 5 MINUTES :P EHEEHEH ::::::::::::::::::::::

i checked out your demo .. i think this mite actually work!! LoL its nice and easy!! Let me give it a try. Thanks for this idea!