wc3edit.net
https://forum.wc3edit.net/

[JASS]change unit color
http://forum.wc3edit.net/deprotection-cheating-f64/change-unit-color-t36163.html
Page 1 of 1

Author:  eddydu555 [ March 23rd, 2019, 2:32 am ]
Post subject:  [JASS]change unit color

when i put any of this command under elseif -setcolor, nothing happens when i type it in in but when i put it below -vul, it works as intended...

I cant seem to understand why that's the case, pls enlighten me.

Spoiler:
Code:
elseif SubString(s2s,0,10)=="-setvcolor"then
call SetUnitColor(GetTriggerUnit(),ConvertPlayerColor(6))

Author:  haxorico [ March 28th, 2019, 3:01 pm ]
Post subject:  Re: [JASS]change unit color

Your problem is the "GetTriggerUnit()"
This trigger isn't triggered by a unit. The event is a player chat string.
Notice that none of the previous commands GetTriggerUnit.

Author:  eddydu555 [ April 4th, 2019, 2:04 pm ]
Post subject:  Re: [JASS]change unit color

I mean what's the difference between putting it below -vul and putting it below -setcolor, what's the key factor that makes it stop working? it's in the same function and everything

EDIT: nvm, it was the thing between -destid blabla endif & -int

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/