| 05-15-2008, 12:24 PM | #1 |
Sup, i have a question concerning an inventory system i'm trying to make. It works with the main hero inventory. Inside this there is an armour button, when clicking this the inventory changes to one in which u can equip one helmet, chest piece etc. But i need the item attributes to apply to the hero. Thanks in advance for any help. :-) Edit: "It works with the main hero inventory" Sorry but i made a mistake. It doesn't work from the main hero inventory. It works from a secondary "hero" that follows you around and is used to put your stats into. I think this might complicate things a bit more since the item attributes have to apply to one hero from another as well. |
| 05-15-2008, 12:25 PM | #2 |
| 05-15-2008, 12:37 PM | #3 |
Is there a non JASS way to do this? I know absolutely nothing about coding. |
| 05-15-2008, 12:41 PM | #4 |
That's the only non-lame way I know. Once you've implemented it, there are only 4 lines of custom script you need to be calling, and the implementation is well explained. I'm not sure if it says it there, but you will need Jass NewGen Pack, which you should really be using anyway. |
| 05-15-2008, 12:46 PM | #5 |
thanks i'll give it a try. |
| 05-15-2008, 12:56 PM | #6 |
So, that thing is 100% wc3c content but we need a hive link to download it, awesome! I think that idea is quite broken anyways, in order to save the 30 minutes it takes to implement the abilities you make the map require 1 extra minute when saving. Time to work on an actual BonusMod fix... |
| 05-15-2008, 11:04 PM | #7 | |
Quote:
Earthfury said that you only need to do it once, just disable the trigger that the object merger code is located inside after the first save. |
| 05-16-2008, 06:54 AM | #8 |
hmm maybe i have done something wrong, but it spent a couple minutes adding the abilities but then nothing happened. anyway i suppose i will have to redo it because i need it to work differently :p |
| 05-16-2008, 07:42 AM | #9 |
You add the code, save the map (JASSHelper processing should be taking longer than usual) then exit world editor and re-open the map it, if all is done right the objects should be there d07.RiV -Av3n |
| 05-16-2008, 09:00 AM | #10 |
um if i didnt exit we and just closed/opened the map will it work? anyway i already added most of them manually. also, can I use upgrades for that? given that I have only 1 unit per player (thats because I want to modify base damage and also want a clean way to modify hp/mana). |
| 05-16-2008, 09:21 AM | #11 |
you can't reverse upgrades if your gonna use it how bonusmod works -Av3n |
| 05-16-2008, 12:31 PM | #12 |
hey i just finished my upgrade system. i worked my way around the upgrade reversing by making all upgrades have 150 levels (just a random number) and create both positive and negative upgrades. i only had to make upgrades for base damage since everything else can be modified with abilities. and it works and doesnt increase map size (only by ~3k) and doesnt lag (i think). you want a demo map? |
| 05-17-2008, 03:32 AM | #13 |
Might as well take a look into it -Av3n |
| 05-17-2008, 01:47 PM | #14 |
oh crap i just realised that you can't change base armor this way, upgrades can only increase armor by whatever you specify in unit settings so you cant make them negative -.- this makes the system unsuitable for my map (since i was planning to implement my own damage system and use the damage/armor white and green values separately) and i will have to use multiboard. i still have the system, its a little bugged but i can fix it up and post it if u need it. |
