HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Demo trigger that causes fatal error when allied is in aoe...

03-29-2008, 06:39 AM#1
ThonGod
I found out that my Grimoire / JASS NewGen is causing my Warcraft to fatal.
Hidden information:
I found this trigger from one of Elilz's demo maps.

And i find that it fatals if there is an allied unit within the AOE. I edited it abit but still causes a fatal error.


This is the unedited version:
Trigger:
AOE Hero Storm Bolt
Collapse Events
Unit - A unit Spawns a summoned unit
Collapse Conditions
(Unit-type of (Summoning unit)) Equal to Mountain King
Collapse Or - Any (Conditions) are true
Collapse Conditions
(Unit-type of (Summoned unit)) Equal to Dummy Unit 1
(Unit-type of (Summoned unit)) Equal to Dummy Unit 2
(Unit-type of (Summoned unit)) Equal to Dummy Unit 3
(Unit-type of (Summoned unit)) Equal to Dummy Unit 4
(Unit-type of (Summoned unit)) Equal to Dummy Unit 5
Collapse Actions
Custom script: local group udg_AOE_LocalCasterGroup
Set AOE_CasterGroup = (Units in No region)
Set AOE_LocalCasterGroup = (Units in No region)
Collapse Unit Group - Pick every unit in (Units within AOE_Bolt_Radius[(Point-value of (Summoned unit))] of (Position of (Summoned unit)) matching ((Matching unit) Not equal to (Summoned unit))) and do (Actions)
Collapse Loop - Actions
Unit - Create 1 Dummy Unit 1 for (Owner of (Summoning unit)) at (Position of (Summoning unit)) facing Default building facing degrees
Unit - Hide (Last created unit)
Unit - Add Storm Bolt to (Last created unit)
Collapse For each (Integer A) from 1 to (Point-value of (Summoned unit)), do (Actions)
Collapse Loop - Actions
Hero - Learn skill for (Last created unit): Human Mountain King - Storm Bolt
Unit - Order (Last created unit) to Human Mountain King - Storm Bolt (Picked unit)
Unit Group - Add (Last created unit) to AOE_CasterGroup
Unit - Remove (Summoned unit) from the game
Set AOE_LocalCasterGroup = AOE_CasterGroup
Wait 2.00 seconds
Collapse Unit Group - Pick every unit in AOE_LocalCasterGroup and do (Actions)
Collapse Loop - Actions
Unit - Remove (Picked unit) from the game

And this is edited part of the spell i made:

Trigger:
Unit Group - Pick every unit in (Units within AOE_Bolt_Radius[(Point-value of (Summoned unit))] of (Position of (Summoned unit)) matching ____ (((Matching unit) belongs to an enemy of (Triggering player)) Equal to True))____ and do (Actions)

-------------------------------


Thanks,

- ThonGod

EDIT: Ok... dodgy i tihnk my WE is fatalling everytime i cast a spell or soemthing... might be grimoire/jass newgen thingy O_o
EDIT2: Tested with normal WE and works fine...


Does anyone have anyideas why grimoire/JASS Newgen is screwing up and how to fix it ?

Thanks

- ThonGod
EDIT3: Changed thread title.

EDIT4:

And Im also wondering how i would do AOE spells with varying damage instead of just first level's but in a larger area.

because
Trigger:
Unit - Order (Last created unit) to Human Mountain King - Storm Bolt (Picked unit)
seems to only do level one damge and effects

Would i set the level of the ability to a higher level ?

Trigger:
Unit - Set level of Storm Bolt for (Triggering unit) to (Point-value of Dummy Unit 3)

Then force a cast?
03-29-2008, 08:24 AM#2
Alexander244
Assuming your problem is from the war3err in NewGen4d; download the war3err rollback. Paste it into the bin folder, replacing the other one.
03-29-2008, 12:38 PM#3
ThonGod
Cool thanks!

ill check tommorow

Ill rep if it works =)

- ThonGod

+rep!