HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Help with a TD!

01-07-2007, 09:30 PM#1
TehChubs
Ok, so I'm making a Tower Defense, for the most part it works great.

There's just one little issue.

I've got all the creeps in a "Unit Type" variable so they can be easily called up for spawning (Standard practice for a TD, I'm sure) I also have it so it displays in game "Level *Number* - *Creep*" The spawns work perfectly for the levels, but the message instead comes up with "Level *Number* - Custom_n001"

Does anyone have any idea what the problem may be?

Help will be very much appreciated!
01-07-2007, 09:45 PM#2
Captain Griffen
String array for the levels.

Maybe GetWidgetName might work, dunno.
01-07-2007, 09:55 PM#3
TehChubs
"GetWidgetName"

I have no idea what that is! I'm a bit of a noob with the World Editor.

Sorry.
01-07-2007, 10:07 PM#4
rulerofiron99
Try using Unit - Unit Name.

The way I used this in one of my maps is that as soon as the first unit of the wave spawns, the text message pops up with the unit name of triggering unit.

wtf is getwidgetname?!
01-07-2007, 10:18 PM#5
TehChubs
Quote:
Originally Posted by rulerofiron99
Try using Unit - Unit Name.

The way I used this in one of my maps is that as soon as the first unit of the wave spawns, the text message pops up with the unit name of triggering unit.

wtf is getwidgetname?!
That might be a really good idea, let me give it a shot.

Edit : No, that didn't work, that's my fault though due to the way Spawning works in my tower defense.
01-08-2007, 12:44 AM#6
WILL THE ALMIGHTY
usually, a simple string - unit name works. You,re using the unit order, or raw code.
01-08-2007, 08:36 AM#7
TehChubs
Yay! I did that and it works, thanks a lot for all the help guys.

Very muchly appreciated!

Update:

Sorry, I didn't want to double post,

Ok, I'm now having a different issue, on one round I want the unit to cast an ability based off of Divine Shield when he's attack, I've got that sorted, but when he gets attacked he casts it, and just stops, what am I doing wrong?

Thanks.