Help with RPG item trigger

For fulfilled maps that most likely don't work on the latest patch (1.24 or later).

Moderator: Cheaters

User avatar
Aero
Forum Staff
Posts: 829
Joined: January 28th, 2007, 8:10 pm
Title: JASS Programmer
Location: Canada

Re: Help with RPG item trigger

Post by Aero »

If you want it at your hero's feet than use...


Actions
Item - Create Staff of Sanctuary at (Position of Unit)

Where 'Unit' is your hero...

You can refer to your hero through picked unit via a group
User avatar
fever
Newcomer
Posts: 18
Joined: February 14th, 2007, 2:43 pm

Re: Help with RPG item trigger

Post by fever »

The Final CONCLUSION of -items (drops all items in game) trigger for GUI

Events:
Player - Player 1 (RED) types a chat message containing -items as an exact match
(More players can be added, I'm just too lazy to type them out)

Conditions: N/A

Actions:
Item - Create TRIGSTR_3484(Item ID) at (Position of Unit(Triggering unit))
OR
Item - Create TRIGSTR_3484(Item ID) at (Player 1 (Red) Start location)

Please note that for GUI, you'd have to do a new action, for every item in the game, or the specfic ones you want. So basically each Action trigger would be the same, aside from the ID number of the item.

THANKS AERO AND XANTAN for helping me to solve this problem, and hope it can help you all =).
User avatar
Aero
Forum Staff
Posts: 829
Joined: January 28th, 2007, 8:10 pm
Title: JASS Programmer
Location: Canada

Re: Help with RPG item trigger

Post by Aero »

Where did TRGSTRING_ come from?

That's only for reference to .wts . . .
User avatar
Xantan
Honorary wc3edit.net Traitor
Posts: 2507
Joined: February 1st, 2007, 4:11 pm
Location: NEVADA

Re: Help with RPG item trigger

Post by Xantan »

if you just make a map normally and dont protect it all items names and functions also go to the .wts
User avatar
fever
Newcomer
Posts: 18
Joined: February 14th, 2007, 2:43 pm

Re: Help with RPG item trigger

Post by fever »

That's basically the item ID from the RAW data of the items, i believe.
User avatar
Xantan
Honorary wc3edit.net Traitor
Posts: 2507
Joined: February 1st, 2007, 4:11 pm
Location: NEVADA

Re: Help with RPG item trigger

Post by Xantan »

nope.
User avatar
Aero
Forum Staff
Posts: 829
Joined: January 28th, 2007, 8:10 pm
Title: JASS Programmer
Location: Canada

Re: Help with RPG item trigger

Post by Aero »

Xantan wrote:if you just make a map normally and dont protect it all items names and functions also go to the .wts
This is partially true, as some tooltips and names get written to .wts.

However, only item integer id is necessary to create an item . . .

call CreateItem(integer id , x , y)
User avatar
Joshsta818
Member
Posts: 86
Joined: April 7th, 2007, 2:39 am

Re: Help with RPG item trigger

Post by Joshsta818 »

just a heads up, you wouldnt have to make a new trigger for each item.
Ex:
Events
Player - Player 1 (Red) types a chat message containing -dropthosesuckers as An exact match
Conditions (obviously dont need one, but i like to add in one like "name of triggering player equal to name.
Actions
Item - Create Tome of Experience at (Position of (Triggering unit))
Item - Create Crown of Kings +5 at (Position of (Triggering unit))
Item - Create Heart of Aszune at (Position of (Triggering unit))
you can have as many items as you want, and pos of triggering unit may not work, sence its a player msg, so you might have to use like,

Item - Create Tome of Experience at (Position of (Random unit from (Units in (Playable map area) owned by Player 1 (Red))))

is this newb friendly? this may b a repeat of areo and xantan. i diddnt read all theyre msg's :p
Image
WhiteSkidMaul Wars
~Now Gone Superspeed!~
Bartimaeus²

Re: Help with RPG item trigger

Post by Bartimaeus² »

Joshsta818 wrote:just a heads up, you wouldnt have to make a new trigger for each item.
Ex:
Events
Player - Player 1 (Red) types a chat message containing -dropthosesuckers as An exact match
Conditions (obviously dont need one, but i like to add in one like "name of triggering player equal to name.
Actions
Item - Create Tome of Experience at (Position of (Triggering unit))
Item - Create Crown of Kings +5 at (Position of (Triggering unit))
Item - Create Heart of Aszune at (Position of (Triggering unit))
you can have as many items as you want, and pos of triggering unit may not work, sence its a player msg, so you might have to use like,

Item - Create Tome of Experience at (Position of (Random unit from (Units in (Playable map area) owned by Player 1 (Red))))

is this newb friendly? this may b a repeat of areo and xantan. i diddnt read all theyre msg's :p
This takes way too long.