Staredit Network > Forums > SC2 Assistance > Topic: Buttons disappearing + # use
Buttons disappearing + # use
This topic is locked. You can no longer write replies here.
Sep 12 2010, 11:17 pm
By: payne  

Sep 12 2010, 11:17 pm payne Post #1

:payne:

I have two different issues:

1) When I cast my spell, even though I have set a button for both On and Off state, the button disappears until the Behaviour isn't applied anymore.
2) I'd like one of my abilities to be castable only a certain amount of times (and it should recharges based on power-ups the players would collect).



None.

Sep 12 2010, 11:22 pm Biophysicist Post #2



Quote
1) When I cast my spell, even though I have set a button for both On and Off state, the button disappears until the Behaviour isn't applied anymore.
Did you set up the command card correctly? You need to actually place both buttons on the command card.



None.

Sep 12 2010, 11:43 pm Temp Post #3



For the second one look into charges. If you have played the secret campaign mission it is what is used there.

Basically abilities will have a charge cost, you set charges through triggers (there is an action to remove charges, simply use a negative number).



None.

Sep 13 2010, 12:06 am payne Post #4

:payne:

Quote from Biophysicist
Quote
1) When I cast my spell, even though I have set a button for both On and Off state, the button disappears until the Behaviour isn't applied anymore.
Did you set up the command card correctly? You need to actually place both buttons on the command card.
How do I do so? I have placed the button itself (there's only one button created) in the Command Card. And on the Ability itself, under "Ability - Commands +", I have this button linked to On and Off states.
Quote from Temp
For the second one look into charges. If you have played the secret campaign mission it is what is used there.

Basically abilities will have a charge cost, you set charges through triggers (there is an action to remove charges, simply use a negative number).
This means I have nothing to change on the ability that is already designed? Everything I'll have to do related to those charges will be done through Trigger Editor, right?



None.

Sep 13 2010, 12:25 am Biophysicist Post #5



You need two buttons. They can be the same graphic and all that, but there needs to be two buttons. Set the "Ability Command" of one to the activate and the "Ability Command" of the other to the deactivate.



None.

Sep 13 2010, 12:25 am Temp Post #6



Quote from payne
This means I have nothing to change on the ability that is already designed? Everything I'll have to do related to those charges will be done through Trigger Editor, right?

You will need to set the cost through the ability (using the Cost property) and then giving more charges is done through triggers.



None.

Sep 13 2010, 3:00 am payne Post #7

:payne:

Quote from Temp
Quote from payne
This means I have nothing to change on the ability that is already designed? Everything I'll have to do related to those charges will be done through Trigger Editor, right?

You will need to set the cost through the ability (using the Cost property) and then giving more charges is done through triggers.
Worked, thanks!

Quote from Biophysicist
You need two buttons. They can be the same graphic and all that, but there needs to be two buttons. Set the "Ability Command" of one to the activate and the "Ability Command" of the other to the deactivate.
I did this, but it doesn't seem to work. Do you have the exact terms for the states and the exact location please?



None.

Sep 13 2010, 5:19 pm Temp Post #8



Make sure the toggle flag is set on the ability



None.

Sep 14 2010, 12:19 am payne Post #9

:payne:

Quote from Temp
Make sure the toggle flag is set on the ability
You mean, under the ability's field "Stats - Flag"? I just tried and it didn't work. :(



None.

Sep 14 2010, 12:41 am Temp Post #10



So you have both the on and off buttons on the command card and the buttons are set for the ability?



None.

Sep 14 2010, 12:47 am payne Post #11

:payne:

Wait... how am I supposed to set properly the on and off buttons on the unit's command card?



None.

Sep 14 2010, 1:12 am Temp Post #12



You put them in the same button slot, first on then off.



None.

Sep 14 2010, 1:37 am payne Post #13

:payne:

Fuck that, it won't work. :flamer:

(I removed my buttons copies because I felt like they were useless)

Attachments:
Stalk Me.SC2Map
Hits: 4 Size: 42.33kb



None.

Sep 14 2010, 2:17 am Temp Post #14



Turn the toggle flag on, in the command card where you would have an ability (absorb) have two buttons (in the same square), one for the on and one for the off.



None.

Sep 14 2010, 2:41 am payne Post #15

:payne:

Quote from Temp
one for the on and one for the off.
I guess it's this part I am missing...
How to set them so they correspond to on/off state? Do I absolutely require two buttons for a single ability or can I copy the button in the command card and change some stuff?



None.

Sep 14 2010, 2:53 am Temp Post #16



When you add a button, you select the ability, optionally select the requirements and then select the thing its going to execute. There will be two options in the last drop down named after the buttons in the ability which you set for on and off.



None.

Sep 15 2010, 4:08 am payne Post #17

:payne:

Fixed:

Use "Effect - Instant" and an "Apply Behavior" Effect instead of just a "Behavior" type Ability.



None.

Sep 18 2010, 2:33 am payne Post #18

:payne:

Okay, I'm at designing that famous power-up giving one charge to a spell.
I found the "Add charge for player" action... weird how this action actually removes instead of adding a charge! (Which is why you told me to set -1, right?)
Anyways, I do not know how to call my Seeker Missile ability with it... it asks me to enter text instead of selecting an ability. :O



None.

Sep 18 2010, 2:58 am Temp Post #19



The text comes from when you set the charge cost in the ability. There is a link property under the charge section, you can add your own here by clicked add, and that is the text you need to use.



None.

Sep 18 2010, 4:29 am payne Post #20

:payne:

Code
                       Player - Add -1.0 charges used for charge "Seeker" for player -Player

is my action.
I did set "Seeker" as the text in the ability's cost.

Why isn't it working? :(



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[05:00 pm]
lil-Inferno -- benis
[10:41 am]
v9bettel -- Nice
[01:39 am]
Ultraviolet -- no u elky skeleton guy, I'll use em better
[10:50 pm]
Vrael -- Ultraviolet
Ultraviolet shouted: How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
hey cut it out I'm getting all the minerals
[10:11 pm]
Ultraviolet -- :P
[10:11 pm]
Ultraviolet -- How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
[2024-4-17. : 11:50 pm]
O)FaRTy1billion[MM] -- nice, now i have more than enough
[2024-4-17. : 11:49 pm]
O)FaRTy1billion[MM] -- if i don't gamble them away first
[2024-4-17. : 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
Please log in to shout.


Members Online: Roy, Ultraviolet