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.
[05:05 pm]
Vrael -- Its simple, just send all minerals to Vrael until you have 0 minerals then your account is gone
[04:31 pm]
Zoan -- where's the option to delete my account
[04:30 pm]
Zoan -- goodbye forever
[04:30 pm]
Zoan -- it's over, I've misclicked my top right magic box spot
[2024-4-14. : 9:21 pm]
O)FaRTy1billion[MM] -- there are some real members mixed in those latter pages, but the *vast* majority are spam accounts
[2024-4-14. : 9:21 pm]
O)FaRTy1billion[MM] -- there are almost 3k pages
[2024-4-14. : 9:21 pm]
O)FaRTy1billion[MM] -- the real members stop around page 250
[2024-4-14. : 9:20 pm]
O)FaRTy1billion[MM] -- look at the members list
[2024-4-12. : 12:52 pm]
Oh_Man -- da real donwano
da real donwano shouted: This is the first time I've seen spam bots like this on SEN. But then again, for the last 15 years I haven't been very active.
it's pretty common
[2024-4-11. : 9:53 pm]
da real donwano -- This is the first time I've seen spam bots like this on SEN. But then again, for the last 15 years I haven't been very active.
Please log in to shout.


Members Online: X405