HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Using vertex coloring to make a unit transparent

05-06-2007, 04:08 PM#1
marshall
Having some problem with the following code. I've added debug messages to confirm that everything is working and that the target unit of ability being cast is set (I tried performing another action on the unit which worked fine).
The color settings are working, it's just the transparency that isn't.
The annoying thing is that I did have transparency working in this way on another map that I have since deleted.
I'm stumped as to why this isn't working...

Trigger:
KesDematerialiseOn
Collapse Events
Unit - A unit Begins channeling an ability
Collapse Conditions
HeroKesPlayerNum Not equal to 0
(Casting unit) Equal to PlayerHero[HeroKesPlayerNum]
(Ability being cast) Equal to Kes Dematerialise
Collapse Actions
Set HeroKesDematerialiseTarget = (Target unit of ability being cast)
Animation - Change HeroKesDematerialiseTarget's vertex coloring to (100.00%, 100.00%, 100.00%) with 20.00% transparency
05-06-2007, 04:14 PM#2
Histenchist
I dont think it works with Channeling event...
Try to use starts the effekt.
05-06-2007, 04:28 PM#3
marshall
But the following trigger works perfectly, so it can't be that.
Trigger:
KesDematerialiseOn
Collapse Events
Unit - A unit Begins channeling an ability
Collapse Conditions
HeroKesPlayerNum Not equal to 0
(Casting unit) Equal to PlayerHero[HeroKesPlayerNum]
(Ability being cast) Equal to Kes Dematerialise
Collapse Actions
Set HeroKesDematerialiseTarget = (Target unit of ability being cast)
Unit - Order Kes Dematerialiser 0107 <gen> to Human Sorceress - Slow HeroKesDematerialiseTarget
05-06-2007, 04:30 PM#4
Captain Griffen
20% isn't likely to be easy to notice. Try 100%.
05-06-2007, 04:31 PM#5
Skurai
hmm I am no expert but it has to be something. My guess is the conditions arent satisied. I suggest u start by checking if vertex colouring works with ability channeling. If it does, then that means its likely the conditions arent satisfied.

Could it be because u are using the same variable for 2 abilities?
05-06-2007, 07:04 PM#6
marshall
I figured it out. The above triggers don't actually include some actions that I thought were completely inconsequential. One of these ultimately led to corrupting the variable in another trigger. D'oh!