Hero Selection help

Robotexual

New Member
Reaction score
3
I'm trying to make a hero selection similar to the one in Impossible Bosses.
I don't want a step by step guide, I just want some advice/hints, I want to figure it out myself but I need to be pushed in the right direction.
For those of you that haven't played Impossible Bosses,

You press the right/left arrow key to scroll through heroes, and when you find the one you want, you press ESC, and voila.
I've been trying to do figure this out for a couple days now and I'm all out of ideas, only thing I haven't tried doing is JASS, as I'm still illiterate in that language.

Anyways, any help would be appreciated, ty.
(yes I used the search engine multiple times, didn't find anything related to it.)
 

FireBladesX

Eating my wings!
Reaction score
123
There are events for triggers:
Player - Keyboard Event
Player - Player skips a Cinematic Sequence (also known as hits Esc key)

and, the action:
Selection - Select Unit for Player

Setting the possible choices to unit variable arrays would help, as well.
Never played Impossible Bosses, by the way. And your avatar reminds me of my math teacher.
 

Cloak_Master

Active Member
Reaction score
41
I'd probably assign the heroes a player based integer, using an array I suppose. Basically adding one or subtracting one each time the left and right arrow keys are hit, and rotate to the hero whose integer was queued.
 

Robotexual

New Member
Reaction score
3
Yeah, I know, it's just that I can't seem to make it compatible for more than one person.
For example, if one person presses the right arrow key, it will change the camera for everyone.
I'll post what I got in a second
 

Cloak_Master

Active Member
Reaction score
41
I'd go with

a player releases the left arrow key

a player releases the right arrow key

set Player[Player number of triggering player] = player[player number of triggering player] + 1

if player [ player number of triggering player ] = 1 then pan camera to unit x

etc.

etc.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top