Set an integer to terrain type...

The perfect one step solution for creating Ice/Sliding Mazes in both Reign of Chaos and The Frozen Throne. It is the only decent system around and it even works in RoC, is lagfree, perfectly optimized, fast and reliable. The included TerrainKill feature frees you from the tedious task of creating a thousand kill-regions.
User avatar
Posts: 310
Joined: Wed Jun 17, 2009 9:27 am
Account: manstie
Location: Perth, Australia

Set an integer to terrain type...

Unread post by manstie »

I noticed in your sliding system...

Code: Select all

	set udg_Slide = 'Nice'
	set udg_Slide2 = 'Idki'
	set udg_Slide3 = 'Iice'
	set udg_Slide4 = 'Glav'
	set udg_TerrainKill = 'Nsnw'
All of the variables that are set, are integers.
Yet you seem to change them to terrain types?
Also could I use the GUI Custom Text thing to just add those into map init instead of having a different trigger?

User avatar
Posts: 2629
Joined: Sat Mar 01, 2008 11:34 pm
Realm: Europe
Account: 3ICE
Clan: 3ICE
Location: Hungary

Re: Set an integer to terrain type...

Unread post by 3ICE »

Those expressions are still integers. I could write it as either 5138787 or 'Nice'. Which one looks better? It's obvious. (5138787 == 'Nice')
(EDIT: Yes, in the future I will convert every terraintype for you into normal integer numbers, so you can set them without JASS. How awesome is that?)

Please learn JASS. I'm not going to explain integers to you, because I don't want to duplicate information that is already available elsewhere. Go and read it. (You can use decimal, hexadecimal, octal, 1ascii and 4ascii integers in JASS. Respectively: 333, 0xFA0, 012475, 'X', 'AsCx')

My system was written for RoC. There is no Custom Text in RoC, so I had to use a JASS trigger. But if your map is TFT, then feel free to use TFT functions and merge the two init triggers into one.

Post Reply

Who is online

Users browsing this forum: No registered users and 12 guests