Remove Sellable Item???

JeveKnight

New Member
Reaction score
2
I want to make it so that if someone buys a rifle from a shop, after he buys the item, the shop removes the rifle from the list of buyable items so no one else can purchase them.
How do I do that?
 

Igor_Z

You can change this now in User CP.
Reaction score
61
If u like u can set the cooldown of the item to 999999 so the item won't cd till the end of the game?!
 

JeveKnight

New Member
Reaction score
2
If u like u can set the cooldown of the item to 999999 so the item won't cd till the end of the game?!

I'd much rather have the item be removed from the list of sellable items.
Are there any GUI triggers that can accomplish this?

+REP
 

vypur85

Hibernate
Reaction score
803
In trigger, you can find 'Neutral building - Marketplace stuff...'. One of the action allows you to remove item from marketplace while another allows you to add item to marketplace. Now, to be able to remove items from marketplace, the items must be added through trigger in the first place. Removing any items that has been placed via Object Editor won't do anything.
 

Genkora

Frog blast the vent core!
Reaction score
92
Maybe this would work?

Code:
The Rifle
      Events
            Unit - A unit Sells an item (from shop)
      Conditions
            (Item-type of (Item being manipulated)) Equal to The Rifle
      Actions
            Item - Remove (Sold Item)

I'm not a trigger genius, but I think this may do the trick. Won't hurt to try. As for the item name, i just used "the rifle" because I dunno what you're calling it.
 

WolfieeifloW

WEHZ Helper
Reaction score
372
This should work:
Code:
Untitled Trigger 001
    Events
        Unit - A unit Sells an item (from shop)
    Conditions
        (Item-type of (Sold Item)) Equal to [B]The Rifle[/B]
    Actions
        Neutral Building - Remove [B]The Rifle[/B] from [B]The Shop <gen>[/B]
The bolded words are the changeable parts.
 

Genkora

Frog blast the vent core!
Reaction score
92
Oh well, yours looks more like it would work. At least I was on the right track, I'm still kinda new to the whole trigger thing. I've been on this site constantly while making my rpg.
 

WolfieeifloW

WEHZ Helper
Reaction score
372
Your trigger probably would've worked also, mines just more specific.

OffTopic: You're making an RPG for your first map :eek: ? I'd go with something easier.
 

Genkora

Frog blast the vent core!
Reaction score
92
It's my second map, my first one was a melee map with gnolls as a playable race.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top