Frost \ slowing tower

Plutonium

Member
Joined
Apr 6, 2008
Messages
8
Reaction score
0
and came over 2 other problems :p

1# how do i make a tower stat go up by 1 if i push a upgrade button (when selecting the tower in game?)

2# i have a leaderboard, and when a player looses a life, it says "you lost a life, you now have (livesred) lives left..."

ingame the (livesred) displays as "you lost a life, you now have 25.00 lives left..." how do i get the .00 away?...
and also how to remove a players buildings from a trigger?
sorry for all the trouble :kev:
 

x42bn6

Retired Staff
Joined
Nov 11, 2002
Messages
15,150
Reaction score
2
Location
London, United Kingdom
hi, cant get my slowing towers to deal AOE slowing :S... halp :p
Borrow the Frost Wyrm's ability?

1) You should be able to modify this in the Object Editor, on upgrades. Just copy over, say, Iron-forged Swords and modify it.
2) Convert the double (or is it a float in Warcraft?) to an integer.*
 

ChrisH36

Guy with Most Posts on Quiet Board.
Joined
May 20, 2003
Messages
15,042
Reaction score
4
Location
Temple Prime, Sarajevo
2) Make an Int variable and set your Double to it. IT should automatically be able to do it. This is called "Typecasting" in programming. It can be done with most numeric data types. But you can't do something like int to Unit.

1) Modify an existing upgrade. Make sure the unit is affected by it. And add it's research ability to a certian structure.
 

Plutonium

Member
Joined
Apr 6, 2008
Messages
8
Reaction score
0
2) Make an Int variable and set your Double to it. IT should automatically be able to do it. This is called "Typecasting" in programming. It can be done with most numeric data types. But you can't do something like int to Unit.

1) Modify an existing upgrade. Make sure the unit is affected by it. And add it's research ability to a certian structure.
In other words:
newInt = (int)decimal hmm, is this the same as
"Upgrade = (upgrade + 1)"

and the rost Wyrm's ability didnt work for my frost tower :O
 

ChrisH36

Guy with Most Posts on Quiet Board.
Joined
May 20, 2003
Messages
15,042
Reaction score
4
Location
Temple Prime, Sarajevo
Thats how a computer program does Typecasting, that is what you are going to do.

The only thing is when its typecasted to int, its decimal aspect is cut off.

You should have no trouble making an Int = to a double in a trigger


As for your breath effect, did you use Freezing Breath or Frost Breath? Freezing is the one that freezes buildings, frost is the one that slows buildings. Frost Breath is raelly just an attack attachment. So you need to apply AOE to your tower.

Go to the unit, and scroll to Combat - Attack # - Area of Effect (full to small) and change those numbers to non zeros. Make sure that Full > Medium > small or there willbe bugs.

Then under Combat - Weapon Type, change that variable to Missile(splash).

If your tower is a single shooter, take the Frost Attack effect from the Black Citadel/Nerubian Tower and use that.
 

ChrisH36

Guy with Most Posts on Quiet Board.
Joined
May 20, 2003
Messages
15,042
Reaction score
4
Location
Temple Prime, Sarajevo
Yeah, X42 should have probably explained the slow thing a little better. Cause the odd thing about that slow ability is its been applied to all Splash damage causing units and towers. If you do the same, you can use it.
 

NewPosts

New threads

Top