HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

I need help

06-04-2004, 02:35 AM#1
logik
i am making a small map... its a hero rpg.

i am trying to make an item ownership system, where when you drop and item, a floating text will appear over the item saying the owners name.

like Final Fantasy Open Rpg

can someone give me pointers???
06-04-2004, 02:40 AM#2
linkmaster23
Sign-up for my class. :) http://www.wc3campaigns.com/showthre...308#post539308
06-04-2004, 11:15 AM#3
TheReaper
the trigger
Events
Unit - A unit Loses an item
Conditions
(Unit-type of (Triggering unit)) Equal to Paladin
Actions
Floating Text - Create floating text that reads Paladin at (Position of (Last dropped item)) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency

This is the trigger you need???
(dont forget that this is just an example)
06-04-2004, 11:41 PM#4
logik
i know a considerable amount of tirggers, that part is basic and already done, i mean the process of not allowing someone to pick up items belonging to the person who dropped it
06-05-2004, 02:48 AM#5
johnfn
Its a set of two triggers.
Code:
Untitled Trigger 001
Events
Unit - A unit Loses an item
Conditions
Actions
Item - Set the custom value of (Last dropped item) to (Player number of (Owner of (Hero manipulating item)))
 
[b]And[/b]
 
Untitled Trigger 001 Copy
Events
Unit - A unit Acquires an item
Conditions
Actions
If ((Custom value of (Item being manipulated)) Equal to (Player number of (Owner of (Hero manipulating item)))) then do (Hero - Drop (Item being manipulated) from (Hero manipulating item)) else do (Do nothing)

You set the custom value of the item to the player number of the unit picking it up. Later you check it, and if its the same value, you drop it immidately from the unit. Easy (?) as that :-)

Oh, and by the way. You had no right to be insulted because he gave you what you asked:

Quote:
Originally Posted by logik
i am trying to make an item ownership system, where when you drop and item, a floating text will appear over the item saying the owners name.

Watch out next time...
06-06-2004, 03:56 AM#6
logik
that should do the trick.. i;ll giv it a tryi