Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Need help with scripts

Recommended Posts

Hello Doomworld!!

I want to ask how do I make a script working ONLY after the player takes several things?

Let's say, for example: I want script 1 to work after you take 5 medikits.

Share this post

Link to post

...i'm sorry?

Can you please explain what you mean by scripts? Do you mean ACS, Decorate, Fragglescript, DDF, ZScript, EDF...?

Share this post

Link to post

Write a couple of scripts like these:

#include "zcommon.acs"

script 1 (void) {
  // The script you want to run after picking 5 medikits

script 2 (void) {
  static int i = 0;
  if(i==5) {
And give each medikit an action to execute script 2 upon being picked up.

Share this post

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now