HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Some advanced questions

06-01-2006, 10:15 AM#1
Soultaker
Hey guys!

1. Can you detect when a player is hovering over something that can be sold (unit, upgrade, item, etc..). And please no trackables.

2. Do we have any idea why Blizzard made all those BJ functions and set the GUI functions to them?

3. How good works sliding loading screens? Is it better than an opening cinematic (for explaining), and what are your experinces with it?

4. What is the function for destroying a unitgroup?

- Soultaker
06-01-2006, 10:18 AM#2
Captain Griffen
1. For local players you can detect where it is, you then have to syncronise them. Search, there was a thread on it recently.

2. Some they say are to put the word order better for GUI...so for most, no. Some, though, are useful, but often many that could be useful leak.

3. Never used them, most likely take up a lot of space, and I think they'd only work after loading finishes (? not sure).
06-01-2006, 03:33 PM#3
Soultaker
Quote:
Originally Posted by Captain Griffen
1. For local players you can detect where it is, you then have to syncronise them. Search, there was a thread on it recently.

I searched a bit, but I can't seem to find it.. Can you give me a clue to the name or give me a link to it?

Quote:
Originally Posted by Captain Griffen
2. Some they say are to put the word order better for GUI...so for most, no. Some, though, are useful, but often many that could be useful leak.

Hmm, didn't really get that.. It's because the leaks I was thinking a long the lines.. "Why would Blizzard make more functions just to get leaks?" o.O

Quote:
Originally Posted by Captain Griffen
3. Never used them, most likely take up a lot of space, and I think they'd only work after loading finishes (? not sure).

Well, okay.. I will properly just stick to normal cinematic, but it could be neat if some more could come with their opinions.

EDIT: Edited the first post with a new question.

- Soultaker
06-01-2006, 04:17 PM#4
Captain Griffen
Collapse JASS:
constant native GetCameraEyePositionX       takes nothing returns real
constant native GetCameraEyePositionY       takes nothing returns real
constant native GetCameraEyePositionZ       takes nothing returns real
constant native GetCameraEyePositionLoc     takes nothing returns location

common.j is good, recommend you extract it and have it open as a .txt file while map making. Those only work for local players, so you'll have to sync them (which I have no idea how to do, so I'll leave that to you to find out).

Quote:
Hmm, didn't really get that.. It's because the leaks I was thinking a long the lines.. "Why would Blizzard make more functions just to get leaks?" o.O

Because they are annoying.

For destroying unit group variables, you could have looked at one of the countless tutorials or in the common.j.

Collapse JASS:
native DestroyGroup                         takes group whichGroup returns nothing
06-01-2006, 04:19 PM#5
MysticGeneral
What the hell is a sliding loading screen? Lol.
06-01-2006, 04:24 PM#6
TaintedReality
Maybe he means a fade filter or something? Or images? Hard to tell =P.

Edit: Oh and on the topic of images, if you want to get readable ones they take up a ton of space because you have to make the text so big =\.
06-01-2006, 04:26 PM#7
MysticGeneral
Well, I was thinking what Blizzard did with the Monolith demo map. But I don't think it's that.
06-01-2006, 05:51 PM#8
Soultaker
Well, I was thinking more along the lines of a diasshow.. I saw this option (see picture) and thought, hmm.. that seems cool! It says when you hold over it, that it will show two different images after eachother. (It's WEU if you don't know the design).

Thanks for the function Mystic.. Hmm, might do next time.. But I only GUI with a bit of custom script, so won't really need it.. (And no.. I will NOT switch to JASS).

Yeah I know about the images.. not gonna use that ever if it's not a LAN map.

- Soultaker
Attached Images
File type: jpgtest.jpg (123.5 KB)
06-01-2006, 08:33 PM#9
Captain Griffen
Quote:
Originally Posted by Soultaker
Well, I was thinking more along the lines of a diasshow.. I saw this option (see picture) and thought, hmm.. that seems cool! It says when you hold over it, that it will show two different images after eachother. (It's WEU if you don't know the design).

Wouldn't really be able to get much utility out of that, and it would take up a lot of room.

Quote:
Thanks for the function Mystic.. Hmm, might do next time.. But I only GUI with a bit of custom script, so won't really need it.. (And no.. I will NOT switch to JASS).

Well, thanks a lot for bothering to get the name right...(*sigh*).
06-02-2006, 06:33 AM#10
Soultaker
Quote:
Originally Posted by Captain Griffen
Wouldn't really be able to get much utility out of that, and it would take up a lot of room.

Yeah, it properly will. I'll see if it works with paletted tga's, or the 100 kb trick.

Quote:
Originally Posted by Captain Griffen
Well, thanks a lot for bothering to get the name right...(*sigh*).

Heh, don't you write in JASS? After a bit of time you should know how to write it right :) Else I know that a lot of other people that can it by heart.

So no problem. Glad I helped you remember it to next time some guy asks.

- Soultaker