HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Simple Spell Question..

04-06-2003, 10:00 PM#1
c0nnick
Alright is there anywhere where they list the... I think its codes of units, Im not talking about custom ones, just the ones already in the game. I want to edit some spells to summon different units.
04-06-2003, 10:02 PM#2
FyreDaug
Well if you want a specific unit, create a trigger. In that trigger make it create the unit in question. Convert it to custom text and take the 4 character code in single quotations ( ' )
04-06-2003, 10:05 PM#3
c0nnick
im confused, what wud the trig look like? and where would i read?
04-06-2003, 10:08 PM#4
FyreDaug
Just create a trigger. Leave event/condition blank. Create an action:
Unit - Create units facing angle
Select, say a footman.
Convert it to custom text.
Code:
function Trig_Untitled_Trigger_001_Actions takes nothing returns nothing
    call CreateNUnitsAtLoc( 1, [b][i]'hfoo'[/i][/b], Player(0), GetRectCenter(GetPlayableMapRect()), bj_UNIT_FACING )
endfunction

//===========================================================================
function InitTrig_Untitled_Trigger_001 takes nothing returns nothing
    set gg_trg_Untitled_Trigger_001 = CreateTrigger(  )
    call TriggerAddAction( gg_trg_Untitled_Trigger_001, function Trig_Untitled_Trigger_001_Actions )
endfunction

The hfoo, means Human Footman. That's the 4 character code I was talking about.
04-06-2003, 10:10 PM#5
c0nnick
Really sorry, but im still confused, how do u convert to custom text?
04-06-2003, 10:29 PM#6
FyreDaug
I believe it's in Edit in the trigger editor. Then click on convert to custom text, then click yes.
04-06-2003, 10:34 PM#7
c0nnick
Wow, thanks so much, this will help me a lot with modding! Thanks! I owe u
04-06-2003, 10:37 PM#8
FyreDaug
No problem, but make sure you don't accidently convert a GUI (The regular triggering) trigger into Custom Text, because you can't convert it back. If you're new to JASS, you don't wanna be working with it too much unelss your understand it.
04-06-2003, 10:50 PM#9
c0nnick
Yep... So um... what is JASS? Its a basic programming language? Im gonna be taking programming in school nex year, im kinda gettin into it now, but will I learn how to use JASS in school?
04-06-2003, 10:54 PM#10
FyreDaug
No you won't find it in school. I've heard JASS was created by Blizzard, but I'm not sure. The language has many flaws. The best place to learn is here
04-07-2003, 12:39 AM#11
FrostBite
if you dont wanna have to mess with jass to find the units' codes, download the umse editor and it should have files that tell all the unit codes, spell, unti, etc... models, and all the icons
04-07-2003, 12:44 PM#12
FyreDaug
True, I guess I forgot about that. I attached the file you're looking for.