Give a morph abilities for your hero that morph into another hero. Don't make a command card button for it.
I don't have any idea for data but you can use trigger. Event: unit gain veterancy level, condition: level = 15, action: order triggering unit to "morph"
Funny thing about trigger is that it can issue order for any hidden abilities like that
With data you may fool around with the issue order effect
sorry for the late post back this was something that i skiped to work on more stuff but how would i set a unit to "morph" into the hero i want? and i would like it to be a button so they could pick what one they wanted to morph into
i found out how to do it well kinda this is the code i used
picking hero
Events
Dialog - Any Dialog Item is used by Player (Triggering player) with event type Clicked
Local Variables
Conditions
Actions
General - If (Conditions) then do (Actions) else do (Actions)
If
(Used dialog item) == button 1
Then
Unit - Create 1 Drone for player 1 at player 1 heal using default facing (No Options)
Dialog - Hide (Relative dialog of Character Selection Dialog) for (Player group((Triggering player)))
Dialog - Hide Character Selection Dialog for (Player group((Triggering player)))
Else
Dialog - Remove all items from (Used dialog item) for (All players)
General - If (Conditions) then do (Actions) else do (Actions)
If
(Used dialog item) == button 2
Then
Unit - Create 1 Probe for player 1 at player 1 heal using default facing (No Options)
Dialog - Hide (Relative dialog of Character Selection Dialog) for (Player group((Triggering player)))
Dialog - Hide Character Selection Dialog for (Player group((Triggering player)))
Else
Dialog - Remove all items from (Used dialog item) for (All players)
General - If (Conditions) then do (Actions) else do (Actions)
If
(Used dialog item) == button 3
Then
Unit - Create 1 SCV for player 1 at player 1 heal using default facing (No Options)
Dialog - Hide (Relative dialog of Character Selection Dialog) for (Player group((Triggering player)))
Dialog - Hide Character Selection Dialog for (Player group((Triggering player)))
Else
Dialog - Remove all items from (Used dialog item) for (All players)
when i go to set my Variable i open the menu and its blank i have nothing to set but when i open the test map he included in the tutorial and he has the global source and i have no idea why i dont have them if what im thinking is right it should be a mod like liberty (mod) and liberty muti (mod) or challenges.sc2mod all of them are depentceys so im thinking that theres a global.sc2mod but i don't have it
Hero Initialization
Events
Game - Map initialization
Local Variables
Conditions
Actions
Tech Tree - Add 1 to Dark Protoss upgrade for player 1
Dialog - Create a Modal dialog of size (800, 1000) at (0, 0) relative to Center of screen
Variable - Set Character Select Dialog = (Last created dialog)
Dialog - Create a label for dialog Character Select Dialog with the dimensions (200, 50) anchored to Top with an offset of (0, 50) with the text "Select Your Hero" color set to White text writeout set to false with a writeout duration of 2.0
- Pilot Hero
Dialog - Create a button for dialog Character Select Dialog with the dimensions (200, 250) anchored to Top Left with an offset of (50, 100) setting the tooltip to "Pilot Hero" with button text "Assets\Textures\wireframe-terran-sc..." and the hover image set to ""
Variable - Set Buttons[0] = (Last created dialog item)
- Juggernaut Hero
Dialog - Create a button for dialog Character Select Dialog with the dimensions (200, 250) anchored to Top Left with an offset of (300, 100) setting the tooltip to "Juggernaut Hero" with button text "Assets\Textures\wireframe-terran-ma..." and the hover image set to ""
Variable - Set Buttons[1] = (Last created dialog item)
- Demolitionist
Dialog - Create a button for dialog Character Select Dialog with the dimensions (200, 250) anchored to Top Left with an offset of (550, 100) setting the tooltip to "Demolitionist" with button text "Assets\Textures\wireframe-terran-ma..." and the hover image set to ""
Variable - Set Buttons[2] = (Last created dialog item)
- Psionic Warrior
Dialog - Create a button for dialog Character Select Dialog with the dimensions (200, 250) anchored to Top Left with an offset of (50, 400) setting the tooltip to "Psionic Warrior" with button text "Assets\Textures\wireframe-protoss-z..." and the hover image set to ""
Variable - Set Buttons[3] = (Last created dialog item)
- Sniper
Dialog - Create a button for dialog Character Select Dialog with the dimensions (200, 250) anchored to Top Left with an offset of (300, 400) setting the tooltip to "Sniper Hero" with button text "Assets\Textures\wireframe-terran-no..." and the hover image set to ""
Variable - Set Buttons[4] = (Last created dialog item)
- Biomedic
Dialog - Create a button for dialog Character Select Dialog with the dimensions (200, 250) anchored to Top Left with an offset of (550, 400) setting the tooltip to "Biomedic" with button text "Assets\Textures\wireframe-terran-st..." and the hover image set to ""
Variable - Set Buttons[5] = (Last created dialog item)
- Rocketeer
Dialog - Create a button for dialog Character Select Dialog with the dimensions (200, 250) anchored to Top Left with an offset of (50, 700) setting the tooltip to "Rocketeer" with button text "Assets\Textures\wireframe-terran-re..." and the hover image set to ""
Variable - Set Buttons[8] = (Last created dialog item)
- Mutant Soldier
Dialog - Create a button for dialog Character Select Dialog with the dimensions (200, 250) anchored to Top Left with an offset of (300, 700) setting the tooltip to "Mutant Soldier" with button text "Assets\Textures\wireframe-terran-pr..." and the hover image set to ""
Variable - Set Buttons[9] = (Last created dialog item)
- Spec Ops
Dialog - Create a button for dialog Character Select Dialog with the dimensions (200, 250) anchored to Top Left with an offset of (550, 700) setting the tooltip to "Special Ops" with button text "Assets\Textures\wireframe-terran-sp..." and the hover image set to ""
Variable - Set Buttons[10] = (Last created dialog item)
- Make a new, fixed "Random"
Dialog - Show Character Select Dialog for (All players)
Camera - Pan the camera for player 1 to (Center of Region 001) over 2.0 seconds with Existing Velocity% initial velocity, 5% deceleration, and Do Not use smart panning
i dont have the global source to set things like Variable - Set Character Select Dialog = (Last created dialog)
well wtf i would relly like to put this inot my map but for some reason i dont have the global source so i can't
"""""Now that we have our new button variable or array set up, go back into our Map Initialization trigger and add another Set Variable action and set your new variable or array[0] to "== Last Created Dialog Item ==" and voila, instant button referency goodness for when we actually set what happens when you use the button. Now follow the last few steps for creating a new dialog item and variable/array[x] for each character. You can see how it looks and the spacing of each button by adding the Dialog - Show / Hide Dialog and setting it to show your dialog variable at the bottom of the action list *Note: This must always be below all Dialog / Dialog item declarations. Now I've gone ahead and made all of my buttons like so:"""""""""""""
0
thanks ill try that
0
sorry for the late post back this was something that i skiped to work on more stuff but how would i set a unit to "morph" into the hero i want? and i would like it to be a button so they could pick what one they wanted to morph into
0
how would i make the cam center on 1 unit after its been creadted and teleported to a random spot? i have got no idea bout this one
0
i found out how to do it well kinda this is the code i used
picking hero Events Dialog - Any Dialog Item is used by Player (Triggering player) with event type Clicked Local Variables Conditions Actions General - If (Conditions) then do (Actions) else do (Actions) If (Used dialog item) == button 1 Then Unit - Create 1 Drone for player 1 at player 1 heal using default facing (No Options) Dialog - Hide (Relative dialog of Character Selection Dialog) for (Player group((Triggering player))) Dialog - Hide Character Selection Dialog for (Player group((Triggering player))) Else Dialog - Remove all items from (Used dialog item) for (All players) General - If (Conditions) then do (Actions) else do (Actions) If (Used dialog item) == button 2 Then Unit - Create 1 Probe for player 1 at player 1 heal using default facing (No Options) Dialog - Hide (Relative dialog of Character Selection Dialog) for (Player group((Triggering player))) Dialog - Hide Character Selection Dialog for (Player group((Triggering player))) Else Dialog - Remove all items from (Used dialog item) for (All players) General - If (Conditions) then do (Actions) else do (Actions) If (Used dialog item) == button 3 Then Unit - Create 1 SCV for player 1 at player 1 heal using default facing (No Options) Dialog - Hide (Relative dialog of Character Selection Dialog) for (Player group((Triggering player))) Dialog - Hide Character Selection Dialog for (Player group((Triggering player))) Else Dialog - Remove all items from (Used dialog item) for (All players)
0
yes it was
im useing a global var already
well the trigger im useing is one i got for this http://forums.sc2mapster.com/resources/tutorials/6776-tutorials-triggers-character-hero-selection/#p6 but mines not working like it should ill send pic's if you want to see what im saying
0
ya i guess lol
0
eveythings working but i dont know how to make the dialog go away
"picking hero Events
Dialog - Any Dialog Item is used by Player Any Player with event type Clicked
Local Variables
Conditions
Actions
General - If (Conditions) then do (Actions) else do (Actions)
If
(Used dialog item) == button 1
Then
Dialog - Hide (Last created dialog) for (Player group((Triggering player)))
Unit - Create 1 Drone for player 1 at player 1 heal using default facing (No Options)
Else
Dialog - Remove all items from (Used dialog item) for (All players)"
could some one tell me what im doing wrong lol
0
i am sorry for making this i must look like a idiot
0
this is what i see on mine
this is what is should look like
0
you cant create one it's sapost to be there and it's not
could someone could point me in the place to find this "missing data"
0
@fr0d0b0ls0n: Go
when i go to set my Variable i open the menu and its blank i have nothing to set but when i open the test map he included in the tutorial and he has the global source and i have no idea why i dont have them if what im thinking is right it should be a mod like liberty (mod) and liberty muti (mod) or challenges.sc2mod all of them are depentceys so im thinking that theres a global.sc2mod but i don't have it
0
you need that source to create the trigger
Hero Initialization Events Game - Map initialization Local Variables Conditions Actions Tech Tree - Add 1 to Dark Protoss upgrade for player 1 Dialog - Create a Modal dialog of size (800, 1000) at (0, 0) relative to Center of screen Variable - Set Character Select Dialog = (Last created dialog) Dialog - Create a label for dialog Character Select Dialog with the dimensions (200, 50) anchored to Top with an offset of (0, 50) with the text "Select Your Hero" color set to White text writeout set to false with a writeout duration of 2.0
-Pilot Hero Dialog - Create a button for dialog Character Select Dialog with the dimensions (200, 250) anchored to Top Left with an offset of (50, 100) setting the tooltip to "Pilot Hero" with button text "Assets\Textures\wireframe-terran-sc..." and the hover image set to "" Variable - Set Buttons[0] = (Last created dialog item)-Juggernaut Hero Dialog - Create a button for dialog Character Select Dialog with the dimensions (200, 250) anchored to Top Left with an offset of (300, 100) setting the tooltip to "Juggernaut Hero" with button text "Assets\Textures\wireframe-terran-ma..." and the hover image set to "" Variable - Set Buttons[1] = (Last created dialog item)-Demolitionist Dialog - Create a button for dialog Character Select Dialog with the dimensions (200, 250) anchored to Top Left with an offset of (550, 100) setting the tooltip to "Demolitionist" with button text "Assets\Textures\wireframe-terran-ma..." and the hover image set to "" Variable - Set Buttons[2] = (Last created dialog item)-Psionic Warrior Dialog - Create a button for dialog Character Select Dialog with the dimensions (200, 250) anchored to Top Left with an offset of (50, 400) setting the tooltip to "Psionic Warrior" with button text "Assets\Textures\wireframe-protoss-z..." and the hover image set to "" Variable - Set Buttons[3] = (Last created dialog item)-Sniper Dialog - Create a button for dialog Character Select Dialog with the dimensions (200, 250) anchored to Top Left with an offset of (300, 400) setting the tooltip to "Sniper Hero" with button text "Assets\Textures\wireframe-terran-no..." and the hover image set to "" Variable - Set Buttons[4] = (Last created dialog item)-Biomedic Dialog - Create a button for dialog Character Select Dialog with the dimensions (200, 250) anchored to Top Left with an offset of (550, 400) setting the tooltip to "Biomedic" with button text "Assets\Textures\wireframe-terran-st..." and the hover image set to "" Variable - Set Buttons[5] = (Last created dialog item)-Rocketeer Dialog - Create a button for dialog Character Select Dialog with the dimensions (200, 250) anchored to Top Left with an offset of (50, 700) setting the tooltip to "Rocketeer" with button text "Assets\Textures\wireframe-terran-re..." and the hover image set to "" Variable - Set Buttons[8] = (Last created dialog item)-Mutant Soldier Dialog - Create a button for dialog Character Select Dialog with the dimensions (200, 250) anchored to Top Left with an offset of (300, 700) setting the tooltip to "Mutant Soldier" with button text "Assets\Textures\wireframe-terran-pr..." and the hover image set to "" Variable - Set Buttons[9] = (Last created dialog item)-Spec Ops Dialog - Create a button for dialog Character Select Dialog with the dimensions (200, 250) anchored to Top Left with an offset of (550, 700) setting the tooltip to "Special Ops" with button text "Assets\Textures\wireframe-terran-sp..." and the hover image set to "" Variable - Set Buttons[10] = (Last created dialog item)-Make a new, fixed "Random" Dialog - Show Character Select Dialog for (All players) Camera - Pan the camera for player 1 to (Center of Region 001) over 2.0 seconds with Existing Velocity% initial velocity, 5% deceleration, and Do Not use smart panningi dont have the global source to set things like Variable - Set Character Select Dialog = (Last created dialog)
@Molsterr: Go
from here http://forums.sc2mapster.com/resources/tutorials/6776-tutorials-triggers-character-hero-selection/#p6
if there's away around this i would love to know it
0
well i just wanted to add a hero selctor to my map but i won't be able to because i dont have global source
global source would be the same as built-in source it's where the editor get's what it use's for you to make your map
0
well wtf i would relly like to put this inot my map but for some reason i dont have the global source so i can't
"""""Now that we have our new button variable or array set up, go back into our Map Initialization trigger and add another Set Variable action and set your new variable or array[0] to "== Last Created Dialog Item ==" and voila, instant button referency goodness for when we actually set what happens when you use the button. Now follow the last few steps for creating a new dialog item and variable/array[x] for each character. You can see how it looks and the spacing of each button by adding the Dialog - Show / Hide Dialog and setting it to show your dialog variable at the bottom of the action list *Note: This must always be below all Dialog / Dialog item declarations. Now I've gone ahead and made all of my buttons like so:"""""""""""""
0
not a problem