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

[Trigger] Area Selection Trigger

Status
Not open for further replies.
Level 4
Joined
Jul 25, 2008
Messages
70
I am working on an "Art of Defense" based map where, but with 100% unique races, currently it's seven [7] players. Problem is that I know for a fact that 7 people will not join this game/stay to play... I was thinking of having a Trigger that zooms you into an area so you can select it.

I'm not real good at triggering, so no Jass please... its all mumbo jumbo to me :eek:. I'm just curious if its possible to do this completely in GUI scripting [Removal of leaks is also a good thing :wink: ]

Credits if you can help me :thumbs_up:, although I'm sure it is probably a no-brainer for veteran map makers.
 
Level 9
Joined
Jun 7, 2008
Messages
440
I dont really get what you need.
Do you want a trigger that does something when a player leaves?
What do you mean by zoom? Panning the camera to an area? Or setting the camera distance on a certain area)
I'm just curious if its possible to do this completely in GUI scripting [Removal of leaks is also a good thing ]
It really depends on what you want to do. Alot of pretty cool stuff can be done in GUI. I like JASS better but. A little more info is needed on what you actually want to do...

I recommend reading this tutorial:
http://www.hiveworkshop.com/forums/...79/how-begin-triggering-complete-noob-114877/

No offense intended.
 
I am working on an "Art of Defense" based map where, but with 100% unique races, currently it's seven [7] players. Problem is that I know for a fact that 7 people will not join this game/stay to play... I was thinking of having a Trigger that zooms you into an area so you can select it.

I'm not real good at triggering, so no Jass please... its all mumbo jumbo to me :eek:. I'm just curious if its possible to do this completely in GUI scripting [Removal of leaks is also a good thing :wink: ]

Credits if you can help me :thumbs_up:, although I'm sure it is probably a no-brainer for veteran map makers.

I cannot understand.... you zoom into an area so you can select it? what will that do?
 
Level 4
Joined
Jul 25, 2008
Messages
70
I cannot understand.... you zoom into an area so you can select it? what will that do?

Okay i need to explain myself better, sorry.

The "camera" will lock-on to the target zone and the player can choose if he wants to build there or not. No sense in having Player 1/2/3 on the left side while everyone else was either not playing or left = / .

As for leavers i just want it so that all their buildings are destroyed but all players get a certain amount of gold/lumber.
 
Level 9
Joined
Jun 7, 2008
Messages
440
Well, As for the camera part, I still dont understand. But For those that have left-
  • Events
    • Player - player X (color) leaves the game //Im not going to write out for every player.
  • Conditions
  • Actions
    • Set TempPlayer = (Triggering Player)
    • Pick every unit in (units owned by (TempPlayer) and do add picked unit to TempGroup
    • Pick every unit in (TempGroup) and do (kill (picked unit))
    • Pick every player (all players) and do add (TempUnit current gold / number of players in (all players) to (picked player) current gold. // this is easier if you have a unit group set for teams of players or all players in general. Then you can remove the "TempUnit" from that group.
    • Custom script: call DestroyForce(udg_TempGroup)
I had to recreate this without my editor so it may not be accurate. The only part I'm not sure about is, adding the gold. I think you might actually need it to be a player group. Regardless that will help you on your way. Now to your camera problem If you have a region already preset to where you want them to build, you can just do :
  • Actions
    • Camera - set camera bounds for (<Your Players>) to <Your Region>
If not, you might have to scrap it. I think you can only create regions in Jass/vJass.
 
so its like modifying the start location of a player? you zoom into a certain region then ask the player if he wants to start there?

I think this will do for the zooming

Zoom trigger
  • Events
  • Conditions
  • Actions
    • Camera - Pan Camera For Player() to Place() over 0.00 seconds
    • Camera - Set Distance of Camera to target for Player() to XXX
 
Status
Not open for further replies.
Top