• 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.
  • 💡 We're thrilled to announce that our upcoming texturing contest is in the works, and we're eager to hear your suggestions! Please take this opportunity to share your ideas in this theme discussion thread for the Texturing Contest #34!
  • 🏆 Hive's 7th HD Modeling Contest: Icecrown Creature is now open! The frozen wastes of Icecrown are home to some of Azeroth’s most terrifying and resilient creatures. For this contest, your challenge is to design and model a HD 3D monster that embodies the cold, undead, and sinister essence of Icecrown! 📅 Submissions close on April 13, 2025. Don't miss this opportunity to let your creativity shine! Enter now and show us your frozen masterpiece! 🔗 Click here to enter!

Jasscraft: Creating Campaign A.I. attack waves, buildings with custom units

Status
Not open for further replies.
Level 3
Joined
Mar 23, 2015
Messages
32
I just read through the Jasscraft Campaign A.I. Tutorial and I would like to know how put the custom units' raw code into the Jass Script.

I have problems putting in upgrades as well. Help?
 
Level 20
Joined
Jul 14, 2011
Messages
877
Go to object editor and press Ctrl + D. That will show you the rawcodes of the object.
In Jass, you put it in single quotes, for example 'hpea', for the peasent.

For custom units, you need to use the first 4 characters. The other 4 are the rawcode of the base object.

Also, what is your problem with upgrades?
 
Level 3
Joined
Mar 23, 2015
Messages
32
call SetBuildUpgrEx( 0, 1, 2, UPG_DRUID_CLAW ) I don't know how to put other upgrades into this. I am trying to put Human and Orc upgrades both Original and Custom
 
Status
Not open for further replies.
Top