Question: How to make items unbuyable without necessary item

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

Question: How to make items unbuyable without necessary item

Postby l)arkSephiroth » October 20th, 2007, 12:49 am

I have recently taken over work on a map and currently I have no way to prevent the map from just sucking up your gold if you accidentally try to don't click me an item for which you do not have the required necessary items already on you ( Item A + Item B = More Powerful Item C ).. like recipes.

The original author didn't bother preventing the gold loss from failed don't click me items.... This is a high priority for improving the map's playability.

I was wondering how you make it so that it (1) Won't take your money or your items if you don't have required items and (2) It will make a message for that player telling them they do not have the necessary items to do the purchase.

Thanks so much.
Last edited by l)arkSephiroth on October 20th, 2007, 4:12 am, edited 1 time in total.
l)arkSephiroth
Newcomer
 
Posts: 5
Joined: October 20th, 2007, 12:41 am

Re: Question: How to make items unbuyable without necessary item

Postby Xantan » October 20th, 2007, 1:41 am

event: unit buys item
conditions: item = RECIPE2
conditions: unit does not contain item (boalean or item idk) RECIPE LIST FOR RECIPE2
actions: player, add gold to player, all the gold for recipe2
actions: remove item of type RECIPE2 from triggerint/buying unit
User avatar
Xantan
Honorary wc3edit.net Traitor
 
Posts: 2513
Joined: February 1st, 2007, 4:11 pm
Location: NEVADA


Return to Map Editing

Who is online

Users browsing this forum: No registered users and 9 guests