HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Creating neutral hostile creep units based on their string name

05-22-2003, 07:18 PM#1
Raptor--
ok, i seem to be having some trouble creating hostile creep units based on their string name ie, this action:

call CreateNUnitsAtLoc( 1, String2UnitIdBJ(udg_CARDS_sName), ConvertedPlayer(udg_PLAYERS_nPlayer), GetRectCenter(udg_UNITS_regPlace), GetRandomDirectionDeg() )

where udg_CARDS_sName is the string name of the unit
anyhow, my assumption is that i'm getting the string wrong, as the only string names for hostile creeps i could find were the 4 letter IDs, eg. 'nspg', 'nska', etc...

Edited because: oh, and the actual creep unit name won't work either.

i can get custom units to work, as they are simply "custom_ec##" and normal units to work, as they are just the name of the unit, but not the dumb creeps

any help?

(sorry if this is a repeat, just found the ol' forum)
05-22-2003, 08:20 PM#2
Earth-Fury
your using jass? use gui, do the basic trigger work, do the action/conditon that usesthe creep, convert to custom text.
05-22-2003, 09:20 PM#3
Raptor--
converting a create unit action that uses the creep will simply have the value 'XXXX' where the X's are the 4 letter ID

i tried using that as the string name, didn't work

besides, it really shouldn't matter if I use JASS or a gui, cause its the unit's string name i'm having trouble getting, and successfully passing to the 'Create unit-type from string'
05-22-2003, 10:05 PM#4
Earth-Fury
more detail on what yopur trying to do plz
05-22-2003, 10:35 PM#5
Raptor--
the concept is pretty simple, i'm trying to create a unit using the built in function
"Conversion - convert string to unit-type"
only, i am having trouble finding the proper string that properly converts to creep units

like you said, i have already tried using a trigger that uses/creates the specific creep, and converting it to JASS, but that only contains the 4-letter ID code, which to my knowledge doesn't work when you try using it in the string->unit-type thing
05-22-2003, 10:57 PM#6
Guest
A list of what I think you need is attached. This is out of UnitUI.slk
05-22-2003, 11:14 PM#7
Raptor--
ah, yes, that would do it