Unique items?

darkRae

Ueki Fan (Ueki is watching you)
Reaction score
173
First, create an Integer Array variable with size of 12 (or any number of players)

When a unit acquires the item, add 1 to that variable[Player Number of Owner of Unit]
When a unit drops the item, subtract 1 from that variable[Player Number of Owner of Unit]

Then whenever a unit acquires that item, check if the number is less than 2.
If not, order the unit to drop the item.
 

Gripen2

New Member
Reaction score
1
First, create an Integer Array variable with size of 12 (or any number of players)

When a unit acquires the item, add 1 to that variable[Player Number of Owner of Unit]
When a unit drops the item, subtract 1 from that variable[Player Number of Owner of Unit]

Then whenever a unit acquires that item, check if the number is less than 2.
If not, order the unit to drop the item.


What is a "Integer Array"? :eek:
 

ManyTimes

I'm so lonesome I could cry...
Reaction score
293
Do you know how to create a variable? No? Look up a tutorial about variables.
http://world-editor-tutorials.thehelper.net/cat_usersubmit.php?view=20023
http://world-editor-tutorials.thehelper.net/cat_usersubmit.php?view=39233
If they are useful? No idea...

Edit: If I were you, I would go for the upper one, it is shorter and much much better. The other one is too much text till it gets to the point.

And the 'Variable Editor' they speak of, is inside Trigger Editor (F4) > And the button with an yellow X on, or hotkey for variable editor is CTRL+B, while you are inside of the trigger editor. OR go to the top menu "edit > variables"
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top