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.
[11:50 pm]
O)FaRTy1billion[MM] -- nice, now i have more than enough
[11:49 pm]
O)FaRTy1billion[MM] -- if i don't gamble them away first
[11:49 pm]
O)FaRTy1billion[MM] -- o, due to a donation i now have enough minerals to send you minerals
[2024-4-17. : 3:26 am]
O)FaRTy1billion[MM] -- i have to ask for minerals first tho cuz i don't have enough to send
[2024-4-17. : 1:53 am]
Vrael -- bet u'll ask for my minerals first and then just send me some lousy vespene gas instead
[2024-4-17. : 1:52 am]
Vrael -- hah do you think I was born yesterday?
[2024-4-17. : 1:08 am]
O)FaRTy1billion[MM] -- i'll trade you mineral counts
[2024-4-16. : 5:05 pm]
Vrael -- Its simple, just send all minerals to Vrael until you have 0 minerals then your account is gone
[2024-4-16. : 4:31 pm]
Zoan -- where's the option to delete my account
[2024-4-16. : 4:30 pm]
Zoan -- goodbye forever
Please log in to shout.


Members Online: Roy, Judcfrffvf