HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Build a Hero

04-23-2007, 01:05 AM#1
GodsHand
Hey! Im new here and im not realy sure if this is in the right place. I was woundering how to make custom heroes where players could:
1)Pick what there hero looks like (melee, ranged, etc)
2)Pick 4 spells (from items)
3) Be able to use the spells as if they were 'normal'

I got most of it done I just ran into a major bump. I cant make the heroes learn the spells after they picked the items.
If anybody has played Custom Hero Line Wars, that is how I want to do it. I know they use something with spell books... if that helps? Thanks for your time and help.
04-23-2007, 05:06 AM#2
Panto
Hey! Welcome to the forum. This is a pretty good place to post a development question when you don't know what's required to answer it. You presented the problem well, and there's just a couple things I want to know.

I haven't played the map you mentioned in your post. Is there any chance you could post it here, or post a few screenshots that show the ability system?

The answer you get is going to require a few fairly elaborate triggers. Are you familiar with GUI or jass scripting?

Once we've got your problem sorted out a little better, I'll probably end up moving the thread to the Scripts and Triggers forum, since that's what the bulk of your problem is going to require to solve.
04-23-2007, 03:20 PM#3
tamisrah
Try this guide by pitzermike, the thing you're looking for is the engineering upgrade:
http://www.wc3campaigns.net/showthre...=ability+guide

Else you can use the search tool to find something related since this has be asked before. (Don't be dispirited if it says that it wouldn't work, this answer is just old) In case you need some help with that juast ask again.
04-24-2007, 12:11 AM#4
GodsHand
Ok, Well here is a link to Custom Hero Line Wars:http://www.thehelper.net/forums/showthread.php?t=31955
Note: The map is protected so you cant see the triggers (which may render the point of downloading it. The spells are still in the object manager though) :( I have screen shots but how do I add it to my post?

I am fairly good when it comes to GUI triggers but unfortunatly I dont know diddly squat about jass.

tamisrah: I think I see where you are going with that but its written in jass (I think, like I said, I know nothing about jass).
BUT! Custom Hero Line Wars did use the engineering upgrade and something with the spell book.
04-24-2007, 03:22 AM#5
Panto
Okay. It looks like there's enough information to get working with. I will move the thread to the appropriate forum, where there will be more people familiar with the things you'll need to do. You should have no problem getting help figuring out what elements will require jass and what can be done with GUI, too.

Good luck!

EDIT: Incidentally, to post a screenshot you should have no problems figuring out how to attach a file if you click the "Go Advanced" button and examine the options there.
04-24-2007, 08:33 AM#6
Anitarf
Well, the ability guide that you were linked to a few posts back explains exactly how to do this with engineering upgrade.
04-24-2007, 12:57 PM#7
tamisrah
Actually you won't need any JASS and only 1 GUI trigger, since you want to use items.

Usually you want to have normal abilities and one ultimate, in this case you need one normal dummy ability and one ultimate dummy ability.
For each ability you want to be available you need one additional ability based off engineering upgrade and one item with that ability.

The trick is that you configure the engineering upgrade so that it will replace the dummy ability with your desired one when the item is dropped.

Than you'll only need this trigger:
Trigger:
Give Abilities
Collapse Events
unit - A unit enters Circle
Collapse Conditions
(Number of items carried by (Triggering unit)) Equal to 5
Collapse Actions
Collapse For each (Integer A) from 1 to 6, do (Actions)
Collapse Loop - Actions
Hero - Drop the item from slot (Integer A) of (Triggering unit)
Item - Remove (Last dropped item)
04-24-2007, 10:19 PM#8
GodsHand
I feel kinda stupid. Im still not understanding.
First: How do I add the engineering ability and,
Second: When the hero has the engineering ability how is it able to cast the actual spell?
04-25-2007, 12:53 PM#9
tamisrah
Don't want to be rude but just read the part of the ability guide about the engineering upgrade.
Quote:
So if you want to abuse the engineering upgrade but don't want the passive upgrade icon on the unit you can simply have an engineering upgrade with the abilities B, A in the upgrade field and then when you add and remove it on a unit that has A it will then have B. That's because adding it will do nothing as B is not there, but removing it will replace A with B.

Quote:
First: How do I add the engineering ability

1.Give an item the ability
2.Make a shop where this item can be purchased
04-28-2007, 04:03 AM#10
GodsHand
Okay, Well I have done everything and just about everything works except...

-All my abilities have 1 level (you can not increase their level)
-Ultimate spells have no "level skips"
04-28-2007, 09:24 AM#11
tamisrah
Your dummy skills must have the same number of levels and level requirements as your added skill should have and you may experience problems with auras (which didn't happend to me yet), autocast and tooltips above level 3.
Just as said in the guide.