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
Help with RPG item trigger
Moderator: Cheaters
-
- Forum Staff
- Posts: 829
- Joined: January 28th, 2007, 8:10 pm
- Title: JASS Programmer
- Location: Canada
-
- Newcomer
- Posts: 18
- Joined: February 14th, 2007, 2:43 pm
Re: Help with RPG item trigger
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 =).
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 =).
-
- Forum Staff
- Posts: 829
- Joined: January 28th, 2007, 8:10 pm
- Title: JASS Programmer
- Location: Canada
Re: Help with RPG item trigger
Where did TRGSTRING_ come from?
That's only for reference to .wts . . .
That's only for reference to .wts . . .
-
- Honorary wc3edit.net Traitor
- Posts: 2507
- Joined: February 1st, 2007, 4:11 pm
- Location: NEVADA
Re: Help with RPG item trigger
if you just make a map normally and dont protect it all items names and functions also go to the .wts
-
- Newcomer
- Posts: 18
- Joined: February 14th, 2007, 2:43 pm
Re: Help with RPG item trigger
That's basically the item ID from the RAW data of the items, i believe.
-
- Honorary wc3edit.net Traitor
- Posts: 2507
- Joined: February 1st, 2007, 4:11 pm
- Location: NEVADA
-
- Forum Staff
- Posts: 829
- Joined: January 28th, 2007, 8:10 pm
- Title: JASS Programmer
- Location: Canada
Re: Help with RPG item trigger
This is partially true, as some tooltips and names get written to .wts.Xantan wrote:if you just make a map normally and dont protect it all items names and functions also go to the .wts
However, only item integer id is necessary to create an item . . .
call CreateItem(integer id , x , y)
-
- Member
- Posts: 86
- Joined: April 7th, 2007, 2:39 am
Re: Help with RPG item trigger
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
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
WhiteSkidMaul Wars
~Now Gone Superspeed!~
Re: Help with RPG item trigger
This takes way too long.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