Item Problems

  • Thread starter Thread starter HoboJoe_5
  • Start date Start date
H

HoboJoe_5

Guest
Is there a way to limit the number of an specific item an unit can have without triggers. (I know a way with triggers i am just lazy)
 
Umm... if you only have 1 item on the map it would be incredibly difficult to get 2... :)
 
lol
I mean like a unit is allowed to only have 1 of specific item.
 
Without triggers, your choices are somewhat limited.
Like, for example, setting the inventory to hold at most one item...
Or, make them so incredibly expensive that you can't possibly buy more than one.

But, is there some particular reason to avoid triggers?
 
aww o well i guess i will just use triggers won't take long
thanks anyway
 
What the smart people do is run an For each integer 1-6 checking every type of item, and if the type of item in the slot equal to type of manipulating item AND its not equal to manipulating item then drop it.
 
hmm i don't really get what your saying so i will just make an integer to keep track of the number of items in the inventory of the hero for the items i want limited to one
 
This is what Rad was talking about

Code:
    Events
        Unit - A unit Acquires an item
    Conditions
    Actions
        For each (Integer A) from 1 to 6, do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        (Item-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to (Item-type of (Item being manipulated))
                        (Item being manipulated) Not equal to (Item carried by (Hero manipulating item) in slot (Integer A))
                    Then - Actions
                        Hero - Drop (Item being manipulated) from (Hero manipulating item)
                        Skip remaining actions
                       [B] - OR -[/B] Depends on wich one you prefer
                        Hero - Drop the item from slot (Integer A) of (Hero manipulating item)
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    got it
  • The Helper The Helper:
    Happy Thursday!
  • The Helper The Helper:
    Check out the new Featured Content feature we apparently got with the forum software upgrade! https://www.thehelper.net/featured/
  • The Helper The Helper:
    Also on the bottom right side bar we now have a Trending Content Box!
    +1
  • The Helper The Helper:
    Not on the Headline News page just on the Forums page can we get that Featured and Trending on the home page?
  • Ghan Ghan:
    Since the home page is technically a forum, it now shows on all forum views. Still in the sidebar.
    +1
  • The Helper The Helper:
    Happy Friday! Hope everyone has a fantastic day and an even better weekend!
  • The Helper The Helper:
    Happy Sunday!
  • The Helper The Helper:
    I lovc that I can post webp and X links now! :)
  • The Helper The Helper:
    Happy Thursday!
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    we were down for a minute - think a log file or something got too big
    +1
  • Ghan Ghan:
    The alerts say it was down for a while unfortunately.
  • Ghan Ghan:
    Didn't know what was going on while I was at work.
  • Ghan Ghan:
    Disk filled up with logs. Fixed now.
    +1
  • The Helper The Helper:
    not a problem at all thanks for getting us back up
  • The Helper The Helper:
    I think the bots are finding a way to get through the anubis
  • The Helper The Helper:
    Happy Wednesday Everyone! Hope everyone has a Fantastic Day!
    +1
  • The Helper The Helper:
    Yeah, stats are showing big bot influx like 12k page views.
  • Wizard Wizard:
    :wave:
    +1
  • Ghan Ghan:
    TH changed his avatar again. 6 more weeks of summer.
    +3
  • Wizard Wizard:
    lol
    +1
  • The Helper The Helper:
    Guys just a heads up I am going to be shutting the site down soon. I am just waiting on the NUON people to decide whether they want to transfer forum data and keep the discord. My email is [email protected] for anyone that wants to keep in touch and I have a facebook too. I will make an official post later. Love you guys and will miss everyone!
    +1
  • V-SNES V-SNES:
    Sent a pm @The Helper

The Helper Discord

Members online

No members online now.

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top