- Joined
- Jun 10, 2013
- Messages
- 472
Hey I was wondering if theres a way to make a custom race always have the NE UI and no other? when the custom race is chosen via the dialog box?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
If you want to keep all the original UI's and still have your custom race's UI, SharpCraft MIGHT be able to help you there but you'll need to have some programming knowledge to use it.
You can hard set a player's UI to a certain race before the game, but you can't change a UI in-game.
I suggest putting something in the game preview description about using NE if you plan to use the race. That way a player can choose it before going into the game.
I assume you want the other races to have their normal UI?
Race Selection Setup

Events


Time - Elapsed game time is 0.00 seconds

Conditions

Actions


Dialog - Change the title of Race_Dialog to Race Selection


Dialog - Create a dialog button for Race_Dialog labelled Play as the Treekin...


Set Race_Dialog_Buttons[0] = (Last created dialog Button)


Dialog - Create a dialog button for Race_Dialog labelled Play as origanlly c...


Set Race_Dialog_Buttons[1] = (Last created dialog Button)


For each (Integer A) from 1 to 12, do (Actions)



Loop - Actions




If (All Conditions are True) then do (Then Actions) else do (Else Actions)





If - Conditions






((Player((Integer A))) controller) Equal to User





Then - Actions






Dialog - Show Race_Dialog for (Player((Integer A)))





Else - Actions


Trigger - Turn on Race Selection <gen>
Race Selection

Events


Dialog - A dialog button is clicked for Race_Dialog

Conditions

Actions


Set Temp_Integer_1 = (Player number of (Triggering player))


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




(Clicked dialog button) Equal to Race_Dialog_Buttons[0]



Then - Actions




Custom script: set bj_wantDestroyGroup = true




Unit Group - Pick every unit in (Units owned by (Triggering player)) and do (Actions)





Loop - Actions






If (All Conditions are True) then do (Then Actions) else do (Else Actions)







If - Conditions








Or - Any (Conditions) are true









Conditions










((Picked unit) is A peon-type unit) Equal to True







Then - Actions








Unit - Replace (Picked unit) with a |cff008000Treant Gatherer|r using The old unit's relative life and mana








Unit - Create 1 |cff008000Wisp|r for (Triggering player) at (Position of (Picked unit)) facing Default building facing degrees







Else - Actions








If (All Conditions are True) then do (Then Actions) else do (Else Actions)









If - Conditions










Or - Any (Conditions) are true











Conditions












((Picked unit) is A town-hall-type unit) Equal to True









Then - Actions










Unit - Replace (Picked unit) with a |cff008000Ancient Defender|r ( Tier 1 ) using The old unit's relative life and mana









Else - Actions










If (All Conditions are True) then do (Then Actions) else do (Else Actions)











If - Conditions












Or - Any (Conditions) are true













Conditions














((Picked unit) is Mechanical) Equal to True











Then - Actions












Unit - Remove (Picked unit) from the game











Else - Actions












If (All Conditions are True) then do (Then Actions) else do (Else Actions)













If - Conditions














Or - Any (Conditions) are true















Conditions
















((Picked unit) is Undead) Equal to True













Then - Actions














Unit - Replace (Picked unit) with a |cff008000Treant Gatherer|r using The old unit's relative life and mana














Unit - Create 1 |cff008000Wisp|r for (Triggering player) at (Position of (Picked unit)) facing (Position of (Picked unit))














Unit - Create 1 |cff008000Wisp|r for (Triggering player) at (Position of (Last created unit)) facing (Position of (Last created unit))














Unit - Create 1 |cff008000Treant Gatherer|r for (Triggering player) at (Position of (Last created unit)) facing (Position of (Last created unit))













Else - Actions














If (All Conditions are True) then do (Then Actions) else do (Else Actions)















If - Conditions
















Or - Any (Conditions) are true

















Conditions


















(Unit-type of (Picked unit)) Equal to Paladin















Then - Actions
















Unit - Replace (Picked unit) with a |cff008000Keeper of the Forests|r using The new unit's max life and mana















Else - Actions
















If (All Conditions are True) then do (Then Actions) else do (Else Actions)

















If - Conditions


















Or - Any (Conditions) are true



















Conditions




















(Unit-type of (Picked unit)) Equal to Archmage

















Then - Actions


















Unit - Replace (Picked unit) with a |cff008000Arch Druid|r using The new unit's max life and mana

















Else - Actions


















If (All Conditions are True) then do (Then Actions) else do (Else Actions)



















If - Conditions




















Or - Any (Conditions) are true





















Conditions






















(Unit-type of (Picked unit)) Equal to Mountain King



















Then - Actions




















Unit - Replace (Picked unit) with a |cff008000Avenger |r using The new unit's max life and mana



















Else - Actions




















If (All Conditions are True) then do (Then Actions) else do (Else Actions)





















If - Conditions






















Or - Any (Conditions) are true























Conditions
























(Unit-type of (Picked unit)) Equal to Blood Mage





















Then - Actions






















Unit - Replace (Picked unit) with a |cff008000Huntress|r using The new unit's max life and mana





















Else - Actions






















If (All Conditions are True) then do (Then Actions) else do (Else Actions)























If - Conditions
























Or - Any (Conditions) are true

























Conditions


























(Unit-type of (Picked unit)) Equal to Death Knight























Then - Actions
























Unit - Replace (Picked unit) with a |cff008000Avenger |r using The new unit's max life and mana























Else - Actions
























If (All Conditions are True) then do (Then Actions) else do (Else Actions)

























If - Conditions


























Or - Any (Conditions) are true



























Conditions




























(Unit-type of (Picked unit)) Equal to Lich

























Then - Actions


























Unit - Replace (Picked unit) with a |cff008000Keeper of the Forests|r using The new unit's max life and mana

























Else - Actions


























If (All Conditions are True) then do (Then Actions) else do (Else Actions)



























If - Conditions




























Or - Any (Conditions) are true





























Conditions






























(Unit-type of (Picked unit)) Equal to Dreadlord



























Then - Actions




























Unit - Replace (Picked unit) with a |cff008000Arch Druid|r using The new unit's max life and mana



























Else - Actions




























If (All Conditions are True) then do (Then Actions) else do (Else Actions)





























If - Conditions






























Or - Any (Conditions) are true































Conditions
































(Unit-type of (Picked unit)) Equal to Crypt Lord





























Then - Actions






























Unit - Replace (Picked unit) with a |cff008000Huntress|r using The new unit's max life and mana





























Else - Actions






























If (All Conditions are True) then do (Then Actions) else do (Else Actions)































If - Conditions
































Or - Any (Conditions) are true

































Conditions


































(Unit-type of (Picked unit)) Equal to Blademaster































Then - Actions
































Unit - Replace (Picked unit) with a |cff008000Avenger |r using The new unit's max life and mana































Else - Actions
































If (All Conditions are True) then do (Then Actions) else do (Else Actions)

































If - Conditions


































Or - Any (Conditions) are true



































Conditions




































(Unit-type of (Picked unit)) Equal to Far Seer

































Then - Actions


































Unit - Replace (Picked unit) with a |cff008000Keeper of the Forests|r using The new unit's max life and mana

































Else - Actions


































If (All Conditions are True) then do (Then Actions) else do (Else Actions)



































If - Conditions




































Or - Any (Conditions) are true





































Conditions






































(Unit-type of (Picked unit)) Equal to Tauren Chieftain



































Then - Actions




































Unit - Replace (Picked unit) with a |cff008000Arch Druid|r using The new unit's max life and mana



































Else - Actions




































If (All Conditions are True) then do (Then Actions) else do (Else Actions)





































If - Conditions






































Or - Any (Conditions) are true







































Conditions








































(Unit-type of (Picked unit)) Equal to Shadow Hunter





































Then - Actions






































Unit - Replace (Picked unit) with a |cff008000Huntress|r using The new unit's max life and mana





































Else - Actions






































If (All Conditions are True) then do (Then Actions) else do (Else Actions)







































If - Conditions








































Or - Any (Conditions) are true









































Conditions










































(Unit-type of (Picked unit)) Equal to Keeper of the Grove







































Then - Actions








































Unit - Replace (Picked unit) with a |cff008000Avenger |r using The new unit's max life and mana







































Else - Actions








































If (All Conditions are True) then do (Then Actions) else do (Else Actions)









































If - Conditions










































Or - Any (Conditions) are true











































Conditions












































(Unit-type of (Picked unit)) Equal to Priestess of the Moon









































Then - Actions










































Unit - Replace (Picked unit) with a |cff008000Keeper of the Forests|r using The new unit's max life and mana









































Else - Actions










































If (All Conditions are True) then do (Then Actions) else do (Else Actions)











































If - Conditions












































Or - Any (Conditions) are true













































Conditions














































(Unit-type of (Picked unit)) Equal to Demon Hunter











































Then - Actions












































Unit - Replace (Picked unit) with a |cff008000Arch Druid|r using The new unit's max life and mana











































Else - Actions












































If (All Conditions are True) then do (Then Actions) else do (Else Actions)













































If - Conditions














































Or - Any (Conditions) are true















































Conditions
















































(Unit-type of (Picked unit)) Equal to Warden













































Then - Actions














































Unit - Replace (Picked unit) with a |cff008000Huntress|r using The new unit's max life and mana













































Else - Actions




-------- change race to Race A --------



Else - Actions




If (All Conditions are True) then do (Then Actions) else do (Else Actions)





If - Conditions






(Clicked dialog button) Equal to Race_Dialog_Buttons[1]





Then - Actions






Do nothing





Else - Actions






Do nothing


Dialog - Hide Race_Dialog for (Player(Temp_Integer_1))
You'll have to tell players to select NE before the game starts. Sorry, this is something something I have looked into and I am fairly confident that there is no solution.
