| 09-24-2004, 03:35 AM | #1 |
Currently Most save type of maps Use the Anti Dupe thinige,But i can't make 1 0_0,To explain I want a trigger When You -load Your char THERE items are only to the char that Loaded,So if the Person trys to give the Item It will Drop The save system Im useing is in The Thread Hope Som1 can help me thankz http://www.wc3campaigns.com/showthread.php?t=54790 |
| 09-25-2004, 02:20 PM | #2 | |
Quote:
I've never done this, but here's my theoretical solution with my limited testing of it... When the char is loaded, for each of their items, set that the owner of the item be the owner of the char (Item - Change Owner). Then when a hero picks up an item, check to make sure that either the item belongs to them or belongs to no one. If it does belong to someone else, then force them to drop it and display some error message. |
| 09-25-2004, 08:25 PM | #3 | |
Quote:
If that doesn't work, set the life to 100, 200, 300, 400 and so forth, and then check for it that way. If the item's life is 100, then it can only be used by player 1. If someone else picks it up, just make a trigger checking for players picking up items and check the life-player and if it doesn't match, drop the item. |
| 09-25-2004, 08:31 PM | #4 |
hmmmm welll can you Text it here? lol copy the triggers here please |
| 09-25-2004, 08:45 PM | #5 | |
Quote:
*sigh* You can't just ask people to do all the work for you. I'll do something small from time to time, but this involves a good bit of work. If you don't understand the concepts that we've presented then ask for clarification, look up some scripts in the file center, or try to make something less complicated. |
| 09-25-2004, 08:56 PM | #6 |
Yes, indeed. If you're not advanced enough to create this yourself by the information we've given to you, or find the informatio yourself, you might want to start off with something easier. (Or hire someone to do it for you). Just because I'm nice I went ahead and did the actual trigger for you. It was even simpler now with custom values; Code:
HeroDropItem
Events
Unit - A unit owned by Player 1 (Red) Acquires an item
All-Players-In-Between
Unit - A unit owned by Player 12 (Brown) Acquires an item
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Custom value of (Item being manipulated)) Equal to 0
Then - Actions
Item - Set the custom value of (Item being manipulated) to (Player number of (Owner of (Hero manipulating item)))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Custom value of (Item being manipulated)) Equal to (Player number of (Owner of (Hero manipulating item)))
Then - Actions
Do nothing
Else - Actions
Hero - Drop (Item being manipulated) from (Hero manipulating item)I haven't checked if it works, but there's nothing wrong with it. |
| 09-25-2004, 09:17 PM | #7 | |
Quote:
Yes. I was hesitant to do it because he wants it to only apply to items that are loaded with the character, in which case it should be amongst the character loading script, and I don't feel like looking at all that. I hate them. And this trigger here would mean that anyone who picks up an item would then permanently have ownership of it--I played an MMORPG like that the other day and it annoyed me a great deal. Like I went to pick up this one item to sell it, but then it made me drop it because I wasn't allowed to use it (I had to be a black mage and I was a fighter). So I wanted to give it to my partner but then he wasn't allowed to pick it up because since I had tried to, I then had ownership of it. But then I couldn't even grab it to give it to him because I wasn't allowed to pick it up for being the wrong class.. and he was the right class.. and oi. |
| 09-25-2004, 09:20 PM | #8 |
so that comes to show you, that a trading system should be implemented. |
| 09-26-2004, 04:04 AM | #9 |
Thank you ^^ Guyz |
| 09-26-2004, 08:56 AM | #10 | |
Quote:
True, or the code rewritten to not set a number when you're the wrong class (This avoids unusable stuff). Possibly, when you change class (If you do), you drop any non-current-class items and lose ownership of them (For my trigger that would be 0 :P) Anyway, that's not the point. Problem solved, eh :P Oh, and if you're using this for a load trigger, just set the item's custom values of all items that are in the inventory of the loading player to the number of the player. Regards Dead-Inside |
| 09-27-2004, 10:25 PM | #11 |
You dont have to use class of item... Thats anoying asing all your items to classes... All you need to do is ACTION: Unit aquires item. CONDITION Item type is not (all items you don't want this to apply to) EVENT: Turn off this trigger. Move item being minipulted to position of hero minpulating item. IF: Hero minipulating item has item type of item being minipulated. THEN: Say to player owning hero minipulating item "You cant hold 2 of the same item" Turn on this trigger. ELSE: Give item being minipulated to hero minipulating item. Turn on this trigger. This system is copatible with recipes. It is neccessary to turn the trigger off then on or else you will crash warcraft when someone picks up an item. |
| 09-28-2004, 01:37 AM | #12 |
there a ton of problems with that. item type is not.. there could be dozens. im not sure but i dont think move item being mannipulated takes it from the hero, it may tho. if it doesnt, then hero manipulating item has item type of item being manipulated would work because they would actually have item being manipulated. |
| 09-28-2004, 05:48 AM | #13 |
Your triggers are seriously flawed. Not only do they not work but sometimes they miss actions. I suggest you open the editor and look around a bit, before answering more threads. Besides that, this was not what he was asking for, and the problem was already solved. Regards Dead-Inside |
| 09-28-2004, 06:09 PM | #14 | |
Quote:
If the trigger is seriously flawed and does not work (i can only asume thats what you meant) how com it works perfectly for me? Thanks for making me feel welcome. You sound like a really cool guy..... How did you get to be admin by flaming people? |
| 09-28-2004, 06:21 PM | #15 |
Don't mind Dead-Inside. He may not have noticed it, but parts of his post didn't make sense at all from a logical point of view. |
