HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Everything you always wanted to know about custom text but were afraid to ask

09-18-2002, 01:55 AM#31
DKSlayer
Sorry, wasn't sure which way you wanted to go. Anyways. you could get who the unit belongs to then get their color from that. If that would work say so or not. If so then I can post how to pull that off.
09-18-2002, 04:16 AM#32
dataangel
Problem with that is units can change owner without changing color :/
09-18-2002, 04:46 AM#33
DKSlayer
Yea, forgot that part. Need to look at some more stuff, maybe I can hunt down something I can change some.
09-18-2002, 11:58 AM#34
iceslushee
used to have a pointer to a site it was real cool moderators didnt think so...
09-18-2002, 02:40 PM#35
SuperIKI
Quote:
Originally posted by iceslushee
--- link removed, because it was just too stupid ---

You may think this is off topic but watch it till its done and im sure it will become very clear

This IS off topic indeed.
09-18-2002, 08:50 PM#36
Guest
I dunno', I'm still laughing. That was pretty freaking funny.

Fortunately I had JUST turned my volume all the way back down (I have a wife + 4 yr old + 2 yr old and have to keep volume down or risk waking them at night) before the scream.

I still jumped an inch in my seat. LOL!

Heh. Ok, sorry for perpetuating the off-topic-ness but come on, admit it was pretty funny. That music was RETARDED. LOL!

Care.
09-19-2002, 01:07 AM#37
Guest
How do I make a pointer?
09-19-2002, 07:13 PM#38
weaaddar
ussually if you place something into an array it will be a pointer.
I.e. set udg_Integerarray[1]=udg_integer. Integerarray[1] will change when udg_integer changes and udg_integer changes when integerarray[1] changes...
09-19-2002, 09:33 PM#39
Guest
so I could pass udg_integer thru my function and it will change udg_Integerarray[1]?
09-19-2002, 11:15 PM#40
weaaddar
pretty much. I actually am not sure which arrays are pointers and which aren't. I know for a fact that dialogs are atleast. IN most cases it is a pointer.
09-20-2002, 11:11 AM#41
Scio
With AddSpellEffectTarget (I believe thats the one for
targeting a unit), do the effects of the spell work, ie slow
actually slows the unit not just shows the model on him, or is that
what effecttype t is for? if so, why is there a parameter for
attachPoint, can you make one spell look different depending on
what unit it effects??
09-22-2002, 12:54 PM#42
Guest
WHAT IS WITH THE VARIABLE SCOPE OF THIS LANGUAGE!

I swear I can't figure out the variable scope in JASS2! I'm writing everything with a different variable name until I do!

Anybody out there know?

...


Please!?!
09-22-2002, 03:43 PM#43
weaaddar
huh? What do you mean variable scope?

Jass can't have multiple variables named the same thing if thats what you mean. So if you want to call your integer Array your Item Array and Unit Array Xyz your out of luck.

Also though jass is case sensitive You can't have XyZ and xYz...
09-22-2002, 05:42 PM#44
Guest
I got the following information from DrunkOM. He quoted GoldenUrg commenting on a function type. However, I wasn't able to implement it, not being at all familiar with JASS. What's the proper syntax for this function, please?

Quote:
I discovered a function to create a summoned unit (i.e. give it
the death timer).

Ever wanted a "summoned" hero?

Anyway, it's:

UnitApplyTimedLife( unit, buffId, real )

The buffId doesn't seem to matter I use 'BFig'.
Unit is obvious. Real is the seconds to death.

-- GoldenUrg

I implemented it so (which didn't work).

function Trig_Elemental_Timer_Red_Actions takes nothing returns nothing
call UnitApplyTimedLife( GetTrainedUnit(), BFig, 75.00 )
endfunction


Thanks.
09-22-2002, 06:35 PM#45
dataangel
Hey weaaddar, most arrays aren't pointers ;) Integers, Reals, Units, etc. aren't. Although arguably anything in JASS2 is a pointer......