Use triggers to set an item to have no charges left?

woot

New Member
Reaction score
8
How can this be done?

The trigger that sets an item's charges says that setting it to 0 gives the item unlimited charges.
 

Faust

You can change this now in User CP.
Reaction score
123
Why not just make 2 items, one that is charged, one that is unlimited?
 

Diamondeye

New Member
Reaction score
10
He wants the charges removed entirely.

Make a item that is an exact copy except it does not have the ability that reqs charges and have a trigger switch the items. It will now look like it has been used up.
 

woot

New Member
Reaction score
8
He wants the charges removed entirely.

Make a item that is an exact copy except it does not have the ability that reqs charges and have a trigger switch the items. It will now look like it has been used up.

Oof .. so much extra work..

but I guess it might be the only way :(

thanks
 

Diamondeye

New Member
Reaction score
10
Oof .. so much extra work..

but I guess it might be the only way :(

thanks

No problem ;)

And why is it so much extra work? Copypasta the item and give it an editorsuffix, (nocharges) would be enough, and then design the trigger.

Anyhoo, I shouldn't talk about how hard it is until I've tried it myself. Hope your map turns out good and glad I could help :D
 

woot

New Member
Reaction score
8
It's a ton of extra work to make every item that is clickable have another item that is not tied alongside it .. having to keep track of all the item IDs and what not
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
It's actually no problem to set an item's charges to 0.
The condition would be that it does not start at 0.
I.e. it needs at least 1 in the object editor.
You probably also don't want it to perish, otherwise it might just disappear...

In case you would need a demo map, Defend the Tower (see sig) has such items.
 
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