Andrewgosu
The Silent Pandaren Helper
- Reaction score
- 716
I thought I should make this cause I dont want to trouble you all with so many threads.
Here is the problem list with all the problems I have at the momement. Solved
problems have a solution below the problem.
[1] Is there a way how to lose the tax from high and medium upkeep? [Solved]
[Solution]
[2] Is there a way to enforce melee win/defeat without a start townhall.[Solved]
[Solution]
[The trigger itself] Update.
[3]How to give a peasant advanced building ability. [Solved]
[Solution]
[4]Is it possible to have 2 same units with same model but with a different skin on a map? [Solved]
[Solution]
[5]Polymorph skill problem.[Solved]
[Solution]
[6]Blizzard skill problem. [Solved]
[Solution]
[7]Variable problem. [Solved]
[Solution]
[8]Fireball spell problem.[Solved]
[Solution]
[9]Mana Drain, Deal damage spell problem.[Solved]
[Solution]
[10] Life + bonus problem. [Solved]
[Solution]
[11] Death and decay problem. [Solved]
[Solition]
[12]Tornado problem [Solved]
[Solution]
[13]Negative values [Solved]
[Solution]
[14] Movement speed regain problem [Solved}
[Solution]
[15] Making unit invulnerable and vulnerable [Solved]
[Solution]
[16] What is the skin path of Medvih, the thrall helper from campaigns? [Solved]
[Solution]
[17] Icon problem [Solved]
[Solution]
[Bersekrer upgrade ability]
Here is the problem list with all the problems I have at the momement. Solved
problems have a solution below the problem.
[1] Is there a way how to lose the tax from high and medium upkeep? [Solved]
[Solution]
[2] Is there a way to enforce melee win/defeat without a start townhall.[Solved]
[Solution]
You can always make custom Victory/Defeat Conditions.
Defeat Trigger 1: Whenever a unit dies, and the player has no units left, defeat him. (Turn this trigger off when the player builds a town hall)
Defeat Trigger 2: Whenever a Town Hall dies, and the player has no town halls left, defeat him.
Victory Condition: Just add this part to the end of both of the defeat triggers
If the number of remaining players (that have not lost) is equal to 1, then make that player win.
[The trigger itself] Update.
Code:
WinLose
Events
Unit - A unit owned by Player 1 (Red) Finishes construction
Unit - A unit owned by Player 5 (Yellow) Finishes construction
Unit - A unit owned by Player 6 (Orange) Finishes construction
Unit - A unit owned by Player 3 (Teal) Finishes construction
Unit - A unit owned by Player 2 (Blue) Finishes construction
Unit - A unit owned by Player 4 (Purple) Finishes construction
Conditions
(Unit-type of (Constructed structure)) Equal to Human_Townhall
Or - Any (Conditions) are true
Conditions
(Unit-type of (Constructed structure)) Equal to Orc_Townhall
Actions
If (Player_Status Equal to 6) then do (Melee Game - Enforce victory/defeat conditions (for all players)) else do (Set Player_Status = (Player_Status + 1))
[3]How to give a peasant advanced building ability. [Solved]
[Solution]
Code:
Check the Attatchment.
[4]Is it possible to have 2 same units with same model but with a different skin on a map? [Solved]
[Solution]
Code:
http://www.wc3campaigns.net/showthread.php?t=60744
[5]Polymorph skill problem.[Solved]
[Solution]
Code:
Polymorph
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Polymorph
Actions
Unit - Change ownership of (Target unit of ability being cast) to Neutral Passive and Change color
[6]Blizzard skill problem. [Solved]
[Solution]
Code:
Events
Unit - A unit Starts the effect of an ability
Conditions
(Current order of (Triggering unit)) Equal to (Order(blizzard))
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Mana of (Triggering unit)) Greater than or equal to 10.00
Then - Actions
Unit - Set mana of (Triggering unit) to ((Mana of (Triggering unit)) - 5.00)
Wait 1.00 seconds
Trigger - Run (This trigger) (checking conditions)
Else - Actions
Unit - Pause (Triggering unit)
Unit - Order (Triggering unit) to Stop
Unit - Unpause (Triggering unit)
[7]Variable problem. [Solved]
[Solution]
Code:
Dont need variables for this problem, a trigger instead.
Events
Unit - A unit Finishes an upgrade
Conditions
(Researched tech-type) Equal to Paladin
Actions
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to Knight
Then - Actions
Unit - Replace (Picked unit) with a Paladin using The old unit's relative life and mana
Else - Actions
[8]Fireball spell problem.[Solved]
[Solution]
Code:
I made my own fireball spell. :D
[9]Mana Drain, Deal damage spell problem.[Solved]
[Solution]
Code:
Spell
Events
Unit - A unit Starts the effect of an ability.
Conditions
(Ability being cast) Equal to Mana strike
Action
Unit- Cause (Triggering unit) to damage (Target unit of ability being cast), dealing ((Mana of (Triggering unit)) / 4.00) damage of attack type Magic and damage type Magic
Unit - Set mana of (Triggering unit) to 0.00
[10] Life + bonus problem. [Solved]
[Solution]
Code:
Ranger
Events
Unit - A unit Finishes research
Conditions
(Researched tech-type) Equal to Ranger Training {Archer
Actions
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to Archer
Then - Actions
Unit - Replace (Picked unit) with a Ranger using The old unit's life and mana
Unit - Set life of (Last replaced unit) to ((Life of (Last replaced unit)) + 10.00)
Else - Actions
Do nothing
[11] Death and decay problem. [Solved]
[Solition]
Code:
The blizzard shards are replacable with cloud buff via buff/effect option. You gotto make a custom buff based cloud and the replace the stats>effect of the blizzard spell with your custom effect.
[12]Tornado problem [Solved]
[Solution]
Code:
Making the tornado NOT to lift things up is doable when involving some dummy units + few spells. Contct me if you need more info on this
[13]Negative values [Solved]
[Solution]
Code:
File > Prefrences > "Allow negative values"
[14] Movement speed regain problem [Solved}
[Solution]
Code:
HasteA
HasteA
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Haste (Warlock)
Actions
Custom script: local unit udg_ability_haste
Set Ability_Haste = (Target unit of ability being cast)
Unit - Set Ability_Haste movement speed to ((Current movement speed of Ability_Haste) x 1.50)
Wait 30.00 seconds
Unit - Set Ability_Haste movement speed to (Default movement speed of Ability_Haste)
Set Ability_Haste = No unit
[15] Making unit invulnerable and vulnerable [Solved]
[Solution]
Code:
Unholy Armor
Unholy Armor
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Unholy Armor
Actions
Custom script: local unit udg_Unholy_Armor
Unit - Make Unholy_Armor Invulnerable
Wait 20.00 seconds
Unit - Make Unholy_Armor Vulnerable
Set Unholy_Armor = No unit
[16] What is the skin path of Medvih, the thrall helper from campaigns? [Solved]
[Solution]
Code:
Units\Creeps\Medivh\Medivh.blp
[17] Icon problem [Solved]
[Solution]
[Bersekrer upgrade ability]