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

New Ammo system request.

Status
Not open for further replies.
Level 2
Joined
Mar 12, 2009
Messages
13
im using this system atm:

http://www.hiveworkshop.com/forums/r...e.php?t=103220

How it works is for each new weapon theres a new hero, so if a unarmed hero uses the item m16 his hero is replaced with a new hero.
the problem with this is for my map i want the hero to stay the same and just change his damage. so that his skills dont change when he changes weapon.

because i want to make it a save/load map each new "weapon" is a new set of skills and means the user has to set his skill points all over again.

any ideas?
 
Level 28
Joined
Jan 26, 2007
Messages
4,789
You could make the weapon a spell book, which is based on the level of the hero.

e.g.:
If you load a hero level 5, it will get a spellbook with only the spells up to level 5 (most of the time those are 1/2 spells).
If you load a hero level 50, it will get a spellbook with all spells up to level 50.

If you need more spells, you could also add another spellbook (like "Active" and "Passive").

The hero stays the same, you only need to add/remove the spellbook for the hero when switching a weapon.

Also, you don't use skill points with this system, but you might make skill points usuable for attributes, or something original ;)
 
Level 28
Joined
Jan 26, 2007
Messages
4,789
Create the spellbook as an ability, not an item

Use this to give the spellbook to a hero when a weapon is picked up:

  • Events
    • Unit - A unit Acquires an item
  • Conditions
    • (Item-type of (Item being manipulated)) Equal to Weapon
  • Actions
    • Unit - Add SpellBook to (Hero manipulating item)
Then you can increase the level of each spellbook very easily, with this trigger:

  • Events
    • Unit - A unit Gains a level
  • Conditions
    • (Leveling Hero) Equal to Your_Hero[(Player number of (Triggering player))]
  • Actions
    • Unit - Increase level of SpellBook for (Leveling Hero)
(you can also upgrade it every X levels, or upgrade it when the hero reaches a certain level).
I don't know if I have made any mistakes, but it should work.

Note:
If you use multiple spellbooks, be sure you change the "Data - Base Order ID" of 1 book, otherwise the 2 spellbooks will merge to 1 spellbook, which is limited to 12 spells (while you can use 24 spells with 2 spellbooks of course).
 
Level 2
Joined
Mar 12, 2009
Messages
13
ooo, i want the hero to change to the new hero but i just want the skills to follow. as this way the damage and attack type can change with different weapons but i keep the skills from before.

ideas?
 
Status
Not open for further replies.
Top