HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Destructable-type var ?

07-11-2006, 05:23 AM#1
Daxtreme
Ok well I've been stuck on something kinda stupid. I want to make a local destructable-type.

It just doesn't work :(

Lol. What is the var for destructible-type in JASS? :P

I tried destructable-type (got an error) and destructabletype (got an error)

local destructable(WHAT I INSERT HERE) d=Getblablabla

I just can't seem to find it anywhere
07-11-2006, 05:31 AM#2
PipeDream
There is none. This is no big deal as none of the *types are remotely useful. GetDestructableTypeId() will match up with the 4 char code.

You are, btw, welcome to create the type; just add it to common.j. You'll only be able to use it via return bug. I guess if you really want the type safety...
07-11-2006, 05:39 AM#3
Daxtreme
Well ok thanks :D

But I won't create it heh. Since my trigger didn't work I thought that the DestructableTypeId would be lost after a 300 seconds wait, but since I first set the dying destructable into a variable, it shouldn't be "lost".

I'll try something else
07-11-2006, 06:23 AM#4
BertTheJasser
Just Store the TypeID as an int, as PipeDream said.
07-11-2006, 03:03 PM#5
The)TideHunter(
I really think we should make a new varaile, as a "projectile", and maybe a few more (obvoiusly using the return bug to edit/add/remove them). But i think it would save ALOT of time in the long run, there should be more variables than the ones Blizz limit us too.