| 11-23-2003, 06:31 PM | #1 |
this is the screwed up trigger.... plz help it is run only in to ways, the way in the events, (someone clicks on a unit), and when you stop pressing an arrow key (this map makes you focus on a scroll purpose unit because i am simulateing a turn based game) in any case i am wondering Y the freaken heck it crashes war 3... oh, and i use LOTs of variables to refer to stuff so that when i have 2 go and copy and paste trigger code, all i have to change is x where x refers to the player, i have already througly checked, and they all refer to the right stuff... (and in this case everything is player 1 (x+1 is the players number, cause everything starts at 0 in programing)) |
| 11-23-2003, 06:37 PM | #2 |
send me the map and i can help you more. It would be better that way because icould fix it for you. [email protected] |
| 11-23-2003, 08:26 PM | #3 |
Yes Everything in programing starts with zero, but this is the world editor for warcraft 3. It automatically changes it from 1 to 0. This was designed for anyone to use. If you set x = 1 it should work properly. Hope this helped. |
| 11-23-2003, 08:48 PM | #4 |
naw thats not the problem cause it selects fine, but it freezes AFTER it selects..... |
| 11-23-2003, 08:53 PM | #5 |
What in the heck is this supposed to do, anyway? Could there be a simpler way to do this? What's the goal of this trigger? |
| 11-23-2003, 09:27 PM | #6 |
alright main idea is to disable mouse use, i want it to be fully done with keyboard as much as possible. this is a "board game" mixed with cool terrain, and warfare. (Well thats the plan right now just working on system of movement and stuff). anyway in the game you are locked on to the scroll unit (which is a custom hexagon made by a really cool dude whose name i forget...) in anycase, i dont want you to be able to click on a unit, unless the scroll unit is underneath the unit. (thats what it is called for, when the arrow key for the scroll keys movement is let go of, it calls this to check if it is underneath a unit) BUT thats not the only purpose of this trigger, i figured i could save 8-12 triggers (number of players game can have) by makeing it so that it also makes it so u cant use the mouse to select any other units... anyway i know its kinda a weird consept, and so maybe hard to understand, but thats what im trying to do with this... |
