Non-threaded

Forums » Advanced Editor Forum » Read Thread

Get help from the experts on variables, scripts, items, and other scary things.

Items again.

10 years ago

Any possible way I can get items to be used more than 8 times, but less than unlimited?  I'm talking gun clips.

Items again.

10 years ago

*Sigh...

All your questions belong in the Advance Editor's section.

Create a variable called clip. Set the initial value to 8. Then open Advance scripting and put this in the item's script section:

IF %CLIP > 0 THEN

BEGIN

%CLIP := %CLIP - 1

END  

IF %CLIP = 0 THEN

BEGIN

$DEST := @NONE

END

Items again.

10 years ago

Sorry to be a noob in the forums, but I appreciate the advice.