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

Character Selection Help

Status
Not open for further replies.
Level 3
Joined
Jun 18, 2008
Messages
30
Allright, so I need help wityh a trigger that when you select a neutral hero it zooms in on it and a dialog box appears asking you if you would like to be this hero. if yes is selected spawn unit at region. if cancel is selected than zoom back out and you can choose any other character.
I know there were have to be a long script of triggers for each charactrer but I think its worth it.
Any help?
 
Level 10
Joined
Sep 21, 2007
Messages
517
Player 1,2,3,4,5,6... and so forth selects a unit

conditions: owner of triggering unit = Neutral
Triggering unit is a hero = true
Chosen[player number of triggering player] = false

Actions:
pan camera for triggering player to the triggering unit in w/e seconds
change owner of triggering unit to triggering player
i suggest u set a boolean here to true, so the player cant choose anymore heroes
set Chosen[player number of triggering player] = true

------------------------------------------------------------------

Events - A player skips a cinematic sequence

reset camera view for triggering player in w/e seconds

-------------------------------------------------------------
ofc this doesnt zoom in exactly, u would have to apply camera changes by using Set Camera Field action.

err, forgot to do the dialog box, anyways im pretty sure ur able to do it urself, just do show/hide dialog to triggering player.

btw by cancel u mean ESC right? if not, do dialog button is clicked, if cancel is clicked reset the camera view and hide dialog for triggering player

gl dude
 
Status
Not open for further replies.
Top