| 10-27-2004, 02:53 PM | #1 |
Hi... i need help (again) well... i was wondering about a item that carries item... I was thinking at a item like a unit. A item that can give and take items from the hero.. (that needs to be dropped out before giving/taking items) But how to make a unit that can be carried in a inventory?!?!? If someone please have other ideas about item that can carry items.... please give the tips to me... |
| 10-27-2004, 05:17 PM | #2 |
If you want a carriable unit, try this; give the unit a dummy ability, use a trigger to remove/relocate the unit and put an item in its place. When the item is used bring the unit back. BTW this doesn't sound like a half bad idea ^^ |
| 10-27-2004, 05:34 PM | #3 |
Wow.... i didn't think that way... but it might work! Thanks |
| 10-27-2004, 06:35 PM | #4 |
Thanks, dude. Hope your map goes well then, glad to contribute ![]() |
| 10-28-2004, 12:27 PM | #5 | |
Quote:
well... i hope so... i am doing a "HUGE" map. And i hope that people like it.. :\ some of my friends have tested it... (they are not really wc3 players) but they think it was good.. And then it was only 6-7% completed :P |
| 10-28-2004, 01:24 PM | #6 | |
Quote:
Hi again warlord255..... i ask for help again.. The unit that have the ability to become an item... what to do if i want that the ability only shall work if the hero is within a range of 370? |
| 10-28-2004, 01:28 PM | #7 | |
Quote:
Heh... and by the way.... how to do that it only works if the hero got a free slot in the inventory? :\ i've searched for the condition but i dont find it ![]() |
| 10-28-2004, 03:31 PM | #8 |
First and formost... triple post secondly, with your issue. assuming its an rpg of some sort, have a unit variable (array) for each player's hero. #this is just me off the top of my head# for example Player Hero (12) - the "12" is the size of the array and for how many players, thats guessing there is 12 players. then have a trigger Code:
Event
unit is within 370 of "player Hero (1)"
unit is within 370 of "player Hero (2)"
unit is within 370 of "player Hero (3)"
unit is within 370 of "player Hero (4)"
unit is within 370 of "player Hero (5)"
unit is within 370 of "player Hero (6)"
unit is within 370 of "player Hero (7)"
unit is within 370 of "player Hero (8)"
unit is within 370 of "player Hero (9)"
unit is within 370 of "player Hero (10)"
unit is within 370 of "player Hero (11)"
unit is within 370 of "player Hero (12)"
Condition
[this is an "and" condition]
{unit type of triggering unit equal to "box"} and {unit owned by triggering unit equal to owner of triggering unit} << im not entirely sure about this one
Actions
Unit - Give ability to triggering unit(if you want to check the inventory, i suggest doing a loop of 6 integer to check if there is an item in slot (integer A)...) i will also note that this is just offhand, and not specific - dont have WE open |
| 10-28-2004, 03:44 PM | #9 |
Well.... this maybe work.... but i was searching for a condition... not an event.. i want that the spell shall be there all the time... but that it wont work if there isn't a free inventory slot or that the hero is to far away... but thanks anyway.... ![]() |
