Item Unpawnable

Undead_Lives

New Member
This trigger, for some reason, does not work.
Code:
Limit 1
????Events
????????Unit - A unit Pawns an item (to shop)
????Conditions
????????(Item-type of (Sold Item)) Equal to Tome of Agility
????????[Integer Variable] Equal to 4
????Actions
????????Item - Make (Sold Item) Unpawnable
What I am thinking, is that the Event (pawning an item) is not the right one. However, I have tried sells an item, and aquires an item also. None of these work. Note that the item here is a Powerup.
As you can see, I want that when a variable in another trigger (the variable part works just fine) comes to equal four, the item should be unpawnable. Also note that this item is already in a shop.
So, any help? I can't see what I am doing wrong.
 
Werbung:

refl3ction

New Member
ahh crap i just closed my editor... but i think this can be done without triggers
in the object editor go to the item u dont wish to be sold and find the path "Item can be Sold to Shops" and set it false
 

Xeridanus

New Member
unpawnable is for maketplace only, i think, unless of course there isn't any other possibility, like sellable. also, if you have already pawned the item, it might be too late to try and make it unpawnable. try changing the shops item list. oh i got another idea, doing it your way would only effect one item, the one you just got rid of, the rest of the items of the same type will be uneffected.
 

james1654

New Member
I am very heavy handed on triggers, and here is what i would do:

Event:
A unit aquares an item

Condition:
(put whatever item type comparisons ect u want here)

action:
remove item being manipulated
wait 0.5
Item - create 1 blablabla

_ _ _ _ _ _


blabalbla is an identical object, that is not pawnable.

_ _ _ _ _ _ _

If you want to have lots of diferent types of items non pawnable,

(if, then, else) - - -

If (item type comparison) Then create 1 blablbla

else: (if then else) . . .

The way I did it might be wrong, i'm not very good with items and item triggers, but the event might be abit hairy to do . . .
 
Werbung:

Undead_Lives

New Member
Ok, I see what you guys are saying and I think I'll try to just remove the item instead of making it unpawnable. Will update with how it goes later.
Thanks.
 
Top