• 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.

[JASS] Mouse Over Function

Status
Not open for further replies.
Level 22
Joined
Dec 31, 2006
Messages
2,216
You could use trackables, but they can't be destroyed or moved.
If you use trackables here's the function you need:
native TriggerRegisterTrackableTrackEvent takes trigger whichTrigger, trackable t returns event
 
Another couple of problems with trackables are:
-You can't detect when the mouse rolls off them, as in, you can't remove the floating text when the mouse is no longer over the trackable.
-The hit size of a trackable depends on the model used. This means that you have to either use custom models for trackables to detect where you want it to detect or you have to put loads of trackables down, which can get really messy since they can't be destroyed or moved.
 
Level 9
Joined
Jul 3, 2008
Messages
495
Think its possible to detect when the mouse is no longer over the trackable. Just check if the GetTriggeringTrackable() > 0.

If you place the trackable on a flat ground. You can raise the ground with triggers when you dont need to use the trackable. Then the will be hidden under the ground.
 
Think its possible to detect when the mouse is no longer over the trackable. Just check if the GetTriggeringTrackable() > 0.
Do you know anything about Jass? Obviously not...
1. Trackable are HANDLES. You can't compare them to an integer!
2. Even if you could compare them to 0, that wouldn't work anyway. The triggering trackable is always there, unless some weird bug destroys it or the game ends, so GetTriggeringTrackable() will always refer to something in the actions, no longer how wait. It will certainly always be "greater than zero".

If you place the trackable on a flat ground. You can raise the ground with triggers when you dont need to use the trackable. Then the will be hidden under the ground.
Again, you show your inferior knowledge to us all...
1. What if the mapper in question doesn't want bumps all over his map.
2. Modifying the terrain with triggers makes your map lag like hell if you do it too much.
3. You can just make the trackable ignored by checking a boolean which says if the trackable is active or not in your trigger's conditions.

Next time, before you post something which is entirely wrong, or i just plain stupid, think, "will people thank me for this, or will I just get embarrassed by people who actually know Jass who contradict me?". Trust me, it'll help.
 
Last edited:
Level 9
Joined
Jul 3, 2008
Messages
495
1. Yes I know about jass and trackabel. Actually I have created a fullscreen system, with equipment slots, and such.

2. I wrote "I think". Its not the same as I say its possible.

3. With my system I raise and lowered the terrain. That is possible and a good way. Trackables blocks your mouse click, and drag & drop. So that is the only way to hide them.

I dont know how many and where he want his trackable. Its just an idea I give him.
 
1. If you know about trackable being handles and such, why did you tell him to compare it to an integer?
2. You didn't write "I think". You wrote "think". Since that word didn't make sense on its own, I didn't take notice of it.
3. Trackables only block your mouse clicking on units if the trackable model is bigger than the unit model you use. But if the trackable model is that big, you'd have to raise the terrain really high, and then you'd have things that looked really stupid all over your map.
 
Level 9
Joined
Jul 3, 2008
Messages
495
Yes why do you think I worte that... Hmm lets see. Just for fun, only because I was borred. No wait.... Maybe because I thought it was possible. Stop asking such stupid question.

Oh sorry I missed the "I". But im sure you undstand what i meant. Now you just want be annoying, and correct every little thinks I do worng. Im sorry
but you not my english teacher. But I could use one.

Again, I dont know how where and how many he wants. Its just still an idea. And maybe he cant use it now in his map. But maybe sometime in the furture he can use it. Who knows.
 
1. I'm just saying that, someone like you, who apparently has superior knowledge of Jass and Trackables, enough to make a fullscreen inventory system, should know that you can't compare integers to trackables.

2. Sorry, I was just defending myself. I wasn't trying to get at you with that.

3. Why don't you just concede, that that isn't the way to do it. My way is far superior. Accept it.
 
Level 9
Joined
Jul 3, 2008
Messages
495
Problem with trackables is that we can't hide or delete them. When we want to make a drag&drop box, to select more units, and hit a trackable. It will prevent us from doing a drag&drop box.

If there is trackables all over the map, it can be really annoying, that we always hit them. Then is the only way to move them down into the ground.
(or raise the terrain)

I used that way, to hide the fullscreensystem, but that is also flat models I used. Then with triggers I raised the terrain, and created som differents tiles and trees, so it looks natural.
 
Status
Not open for further replies.
Top