wc3campaigns
WC3C Homepage - www.wc3c.netUser Control Panel (Requires Log-In)Engage in discussions with other users and join contests in the WC3C forums!Read one of our many tutorials, ranging in difficulty from beginner to advanced!Show off your artistic talents in the WC3C Gallery!Download quality models, textures, spells (vJASS/JASS), systems, and scripts!Download maps that have passed through our rigorous approval process!

Go Back   Wc3C.net > Warcraft III Modding > Developer's Corner > Triggers & Scripts
User Name
Password
Register Rules Get Hosted! Chat Pastebin FAQ and Rules Members List Calendar



Reply
 
Thread Tools Search this Thread
Old 01-09-2009, 10:52 PM   #1
holyadvocate
User
 
holyadvocate's Avatar
 
Join Date: Dec 2006
Posts: 377

holyadvocate is on a distinguished road (19)

Default Code not working

Should be working, but it isnt... sucks...i hope its because im missing something

Trigger:
Mass Hysteria
Collapse Events
Time - Every 2.00 seconds of game time
Conditions
Collapse Actions
Collapse Unit Group - Pick every unit in (Units in (Playable map area) matching (((Picked unit) has buff Mass Hysteria ) Equal to True)) and do (Actions)
Collapse Loop - Actions
Unit - Order (Picked unit) to Attack (Random unit from (Units within 512.00 of (Position of (Picked unit))))

Last edited by holyadvocate : 01-10-2009 at 12:52 AM.
holyadvocate is offline   Reply With Quote
Sponsored Links - Login to hide this ad!
Old 01-09-2009, 10:57 PM   #2
Anitarf
Procrastination Incarnate


Development Director
 
Join Date: Feb 2004
Posts: 8,177

Submissions (19)

Anitarf has a brilliant future (903)Anitarf has a brilliant future (903)Anitarf has a brilliant future (903)Anitarf has a brilliant future (903)Anitarf has a brilliant future (903)Anitarf has a brilliant future (903)Anitarf has a brilliant future (903)Anitarf has a brilliant future (903)

2008 Spell olympics - Fire - SilverApproved Map: Old School Alliance TacticsHero Contest #2 - 3rd PlaceSpell making session 2 winner

Default

Try copying your actual trigger (copy as text option) and paste it in [trigger] tags.
__________________
Anitarf is offline   Reply With Quote
Old 01-10-2009, 12:52 AM   #3
holyadvocate
User
 
holyadvocate's Avatar
 
Join Date: Dec 2006
Posts: 377

holyadvocate is on a distinguished road (19)

Default

Displayed the trigger properly...

cool feature...

Last edited by holyadvocate : 01-10-2009 at 12:57 AM.
holyadvocate is offline   Reply With Quote
Old 01-10-2009, 01:09 AM   #4
TheSecretArts
Galaxy Scripter
 
TheSecretArts's Avatar
 
Join Date: Mar 2007
Posts: 1,077

Submissions (2)

TheSecretArts will become famous soon enough (38)TheSecretArts will become famous soon enough (38)

Send a message via AIM to TheSecretArts Send a message via MSN to TheSecretArts Send a message via Yahoo to TheSecretArts
Default

How is it 'not working', are the units not attacking units? Because they might be picked unattackable units.

Edit: OH DUH, its this line right here
Trigger:
Unit Group - Pick every unit in (Units in (Playable map area) matching (((Picked unit) has buff Mass Hysteria ) Equal to True)) and do (Actions)
It should be
Trigger:
Unit Group - Pick every unit in (Units in (Playable map area) matching (((Unit Being Matched) has buff Mass Hysteria ) Equal to True)) and do (Actions)
(Or something like that)
Because the 'Picked Unit' isn't set until after the Unit Group line is evaluated. For any comparisons within that like you'll have to use 'Unit Being Matched' (or something to that degree) because that refers to the unit that is being compared in the condition, hence "matching ..."
__________________
I have officially moved exclusively to Starcraft 2 mapmaking.
Project: Escape Velocity: Nova Reloaded
Don't expect me to finish this project lol...

Last edited by TheSecretArts : 01-10-2009 at 01:14 AM.
TheSecretArts is offline   Reply With Quote
Old 01-10-2009, 02:38 AM   #5
holyadvocate
User
 
holyadvocate's Avatar
 
Join Date: Dec 2006
Posts: 377

holyadvocate is on a distinguished road (19)

Default

Good to know, thank you for the help

EDIT: The ability appears to be working

Last edited by holyadvocate : 01-10-2009 at 02:42 AM.
holyadvocate is offline   Reply With Quote
Old 01-10-2009, 10:26 AM   #6
Anitarf
Procrastination Incarnate


Development Director
 
Join Date: Feb 2004
Posts: 8,177

Submissions (19)

Anitarf has a brilliant future (903)Anitarf has a brilliant future (903)Anitarf has a brilliant future (903)Anitarf has a brilliant future (903)Anitarf has a brilliant future (903)Anitarf has a brilliant future (903)Anitarf has a brilliant future (903)Anitarf has a brilliant future (903)

2008 Spell olympics - Fire - SilverApproved Map: Old School Alliance TacticsHero Contest #2 - 3rd PlaceSpell making session 2 winner

Default

Quote:
Originally Posted by holyadvocate
EDIT: The ability appears to be working
Also, it seems to be leaking a ton of groups.
__________________
Anitarf is offline   Reply With Quote
Old 01-10-2009, 10:44 AM   #7
holyadvocate
User
 
holyadvocate's Avatar
 
Join Date: Dec 2006
Posts: 377

holyadvocate is on a distinguished road (19)

Default

Quote:
Originally Posted by Anitarf
Also, it seems to be leaking a ton of groups.


Naturally, there are lots of easier ways to do this, actions which are triggered as the spell is cast and end when the spell does, etc; The OTHER effects involved do not, unfortunately, afford much leniency.

the whole spell is a mess, but it does that job, its easier and im not completely sure how else i would do it
holyadvocate is offline   Reply With Quote
Old 01-10-2009, 04:39 PM   #8
TheSecretArts
Galaxy Scripter
 
TheSecretArts's Avatar
 
Join Date: Mar 2007
Posts: 1,077

Submissions (2)

TheSecretArts will become famous soon enough (38)TheSecretArts will become famous soon enough (38)

Send a message via AIM to TheSecretArts Send a message via MSN to TheSecretArts Send a message via Yahoo to TheSecretArts
Default

JASS > GUI except when laziness / speed is an issue.
__________________
I have officially moved exclusively to Starcraft 2 mapmaking.
Project: Escape Velocity: Nova Reloaded
Don't expect me to finish this project lol...
TheSecretArts is offline   Reply With Quote
Old 01-10-2009, 06:24 PM   #9
DioD
obey
 
DioD's Avatar
 
Join Date: Feb 2006
Posts: 1,532

Submissions (4)

DioD is a jewel in the rough (220)DioD is a jewel in the rough (220)DioD is a jewel in the rough (220)DioD is a jewel in the rough (220)

Send a message via ICQ to DioD
Default

This code also have many nested for group calls, this is very hard hit for map stability.
DioD is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT. The time now is 09:29 AM.


Affiliates
The Hubb The JASS Vault Clan WEnW Campaign Creations Clan CBS GamesModding Flixreel Videos

Powered by vBulletin (Copyright ©2000 - 2017, Jelsoft Enterprises Ltd).
Hosted by www.OICcam.com
IT Support and Services provided by Executive IT Services