HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Confusing Situation...Plz help

06-11-2004, 11:40 AM#1
Doomsberg
I dont want to release any plans/ideas for the mod "Modern Warfare' but since i cannot solve my current problem, i will have to.
Ok, our plan is to have items like hellfires, and tow missiles that are items, for units to use like 3rd attacks. But then we come to the problem of any random soldier carrying/using a hellfire or something rediculous, so to fix this we have planned to edit some files etc. so that only certain items will be able to be picked up/used by certain units. But thats when things get really complicated.

My first idea was to use my amazing slk files editing skills to change an ability to do our bidding. So i changed the field for Inventory...Can pickup items...from boolean to itemlist. So now instead of the question being answered yes or no..it would hopefully only allow the items listed to be picked up. Understand?

Anyway, i tested my idea, but the hero wouldn't pick up any items, even the ones on the list. So i thought about it for a while and thought maybe there is something in the scripts (blizzard.j and common.j) that has something to do with this. So i looked around and edited some stuff, but i realised that i didn't know exactly what i was looking for.

So now ive come to ask u's, how to fix my problem. I want certain items to be able to be picked up by certain units. And done without triggers, becuase these maps will be melee maps.

Any ideas/suggestions are welcome, even if the idea is completely different to what ive been doing...il try it. Thnx a lot in advance.
06-11-2004, 04:09 PM#2
Aiursrage2k
Flag all special items with something like 300 health. Than have a trigger where if the hero does not meet the criteria the item is dropped. For example it might be that only heroes can pick up these items. You can edit the blizzard.j file so it will work for all maps, even melee.
06-11-2004, 04:52 PM#3
Narwanza
There is a solution that is less work, but it will require triggers. Have a trigger that fires when a unit is issued the order "smart". Then have conditions on if it is a special item, and then have an if then statement that filters out wrong units and if it is a wrong unit issue a new order, "stop". I don't think you are going to be able to get around this w/out triggers, but I believe there is a way to still have it be a melee map w/triggers. What you do is make your triggers in a blank map and save it. Then open it in winMPQ (or other similar programs) and save the war3map.j to your harddrive. Open your modern warfare map and then save. Now open your map in winMPQ and import the war3map.j into it over the existing one. You want it to be imported with no previous filename, so it doesn't have the war3imported b4 it, just have it be war3map.j. This will bypass the settings so it will have the triggers but still be a melee map. I know winMPQ works for this but I don't know if the WC3 importer does.