Creating items

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

Creating items

Postby Penguin » May 24th, 2007, 4:43 am

How would I create an item at the selected hero's spot, or create an item in the selected hero's inventory? Pictures would be nice.
Penguin
Member
 
Posts: 55
Joined: May 22nd, 2007, 1:12 am

Postby Aero » May 24th, 2007, 4:13 pm

call CreateItem('XXXX',x,y)

Where 'XXXX' is item ID
Where x is your unit x coordinate
Where y is your unit y coordinate
User avatar
Aero
Forum Staff
 
Posts: 830
Joined: January 28th, 2007, 8:10 pm
Location: Canada
Title: JASS Programmer

Postby Xantan » May 24th, 2007, 4:22 pm

GUI version -
pick every unit in entire map owned by player triggering player and do item create xx(pick item)xx for hero picked unit
User avatar
Xantan
Honorary wc3edit.net Traitor
 
Posts: 2513
Joined: February 1st, 2007, 4:11 pm
Location: NEVADA

Postby Aero » May 24th, 2007, 8:48 pm

JASS is so much easier -.-
User avatar
Aero
Forum Staff
 
Posts: 830
Joined: January 28th, 2007, 8:10 pm
Location: Canada
Title: JASS Programmer

Postby Penguin » May 24th, 2007, 11:13 pm

Thanks guys.
Penguin
Member
 
Posts: 55
Joined: May 22nd, 2007, 1:12 am

Postby Kala-cha » May 25th, 2007, 2:52 am

By the way, if you use Xantan's, (I hate your way >.<), it'll pick every unit owned by you that has an inventory and add an item to it. GUI =
Events:
Player - Player 1 (Red) types a chat message containing -additem as An exact match
Conditions:
(Player 1 (Red) is in cheatgroup) Equal to True
Actions:
Hero - Create (Random level -1 Any Class item-type) and give it to (Picked unit)
(OPT) Actions:
Hero - Create (Chosen Item) and give it to (Picked Unit)

Xantan's way is annoying, especially in Elemental TD.
Kala-cha
Forum Addict
 
Posts: 405
Joined: February 17th, 2007, 9:16 pm

Postby Xantan » May 25th, 2007, 6:12 am

my additem picks only heroes, I was just too lazy to explain how to do that here.
User avatar
Xantan
Honorary wc3edit.net Traitor
 
Posts: 2513
Joined: February 1st, 2007, 4:11 pm
Location: NEVADA

Postby Kala-cha » May 25th, 2007, 4:50 pm

Yah, well, your way suck with -agi etc. (-lvl, -agi, -str, -int, additem), it picks all my heroes and it looks so obvious that I'm cheating :/
Kala-cha
Forum Addict
 
Posts: 405
Joined: February 17th, 2007, 9:16 pm

Postby Xantan » May 25th, 2007, 5:00 pm

Kala-cha wrote:Yah, well, your way suck with -agi etc. (-lvl, -agi, -str, -int, additem), it picks all my heroes and it looks so obvious that I'm cheating :/


-modify ftw?
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 8 guests