The problem is neither it is in command nor in abilities, no matter if you search for using ability or issued order as event...theres just nothing.
And when you drop an item it is not entering an area since it was already on creation in the area and you cant move it outwards since nothing triggers it...
Thank you! Bifuu!!
I have set the unit flag of the item to pawnable and i had to increase the range of the sell ability. But it works now!!!
I got another problem and i am getting no help at any forum, maybe you can help me.
I am searching for 2 events, it does not matter how they are realized, but i need them and i cant find any possibility working.
I need the event when an item is dropped (because i want to remove it then, but it should still be dropable) and i need the event when an item is used, until now i have just found one indirectly when giving an item the spawn ability and get this with triggers and remove the unit afterwards with trigger.
I need those 2 events/conditions, no matter how they are managed, for item is used i can only imagine a solution for instant effects, not items effecting a target.
I tried a lot of combinations but i cant get any trigger to work on item being dropped...
Hey, i did this tutorial and my shop works fine, except the pawn function.
I added a new ability based on CAbilPawn and increased the range to 1.
But always when i want to sell it (move item from inventory to structure) it says the unit you want to give that item needs an inventory. So it just wants to give it to the unit, not selling it.
And even if i add an inventory it just drops the item to the ground...
I am missing some functions from warcraft 3, like
Event:
-Any unit uses an item
Conditions:
-String=Name of Item (you cant compare strings with names anyway in sc2... so i dont know how to do this)
-Itemtype=... (this can be done by comparing unittype of item if the event works)
-Count items in inventory (not sure but i guess this one is in)
-Count items in inventory of type (this one isnt)
Actions:
-move item to column/row in inventory
-drop item
-remove item from inventory out of game
So i would liek to know how i can do them if it is possible anyway...maybe they are unfinished, but i also thought inventories/items/shops etc etc are not possible yet, but they are.
0
@Mehoron: Go
Thanks you!!!
Its working.... thats aweful i was searchign for that for more than 1 week already and you are the first one who could explain it to me, thanks man!
0
@Mehoron: Go
Its not there, it is set to show commands and any ability all the time for me, for inventory i just changed the range and added inventory container
0
@Mehoron: Go
The problem is neither it is in command nor in abilities, no matter if you search for using ability or issued order as event...theres just nothing.
And when you drop an item it is not entering an area since it was already on creation in the area and you cant move it outwards since nothing triggers it...
0
Are you sure that you do not have any trigger which removed them? the items count as units so they can be affected easily
I did not try a lot with items yet, but it does not sound as a general bug
0
@Bifuu: Go
Thank you! Bifuu!! I have set the unit flag of the item to pawnable and i had to increase the range of the sell ability. But it works now!!!
I got another problem and i am getting no help at any forum, maybe you can help me.
I am searching for 2 events, it does not matter how they are realized, but i need them and i cant find any possibility working.
I need the event when an item is dropped (because i want to remove it then, but it should still be dropable) and i need the event when an item is used, until now i have just found one indirectly when giving an item the spawn ability and get this with triggers and remove the unit afterwards with trigger.
0
I need those 2 events/conditions, no matter how they are managed, for item is used i can only imagine a solution for instant effects, not items effecting a target.
I tried a lot of combinations but i cant get any trigger to work on item being dropped...
Anyone can help me please?
0
@Bifuu: Go
Hey, i did this tutorial and my shop works fine, except the pawn function.
I added a new ability based on CAbilPawn and increased the range to 1.
But always when i want to sell it (move item from inventory to structure) it says the unit you want to give that item needs an inventory. So it just wants to give it to the unit, not selling it. And even if i add an inventory it just drops the item to the ground...
So whats wrong, how has the pawn ability to be?
0
I am missing some functions from warcraft 3, like Event: -Any unit uses an item
Conditions: -String=Name of Item (you cant compare strings with names anyway in sc2... so i dont know how to do this) -Itemtype=... (this can be done by comparing unittype of item if the event works) -Count items in inventory (not sure but i guess this one is in) -Count items in inventory of type (this one isnt)
Actions: -move item to column/row in inventory -drop item -remove item from inventory out of game
So i would liek to know how i can do them if it is possible anyway...maybe they are unfinished, but i also thought inventories/items/shops etc etc are not possible yet, but they are.
Anyone has an idea?