Eradrop Posted November 5, 2016 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. 0 Share this post Link to post
Danfun64 Posted November 5, 2016 ...i'm sorry? Can you please explain what you mean by scripts? Do you mean ACS, Decorate, Fragglescript, DDF, ZScript, EDF...? 0 Share this post Link to post
vita Posted November 5, 2016 If it's ACS, read this and this. Also, post your editing questions there, not in Doom General. 0 Share this post Link to post
scifista42 Posted November 8, 2016 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; i++; if(i==5) { ACS_Execute(1,0,0,0,0); } } And give each medikit an action to execute script 2 upon being picked up. 0 Share this post Link to post
CaptainManiac Posted November 8, 2016 Maybe needs to have if(CheckInventory("Medkit",0) == 5) { //do your stuff } I am beginner in ACS too,but that i think will help in that case 0 Share this post Link to post
scifista42 Posted November 8, 2016 ^ Not really. Health items aren't being placed into player's inventory, they just heal and disappear. See Classes:Health. 0 Share this post Link to post