Staredit Network > Forums > SC2 Assistance > Topic: Command Card / Dialogue / Problems
Command Card / Dialogue / Problems
May 28 2011, 2:14 pm
By: NicholasBeige  

May 28 2011, 2:14 pm NicholasBeige Post #1



Is it possible to edit the hotkey of an ability for an individual player?
Is it possible to edit which location on the command card UI a button appears in?
(for example I have slots 1 to 7 arrayed in a horizontal row in the bottom-center of the screen, is it possible through triggers to say button object X appears in slot 4, with hotkey 4 and but still linked to ability X?)

Note: I will want to have these command cards unique to each player - even if they are using the same 'hero' unit.
[edit] I think since this will involve setting the fields in the data editor, that I'd need to create separate units and abilities for each player - since over-riding one heroes command card would cause the command cards of all that hero unit to change - ie for different players). [/edit]

Failing all this, any suggestions on a way to implement this that doesn't revolve around the command card?

Using a dialogue is the obvious answer, but then I would have to record keypresses for abilities and come up with a clever way of showing cooldowns on buttons, etc. Also how would I get an ability to initiate through a key-press event, that allows the player to 'target' it? For example, the stim-pack ability is transient and will activate if the player simply presses it's hotkey. But for an ability like psionic storm? The key-press would have to activate the ability, and then allow the player to cast it normally (AoE cursor effect etc).



None.

May 28 2011, 3:10 pm Ahli Post #2

I do stuff and thingies... Try widening and reducing the number of small nooks and crannies to correct the problem.

The only possibility I see would be adding every button into each command card slot and control it with validators that check for something that is set/added by triggers.




May 28 2011, 4:58 pm NicholasBeige Post #3



Would the triggers and validators effect only 1 unit? And not all instances of that unit in the game?

For example, player 1 and 2 both choose Hero Y. But Player 1 uses skills A, B, C and D, whereas player 2 - using the same hero, chooses to use Skills D E, F and G?



None.

May 28 2011, 5:02 pm DevliN Post #4

OVERWATCH STATUS GO

I don't think you would need to make separate abilities for each player, but you could do it by creating separate units (with all the same actors, weapons, models, movers, etc. linked) and separate buttons for each player.

As for the key press to target cast, my best guess would be that you can set up a trigger where pressing a certain key changes the cursor and sets a variable (like Psi Storm Cast = True or something). Then in another trigger, use the Mouseclick at Event with "Psi Storm Cast = True" as a condition, and then create the Psi Storm ability at the location of your XYZ mouseclick. In that same trigger, you would also set Psi Storm Cast to False, and reset the cursor.



\:devlin\: Currently Working On: \:devlin\:
My Overwatch addiction.

May 28 2011, 5:27 pm NicholasBeige Post #5



Quote from DevliN
I don't think you would need to make separate abilities for each player, but you could do it by creating separate units (with all the same actors, weapons, models, movers, etc. linked) and separate buttons for each player.

As for the key press to target cast, my best guess would be that you can set up a trigger where pressing a certain key changes the cursor and sets a variable (like Psi Storm Cast = True or something). Then in another trigger, use the Mouseclick at Event with "Psi Storm Cast = True" as a condition, and then create the Psi Storm ability at the location of your XYZ mouseclick. In that same trigger, you would also set Psi Storm Cast to False, and reset the cursor.
Yeah I feared that would be the case regarding targeted abilities being activated through a dialogue. I want to minimize trigger usage as much as possible since there is no need to reinvent the wheel -IF- I can manage to get the command cards to function like Ahli described. I believe it is possible, just going to be a headache validating each ability and displaying it for the correct player unit etc. Especially since players can chop and change their command cards at will (when in Town) - and this is already achieved through a dialogue.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[2020-10-19. : 7:29 am]
C(a)HeK -- sraw531
sraw531 shouted: GGmano just fyi, might be a good idea in the future to link to the thread in the shoutbox when you reference a new thread
here it is - http://www.staredit.net/topic/18132/unread/#special
[2020-10-19. : 7:19 am]
sraw531 -- GGmano
GGmano shouted: i made a topic about it if anyone knows something about this please check the topic
just fyi, might be a good idea in the future to link to the thread in the shoutbox when you reference a new thread
[2020-10-19. : 4:46 am]
C(a)HeK -- SiberianTiger
SiberianTiger shouted: C(a)HeK yes correct it is a multiplayer map
Unfortunately, I don't have free time for multiplayer
[2020-10-18. : 10:06 pm]
SiberianTiger -- C(a)HeK
C(a)HeK shouted: GGmano I answered you as best I could
yes correct it is a multiplayer map
[2020-10-18. : 9:12 pm]
GGmano -- thanks c(a)hek
[2020-10-18. : 9:05 pm]
lil-Inferno -- mad AF
[2020-10-18. : 8:57 pm]
*KrayZee angrily uses a pen and fills in the circle for Joe Biden*
[2020-10-18. : 4:59 pm]
C(a)HeK -- GGmano
GGmano shouted: i made a topic about it if anyone knows something about this please check the topic
I answered you as best I could
[2020-10-18. : 2:01 pm]
GGmano -- i made a topic about it if anyone knows something about this please check the topic
[2020-10-18. : 2:00 pm]
GGmano -- hi all does anyone knows what difference save files does??
Please log in to shout.


Members Online: Andrea Rosa, Roy, GGmano, Milestone, DarkenedFantasies, MTiger156, fford