I need item owner system same as DotA style. There has one player's item can't use other player (showing disable icon at not-owner player).How can i make that ? Please help me
make a trigger that detects when a unit aquires an item and sets its custom value to the players' number if the item is not owned
something like this i guess
Trigger:
Melee Initialization
Events
Unit - A unit Acquires an item
Conditions
Actions
Set players = (All players)
Player Group - Pick every player in players and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Custom value of (Item being manipulated)) Equal to 100
Then - Actions
Item - Set the custom value of (Item being manipulated) to (Player number of (Owner of (Triggering unit)))
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 (Triggering unit)))
Then - Actions
Do nothing
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Custom value of (Item being manipulated)) Not equal to (Player number of (Owner of (Triggering unit)))
Then - Actions
Hero - Drop (Item being manipulated) from (Triggering unit)
Item - Remove (Last dropped item)
Hero - Create DISitemtype and give it to (Triggering unit)
Else - Actions
Custom script: call DestroyForce(udg_players)
Note 1: if your map contains shareable items you have to change it
Note 2: i used 100 custom value in the first if/then/else because there is no player with that number
Note 3: players is a force(player group) variable, DISitemtype is a item type variable(you should use it with array so that it affects all items)
>This is Map-Destroying!!
As if you destroy "All players" at one time in-game, it's unusable for the rest of it...
Erm...simply remove creating the variable AND remove the Custom script that destroys the leak. Since you're removing the variable you no longer need to destroy the leak anyways.
I do know this - xenforo dropped the ball by not keeping the vbulletin reputation comments as a feature. The loss of the Reputation comments data when we switched to Xenforo really was the death knell for the site when it came to all the users that left. I know I missed it so much and I got way less interested in the site when that feature was gone and I run the site.
I'm on a page about incorrect corrections, and spent the better part of like two hours trying to get someone to understand that -5^2 = -25, not 25, and then that post had comments get reposted because that group is self sustaining, and that person was in turn trying to explain what I just explained to them. And I'm taking that as a victory