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 just got to watch the video because even though I was there I was trying to work out tech problems with the chat since I was the social media guy so I was distracted but check it out guys the video is super fucking great!
Looks like Google fixed whatever mistake that made the recipes on the site go crazy and we are no longer trending towards a recipe site lol - I don't care though because it motivated me to spend alot of time on the site improving it and at least now the content people are looking at is not stupid and embarrassing like it was when I first got back into this like 5 years ago.
They also were digging threw old shit at the sheriff's office and I tried to get them to give me the old electronic stuff, but they said no. They can't give it to people because they might use it to impersonate a cop or break into their network or some shit? idk but it was a shame to see them take a whole bunch of radios and shit to get shredded and landfilled