• 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.

Spell book skill help for my Map.

Status
Not open for further replies.
Level 3
Joined
Jun 16, 2004
Messages
36
I finnaly figured out how to use a spell book, but i need some help with it.

I want a map where people get to pick spells and custimize there hero. Im doing that by buying abilitys, but when you buy an ability, I want to add it to a spell book, and not the defult place for spells. Do you understand what I mean?

And then, after you lv up, every spell in a spell book gains a lv.

This is help me with my map ALOT and I will give credit you anyone who helps. Thanks! I really need this to work.

Peace :wink:
 
Level 3
Joined
Oct 23, 2005
Messages
51
Sorry, this probably doesn't help, but I know part of the lvl up trigger
Event
A unit levels up
Condition
Triggering unit is... (optional)
Action
Set level of (ability) to ((current level of ability) +1)
My problem is I'm worried that trigger won't reach into spell book sub-abilities
Unless you were to make several copies of an ability, like Storm Bolt (1), Storm Bolt (2), etc, and have the spell book be multi-leveled, then have the trigger level up the spell book, but that would take a lot of work.
Actually, I don't know if it could have different abilties each level, *sigh*, but what if leveling up the spell book would automatically level up it's sub-abilities, this is pure theory, but I can test it and post my answere here in the evening...
also, while I cannot help with adding abilities to spell books, I know you can give them upgrade requirements, then make the, whatever, sell upgrades, (by making a trigger that sets the level of the upgrade to 1 for the (owner of (triggering unit) or (hero minipulating item)) or give the hero a building that researches the upgrades, and if there are mutiple players, have a building for each player.
Sorry, this probably doesn't help.
 
Level 4
Joined
Nov 22, 2004
Messages
62
as Jaronis said:
Example: if "frostbolt" is a spell from the spellbook, all u have to do is to do a normal triger to level that spell up. the thing is u cant add spells to a spellbook INGAME cuz u can change a stat of a spell ingame. u can only subistitute them. so u can replace the old spellbook with a new wone with added spells
 
Level 3
Joined
Jun 16, 2004
Messages
36
thanks for your help guys!

I was wondering, how i would do this...

I wanna do the upgrade Idea. So you upgrade your spell so you can use it, in the spell book, but can you add upgrades to a shop? and what is the trigger to lv up spells in a spellbook?

Can you add more then 1 spell to a unit?

Oh, or can you have the spell not be in your button? like where the attack-Stop-Partol-Hold position is, can i have the spell not there? :?

thanks in advance
 
Level 3
Joined
Oct 23, 2005
Messages
51
The funny thing about the upgrade selling shop is that, as a building, you can add any upgrade you want to it, but only the player who owns the shop could buy it, (if it's neutral-passive, no one can get the upgrade) but, if you make an item, make it's title that of an upgrade, then make this trigger...
Event
Unit manipulates item/Unit pawns item (something like that)
Condition
(Item being manipulated/Item being pawned) = (Upgrade item)
Same as previously mentioned
Action
Set level of (upgrade) to 1 (I.E. research it for that player)
Note: the manipulate trigger would, of course, be if you want the player to buy the item. then use it, but if you just want them to buy it, then you would go with the pawn trigger
I don't see why you wouldn't be able to add more than one spell to a unit, assuming I know what your talking about, I do on "Might & Magic 7 1/2" (Really crude right now, so you won't see it anytime soon, but the spells work)
I'm not sure what you mean about the spell being in your command button, if it's simple button position, all you have to do is set button coordinates, like this:
Art - Button Position X (0-3, horizontally left to right)
Art - Button Position Y (0-2, vertically top to bottom)
EDIT: I'm assuming your using TFT because you have spell books, but if not, say so and I'll adjust my advice for RoC and advise you get TFT.
 
Level 3
Joined
Jun 16, 2004
Messages
36
I have TFT, everyone told me befor i had it to get it, so now i do! It has alot more stuff doesnt it? lol.

Well, the triggering way, ill try that now. So ill have to make an item, then a upgrade and a spell. Then trigger all the darn spells, gosh, thats going to take along time... and I want to have alot of spells... well, thanks!

If anyone has something els to say, thanks!
 
Level 3
Joined
Oct 23, 2005
Messages
51
You know, this may or may not help, but I have this semi-shortcut that helped me...
Event
Unit manipulates item
Condition
Hero manipulating item equal to... (optional)
Action
If (all conditions true) then do (then actions) else do (else actions)
Conditions
Item being manipulated equal to...
Then Actions
Upgrade matching spell
Else Actions
Do nothing
If (all conditions true) then do (then actions) else do (else actions)
Conditions
Item being manipulated equal to...
Then Actions
Upgrade matching spell
Else Actions
Do nothing
Etc.
It doesn't help that much, but it makes it feel a bit more compact, saves time on event and condition making, and condenses it into one trigger...
I've often found that the work catagorization of map-making for my good maps are roughly:
60% Object Making
30% Trigger Making
8% Terrain/Doodad/Unit/Region/Camera placing
2% Other
I'll be honest, I never found a good shortcut around hard work, not even in map-making, the closest I ever got was making mini-games instead!
But, on the bright side, I've never sighed deeper when I finished my big maps.
Honestly, "Twilight Islands" took me at least 4 months, probably more, And I doubt "M&M71/2" will take any less time, darn.
 
Level 3
Joined
Jun 16, 2004
Messages
36
well spoken, , more time spent,better results.

Guess im going to be working on trigger for a while, thanks!

Oh, and that trigger is "Upgrade Matching Spell". Is there a trigger, or were you just shorting it? Im so new... :lol:
 
Level 3
Joined
Oct 23, 2005
Messages
51
I'm not as good as I make myself look either, I mean, I've used the ME for years, but a lot of that was some really simplistic stuff, I still don't enitrely know what a batch is, though I got the vague idea, all I know about JASS is text coloring, and I'm still finding new methods of doin' stuff, for example, I'm a little new to the leaderboard, and I've made a trigger with it that doesn't entirely work, you may not be able to help me, but the thing looks like this...
Event
a unit dies
Condition

Action
(Essentially) Add 1 to leaderboard for killing player and run "Update Leaderboard" ignoring conditions

Event

Condition

Action
Update leaderboard for Player 1
Update leaderboard for Player 2
Update leaderboard for Player 3
Update leaderboard for Player 8
Update leaderboard for Player 9

The problem is, when I did it only updated Player 2, I copied it right off Warchasers, whether or not you can help I hope someone can.
 
Status
Not open for further replies.
Top