• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Lots of Questons

Status
Not open for further replies.
Level 3
Joined
Apr 26, 2008
Messages
26
Can i change height of unit with GUI?
Can I change icon of ability (i want first rank there icon of SUper saiyan 1 Seconds rank SS 3 And last rank SS 4)
Can i store units normal color? if i change units color with triggers i cant change it back to normal value it stays at same color and if i try to make like this
  • Animation - change units vertuxe coloring (example) 60%, 50% and 70%
  • Wait 20 seconds
  • Change units vertuxe coloring (i make all color values match (so all colors have again **100%**)
this works some way but it depends unit base color-_- so i wont work on multiple units (lol)


If you know how to solve these things answer:grin:
 
Last edited:
Level 40
Joined
Dec 14, 2005
Messages
10,532
Can i change height of unit with GUI?
Add and remove Crow Form to and from the unit, then change the fly height at will.

Can I change icon of ability (i want first rank there icon of SUper saiyan 1 Seconds rank SS 3 And last rank SS 4)
You would have to replace the ability.

Can i store units normal color? if i change units color with triggers i cant change it back to normal value it stays at same color and if i try to make like this
You'd have to store the values in variables.
 
Level 3
Joined
Apr 26, 2008
Messages
26
Thx but If Unit i make a spell what thorws enemy to air (unit is hero) then crow form wont work because 1. if heros use units morph abilitys hero just dies (i have tried to use bear form and then happens that and i think same thing happens with crow form)2. crow form can be used if i want Example casting unit to fly but if i want it to throw ENEMY in the air how can i do that? PurplePoot i would be glad if you can help with this problem :)

And what variables can you give me example how can i store color to variable?
 
Level 3
Joined
Apr 26, 2008
Messages
26
Can you please give me example about changing unit color with Trigger and making it back to normal with stored value. please
 
Level 22
Joined
Dec 31, 2006
Messages
2,216
Create these variables:
N (Integer variable)
TempN (Integer variable)
Unit (Unit variable)
ColorR (Real array variable)
ColorG (Real array variable)
ColorB (Real array variable)

Then do this:
  • Actions
    • Set N = (N + 1)
    • Set Unit = which unit
    • Set ColorR[N] = current value (RED)
    • Set ColorG[N] = current value (GREEN)
    • Set ColorB[N] = current value (BLUE)
    • Unit - Set the custom value of Unit to N
    • Animation - Change Unit's vertex coloring to (new value(RED), new value(GREEN), new value(BLUE)) with 0.00% transparency
    • Custom script: set udg_Unit = null
  • ----------------------------------------------
  • ----------------------------------------------
    • Set Unit = which unit
    • Set TempN = (Custom value of Unit)
    • Animation - Change Unit's vertex coloring to (ColorR[TempN]%, ColorG[TempN]%, ColorB[TempN]%) with 0.00% transparency
    • Custom script: set udg_Unit = null
This should work.
You should also create an if statement that checks if the variable N is above 8192. If it is then set it back to 0.
Remember to have the if statement right after you increase N by 1 so no bugs occur.
 
Status
Not open for further replies.
Top