(Keeps Hive Alive)
Go Back   The Hive Workshop - A Warcraft III Modding Site > Warcraft III Modding > World Editor Help Zone

World Editor Help Zone Need help with Blizzard's World Editor? Ask general questions about its features and use in this forum. README!

Reply
 
LinkBack Thread Tools Display Modes
Old 11-08-2008, 01:18 AM   #1 (permalink)

User
 
Join Date: Sep 2008
Posts: 17

mjaumeow is an unknown quantity at this point (0)


Bind item to player trigger

Hi i need a trigger for locking an item to the player that picks it up^^

For example player 2 picks up a Dagger and then drops, then only player 2 can pick it up again and no one else^^

And this is the last trigger im gonna need before i release my map as a beta :P
mjaumeow is offline   Reply With Quote
Old 11-08-2008, 02:09 AM   #2 (permalink)
 
darkrider's Avatar

Sacred War Editor
 
Join Date: Dec 2007
Posts: 569

darkrider has little to show at this moment (40)darkrider has little to show at this moment (40)darkrider has little to show at this moment (40)darkrider has little to show at this moment (40)darkrider has little to show at this moment (40)


mmm...

i think that you should add every item dropped by a hero into an item array (1 array per player)
when a unit acquires an item you check if the item is in any of those arrays if so drop the item and print a message

thats what came to my mind right now... but i think somebody might have a better idea or later i may think of something :P
darkrider is offline   Reply With Quote
Old 11-08-2008, 04:09 AM   #3 (permalink)
 
jareph's Avatar

GUI M.Creator [志]
 
Join Date: Oct 2007
Posts: 236

jareph has little to show at this moment (18)jareph has little to show at this moment (18)


Make trigger like,
Pick
Events
Unit - A unit Acquires an item
Conditions
((Triggering unit) is A Hero) Equal to True
Actions
Item - Set the custom value of (Item being manipulated) to (Player number of (Owner of (Triggering unit)))
and
Drop
Events
Unit - A unit Acquires an item
Conditions
Or - Any (Conditions) are true
Conditions
(Custom value of (Item being manipulated)) Not equal to 0
(Custom value of (Item being manipulated)) Not equal to (Player number of (Owner of (Triggering unit)))
Actions
Unit - Order (Triggering unit) to drop (Item being manipulated) at (Position of (Triggering unit))
__________________
My Return of the Phoenix(ROTP) has release, AI system ADDED
Each hero contain 10 different Skill
jareph is offline   Reply With Quote
Old 11-08-2008, 04:59 AM   #4 (permalink)
 
Angry_Bovine's Avatar

Master Warcrafter
 
Join Date: Oct 2007
Posts: 445

Angry_Bovine has little to show at this moment (25)Angry_Bovine has little to show at this moment (25)Angry_Bovine has little to show at this moment (25)


You'll probably also want to add a warning message on to that, some people might not get why they can't pick it up otherwise.
__________________
Current Project:
Looking for something to do in your spare time? Try The Darkening Wars, a whole new RTS that features intense combat, (soon to be 3 races), weather, realistic accuracy, and more! Visit The Darkening Wars Map! You won't be disappointed. It is currently in beta phase, about 90% finished.

Like the game? Join The Darkening Wars group, where you can discuss strategies and ideas for the map.
Angry_Bovine is offline   Reply With Quote
Old 11-08-2008, 08:58 AM   #5 (permalink)

User
 
Join Date: Sep 2008
Posts: 17

mjaumeow is an unknown quantity at this point (0)


no player can pick up an item :S

Last edited by mjaumeow; 11-08-2008 at 10:28 AM..
mjaumeow is offline   Reply With Quote
Old 11-08-2008, 01:44 PM   #6 (permalink)
 
M0RT's Avatar

User
 
Join Date: Apr 2008
Posts: 190

M0RT has little to show at this moment (31)M0RT has little to show at this moment (31)M0RT has little to show at this moment (31)M0RT has little to show at this moment (31)


Quote:
Originally Posted by mjaumeow View Post
no player can pick up an item :S
The jareph's Drop trigger should have "Equals to 0" instead of "Not Equals to 0". Also it leaks through the "Position of (Triggering unit)"

Also, there is the action "Item - change owner". Maybe that could be used instead of the custom value, it seems more fitting :-)
__________________
Check out my maps if I helped you!
All my resources
My main project:
RuneForce
M0RT is offline   Reply With Quote
Old 11-08-2008, 03:48 PM   #7 (permalink)

User
 
Join Date: Sep 2008
Posts: 17

mjaumeow is an unknown quantity at this point (0)


now all can pick it up -.-

nevermind i got it working ^^
now how do i mark this solved? xD

Last edited by mjaumeow; 11-08-2008 at 04:09 PM..
mjaumeow is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Unsolved] Can you detect when another player sells an item on one of your units? Aoen World Editor Help Zone 5 09-20-2008 08:59 AM
Give Item to hero that shares player with the crafter Linaze World Editor Help Zone 5 06-20-2008 05:14 PM
Bind Maps Cr0wE World Editor Help Zone 6 04-15-2008 12:59 AM
Bind Spell Help Japut3h Triggers & Scripts 7 02-18-2008 12:42 PM
[Trigger] One item of item type (Trigger Problem) Arab4life Triggers & Scripts 12 06-08-2007 09:59 PM

All times are GMT. The time now is 06:28 AM.






Your link here 
Loans | Free File Sharing | Looking for Credit Cards? | Credit Cards | Mortgage Calculator
Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Copyright©Ralle