• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Custom_n001???

Status
Not open for further replies.
Level 4
Joined
Jul 1, 2009
Messages
65
ok im making a TD and i have a trigger to show the name of next level......

basically

  • Game - Display to (All players) for 10.00 seconds the text: (Level + ((String(level)) + ( - + (String(spawntype[level])))))
but at level 6 the text messes up...... Example

Level - 5 Birds
Level - 6 Custom_n001

Ok i know that level six is a custom unit i copied and pasted to make easier...but i renamed it and everything....where would i change what it is saying
 
Level 4
Joined
Jul 1, 2009
Messages
65
no....well if someone builds at that instant..that would mess it up.....also even if that is a low chance....i also have it on my multiboard for

Current level: Spawntype(level)
Next Level: Spawntype(level + 1)

they work fine but when i get to level 6 it shows up.... custom n001...... dun know how to fix
 
Level 4
Joined
Jul 1, 2009
Messages
65
yea i can edit other units but you know ill run out sooner or later.... also i checked cuz i wasnt sure if i set above 5 but i did...it was at 40....
 
Level 12
Joined
Dec 10, 2008
Messages
850
Make a string array, set the name of every level in the array, starting at 0..... Make an integer called Index. Then, make it something like
  • Blabla
  • Event - Blabla
  • Condition - Bla bla
  • Event ~youstuff~
  • Set
  • Game - Display to (All Players the text: "(Convert Integer to String (index)) + (~Name of your string~[Index])"
  • Set Index = Index +1
 
Level 4
Joined
Jul 1, 2009
Messages
65
im not using JASS newgen....although i have thought about going to it....sounds cool.....

But i may have to index them and type them by hand....i just well you too lazy.... but if its the only way ....thnx +REP ...too everyone i can....not alot of rep i can give out a day
 
Status
Not open for further replies.
Top