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

[Solved] Hold Position or Patrol

Status
Not open for further replies.
Level 37
Joined
Aug 14, 2006
Messages
7,602
Hey guys!

I have a spell book system, but I deleted the attack button and put it instead of it. However, now testers said to me that it was a bad decission and I should put it instead of hold position or patrol.

So, is it possible to do this? To delete hold position or patrol and put spell book instead of hold position or patrol? It would be nice boost for the campaign if this can be done. I will give rep the one who can help me. If this needs something more, credits will be also given.

Thanks beforehand.
 
Level 4
Joined
Mar 15, 2008
Messages
71
you can't really remove hold position,just use a trigger that is activated when a unit is given an order,then check with a condition if that order is hold position and then order the unit to open the spellbook :) hope you understand what I'm suggesting ^^
 
Level 3
Joined
Sep 13, 2008
Messages
63
I don't believe you can remove stop, although you may be able to remove patrol. If you remove the stop ability, it messes up the game (units just can't stop =/ lol. Alternatively, you could make a trigger to detect when the buttons are pressed then open another spellbook.

Edit: Demo map attached. Took longer then I thought to make.
Notes:
1) You cab use the trigger "Enable/Disable ability" to keep the spellbook invisible until you need it.
2) Change the icon for stop to the spellbook. You may need to do MPQ importing or use a World Editor with the stop order visible, for editing directly.
#) You can put the spellbook on a dummy unit and use triggers to: select another unit, open a spellbook, select the previous unit, and the spellbook should work for the unit without it. Note: I don't remember if that's the exact method, or if there are any bugs with it.
4) You may be able to remove patrol without problems (of course you can't patrol anymore). Use "Enable/Disable ability" at map initialization to remove it. To find the ability Id use triggers to detect the patrol order and display it.
 

Attachments

  • Hive3.w3x
    12.3 KB · Views: 69
Last edited:
Level 37
Joined
Aug 14, 2006
Messages
7,602
First of all, thanks for your comment, zandose.

Currently, I use all six spaces like you see from this picture:

38285d1221747002-hold-position-patrol-123132.jpg


zandose said:
3) You may be able to remove patrol without problems (of course you can't patrol anymore). Use "Enable/Disable ability" at map initialization to remove it. To find the ability Id use triggers to detect the patrol order and display it.
This sounds very, very juicy. Perhaps you could put it to the map of yours? And I don't really get what you changed in your map. :D

However, rep to you already.
 

Attachments

  • 123132.JPG
    123132.JPG
    13.5 KB · Views: 302
Level 3
Joined
Sep 13, 2008
Messages
63
This sounds very, very juicy. Perhaps you could put it to the map of yours? And I don't really get what you changed in your map.
I'd be clad to, but you'll have to wait a day or so. I have to go to work soon and I won't be able to do it until tomorrow.

BTW, those icons look very cool. If you need more room you could look into replacing those abilities with spellbooks and using hotkeys for quick-use (Q-R, A-F, Z-C, V=Cancel). Once a ability is used you can force close the spellbook with triggers.

Edit: Had a few minutes before I had to leave, I ran a test to remove patrol and it didn't work. I'll need to do more research later. I know I've seen forums on removing it.
 
Level 37
Joined
Aug 14, 2006
Messages
7,602
zandose said:
I'd be clad to, but you'll have to wait a day or so. I have to go to work soon and I won't be able to do it until tomorrow.
No problem.

zandose said:
BTW, those icons look very cool. If you need more room you could look into replacing those abilities with spellbooks and using hotkeys for quick-use (Q-R, A-F, Z-C, V=Cancel). Once a ability is used you can force close the spellbook with triggers.
Well, the system is not like that. Actually the spell book is in that attack button's position.
 
Level 3
Joined
Sep 13, 2008
Messages
63
Hi again, I did some research and it seems that you can't remove buttons anymore (blizzard patched it). Once upon a time you could overlap most/all of the buttons, hiding most of them.

The only button you can get rid of in normal WE is attack. In the object editor, on your hero, find "Combat - Attack 1 - Show UI" and set to false.

Also, although you cannot remove the other buttons you can move it to a different place on the command card. Edit and Import the file "CommandFunc.txt" into your map, which can be found in the war.mpg file (mpg viewer needed).

The map below has attack removed and the other buttons at the bottom.

Edit:
Another idea, whenever your unit is selected, (triggers) force open a spellbook, giving you 11 spaces.
You may be able to detect closing of the spellbook. If so, replace the cancel buttons icon with a ability icon and use it as a ability.
 

Attachments

  • Hive4.w3x
    14.1 KB · Views: 59
Last edited:
Level 37
Joined
Aug 14, 2006
Messages
7,602
Oh, nice to see you again.

zandose said:
The only button you can get rid of in normal WE is attack. In the object editor, on your hero, find "Combat - Attack 1 - Show UI" and set to false.
This is already done. I still need more space.

zandose said:
Also, although you cannot remove the other buttons you can move it to a different place on the command card. Edit and Import the file "CommandFunc.txt" into your map, which can be found in the war.mpg file (mpg viewer needed).
This is not needed.

zandose said:
Edit:
Another idea, whenever your unit is selected, (triggers) force open a spellbook, giving you 11 spaces.
You may be able to detect closing of the spellbook. If so, replace the cancel buttons icon with a ability icon and use it as a ability.
Sounds wierd, but is there ao option that attack button could be inside a spell book?
 
Level 3
Joined
Sep 13, 2008
Messages
63
The attached map has three things. A spellbook with a dummy ability for attack. A trigger to detect when the dummy ability is used and order the unit to attack (unit)/attack-move (point/location). And another trigger to force-open the spellbook.

Notes: I was moving to a new place so I couldn't do this earlier. Also, why do you need a attack button in the spellbook. With the spellbook open the game still detects mouse orders for attack. It's just a waste of space.
 

Attachments

  • Hive5.w3x
    14 KB · Views: 79
Level 37
Joined
Aug 14, 2006
Messages
7,602
Okay, I just looked the system. The spell book system is bad and I don't like it. It also somehow lags which is very bad. But the attack system was cool, I think I'm going to put that to the campaign. However, I seen a little problem with that too. When I had many paladins and I put all to attack move to a specific place, only one paladin moved. Is this possible to repair?

Is that attack button finished? Is is leakless? Is is ready to put to the campaign? And when I put it, you will have your rep + credits at the campaign.
 
Level 3
Joined
Sep 13, 2008
Messages
63
If you find any problems tell me. Normal JASS version. Should would with multiple units. Shouldn't leak. Removed spellbook force-open trigger, you said you didn't want it and it may have leaked.
 

Attachments

  • Hive6.w3x
    14.2 KB · Views: 63
Status
Not open for further replies.
Top