HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Tower Experience

08-17-2008, 08:51 PM#1
AustralianBeast
i was wondering if anyone knew how to make a tower experience system like in gem td where if a tower gets a certain amount of kills then it gains an ability that increases its damage.

any help is appreciated
08-17-2008, 09:12 PM#2
Themerion
Som what you are asking for is a kill counter, right? Are you experienced with JASS or Custom Scripting? In that caste, look at the code resource PUI (and its tutorial).
08-17-2008, 09:19 PM#3
AustralianBeast
yeah, basically a kill counter for every tower and when it reaches a certain amount that tower gets an ability.

and no, im not experience in jass at all
08-17-2008, 09:30 PM#4
Themerion
Do you have jassNewGenPack installed?
Are you using Unit Custom Values?
08-17-2008, 09:32 PM#5
AustralianBeast
no i dont have the jassnewgen pack installed.
what do you mean by unit custom values?
08-17-2008, 09:33 PM#6
Themerion
Trigger:
Unit - Set the custom value of Wisp 0000 <gen> to 0
08-17-2008, 09:37 PM#7
AustralianBeast
no i havent used that
08-17-2008, 09:39 PM#8
Themerion
Can towers die / be removed from game (sell tower, for instance)?
08-17-2008, 09:40 PM#9
AustralianBeast
yes they can be destroyed, but they give no refund
08-17-2008, 09:55 PM#10
Themerion
Kay, I'll post a map in about 5 mins...
08-17-2008, 09:57 PM#11
AustralianBeast
thanks for your help!
08-17-2008, 10:08 PM#12
Themerion
Okay! So here it is!

Be sure to read the README trigger. It tells you how to install. If you have any questions, just ask :)

Good luck!

EDIT: Right, and when you have copied everything, you can ofc remove the triggers "Needed Variables" and "README"
Attached Files
File type: w3xkillcount.w3x (19.5 KB)
08-17-2008, 10:36 PM#13
AustralianBeast
okay so i imported the trigger and the variables, but when i try to enable the trigger i get this.

"Line 388: Expected a name"

and then it doesnt let me enable the trigger
08-17-2008, 10:56 PM#14
Themerion
Not "the" trigger, I hope. You need to copy the entire category. With "Automatically Create unknown variables when pasting trigger data" on.

If that doesn't work, try to copy all text from the trigger PUI. Then (In the trigger editor, to the top left) click you map's icon/name. You should be able to paste the copied text in that "trigger" (the Custom Script Section). Then remove the trigger PUI.
08-17-2008, 11:11 PM#15
AustralianBeast
the second thing did the trick
thanks :)