HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

MUI Spell

07-22-2006, 05:02 AM#1
Karawasa
Hey Guys,

I am wanting to make the following spell MUI. I tried using customscript to set the Des variable to local but its an array :(. Here is the code:

Trigger:
Tree Wall
Collapse Events
Unit - A unit Starts the effect of an ability
Collapse Conditions
Tree_Ring[(Player number of (Owner of (Picked unit)))] Equal to True
(Ability being cast) Equal to Uproot
Collapse Actions
Set Temp_Point = (Target point of ability being cast)
Set Real = 0.00
Collapse For each (Integer A) from 1 to 30, do (Actions)
Collapse Loop - Actions
Set Point = (Temp_Point offset by 250.00 towards Real degrees)
Special Effect - Create a special effect at Point using Objects\Spawnmodels\NightElf\NEDeathSmall\NEDeathSmall.mdl
Special Effect - Destroy (Last created special effect)
Destructible - Create a Ruins Tree Wall at Point facing (Random angle) with scale 1.00 and variation 0
Set Real = (Real + 12.00)
Set Temp_Des[(Integer A)] = (Last created destructible)
Custom script: call RemoveLocation(udg_Point)
Wait 7.50 game-time seconds
Collapse For each (Integer A) from 1 to 30, do (Actions)
Collapse Loop - Actions
Destructible - Remove Temp_Des[(Integer A)]
Custom script: call RemoveLocation(udg_Temp_Point)

All help appreciated, thanks!
07-22-2006, 09:27 AM#2
iNfraNe
add
Trigger:
Custom Script: local destructable array udg_Temp_Des
And it should be fine.

It can leak a location however, move the last action to just above the wait to fix it.
07-22-2006, 10:14 AM#3
Karawasa
I keep getting these compile errors. Like expected endloop and expected variable etc.

I tried putting that line in several places but same problem. What should I do/where do I put it?
07-22-2006, 10:59 AM#4
PipeDream
that trick isn't valid syntax for arrays, at least in the WE. convert the trigger to custom text and use a different name for the array.
07-22-2006, 11:11 AM#5
The)TideHunter(
Your spell wont work anyway im afraid.
Your code condition says:

Trigger:
Tree_Ring[(Player number of (Owner of (Picked unit)))] Equal to True

Their is no Picked Unit in a trigger condition, Picked unit is used for the action: (Pick units in critera.)
07-22-2006, 03:57 PM#6
emjlr3
establish ur local as the first thing in the actions function
07-22-2006, 04:40 PM#7
Karawasa
Tried that, it failed. Condition is triggering unit in the editor but picked in that post for some reason...Anyway condition is fine.
07-23-2006, 06:19 AM#8
Karawasa
Hulk Smash resolved!