Small "Challenge": Brightness Megawad
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
- Caligari87
- Admin
- Posts: 6241
- Joined: Thu Feb 26, 2004 3:02 pm
- Preferred Pronouns: He/Him
- Contact:
Good idea. Do it if you please; it might help.
In fact, Shinjanji, can you post a simple chunk of ACS so that people who don't know how to code can simply import it and strip the player at start? That would be good. I'll make this a requirement too; might help if the WAD ever gets into newstuff. No more "some maps should be played in order, some not, so less score"

In fact, Shinjanji, can you post a simple chunk of ACS so that people who don't know how to code can simply import it and strip the player at start? That would be good. I'll make this a requirement too; might help if the WAD ever gets into newstuff. No more "some maps should be played in order, some not, so less score"
Okay, here's a simple script. I take the player's bullets after giving them the pistol because I don't like to anticipate how many bullets the Pistol will give.
EDIT: Revised version farther down
EDIT: This would be better as an ENTER script, not an OPEN.
EDIT2: Whoops! Forgot thier fists! lol
EDIT3: Rearranged code so the player starts iwth thier pistol up. Sheesh, tonight is not my night for ACS!
EDIT: Revised version farther down
EDIT: This would be better as an ENTER script, not an OPEN.
EDIT2: Whoops! Forgot thier fists! lol
EDIT3: Rearranged code so the player starts iwth thier pistol up. Sheesh, tonight is not my night for ACS!
Last edited by Medricel on Tue Feb 28, 2006 11:54 am, edited 2 times in total.
- Cutmanmike
- Posts: 11354
- Joined: Mon Oct 06, 2003 3:41 pm
- Operating System Version (Optional): Windows 10
- Location: United Kingdom
- Contact:
- DoomRater
- Posts: 8270
- Joined: Wed Jul 28, 2004 8:21 am
- Preferred Pronouns: He/Him
- Location: WATR HQ
- Contact:
@Shinjani: two problems with code- players playing on easiest will have 100 bulets (unavoidable, most likely), and players that have NEVERSWITCHONPICKUP will not have a weapon selected. You should use SelectWeapon("Pistol") in there to be absolutely sure all players have the pistol selected. This effect was broken for me on Adventures in Impse because of this.
...WTF. I can't even explicitly give a player a set amount of ammo? Sheesh! (BTW, it happens on Nightmare, too)... Whatever, at least you know how many bullets they'll have, and can compensate for it. I really don't feel like writing a conditional statement based on whatever skill the player's at JUST so I can give them exactly 50 bullets.DoomRater wrote:@Shinjani: two problems with code- players playing on easiest will have 100 bulets (unavoidable, most likely)
Hmm, I thought I always had that on. O.o Either way, thanks for letting me know this.DoomRater wrote:... and players that have NEVERSWITCHONPICKUP will not have a weapon selected. You should use SelectWeapon("Pistol") in there to be absolutely sure all players have the pistol selected. This effect was broken for me on Adventures in Impse because of this.
EDIT: Err, I can't find any info in the Wiki about any SelectWeapon(<weapon>) command.
Nonsense. Just use GameSkill().DoomRater wrote:unavoidable
It would take 30 seconds...Shinjanji wrote:I really don't feel like writing a conditional statement based on whatever skill the player's at JUST so I can give them exactly 50 bullets.
That's because it's "SetWeapon"Shinjanji wrote:Err, I can't find any info in the Wiki about any SelectWeapon(<weapon>) command.
Well, now the rules have been bent to my approval (
) I think I might have to submit a very strange etheral level for a boss level, just for the fun of it. Only problem is spriting the new monster, but my plans allow for a simplistic approach to the spriting (hopefully it won't look too crap).
Might just put all of my current projects on hold for a few days to do it.
Might just put all of my current projects on hold for a few days to do it.
I had just woken up at the time, and didn't feel like writing it then.Risen wrote:It would take 30 seconds...
O.oRisen wrote:That's because it's "SetWeapon"
Updated script. Better? (using || in an IF wasn't working for me)
EDIT: Jim has an updated version below
Last edited by Medricel on Tue Feb 28, 2006 12:47 pm, edited 1 time in total.
Why write the same code twice in the switch statement?
Code: Select all
#include "zcommon.acs"
script 1 ENTER {
ClearInventory(); //I strip thee of thy goods!
GiveInventory("Fist", 1); //Give them thier fists!
GiveInventory("Pistol", 1); //Give back the pistol
TakeInventory("Clip", 999); //No bullets. AT ALL. Precautionary step.
Switch(GameSkill()) {
case SKILL_VERY_EASY:
case SKILL_VERY_HARD: GiveInventory("Clip", 25); break; //ITYTD or Nightmare mode. 25 bullets.
default: GiveInventory("Clip", 50); //Not Nightmare or ITYTD. 50 bullets.
}
SetWeapon("Pistol"); //Make sure the player's using the pistol
}- MaxPower8905
- Posts: 55
- Joined: Mon Oct 03, 2005 8:55 pm
- Location: Caught somewhere in time...
I've done some of the spriting for the monster to be in my entry, however the individual sprites won't do it justice at all (my plans are pretty wierd), so you'll have to wait and fight it in my level, which will feature some homemade textures/flats for the purpose. This shouldn't take all that long, but don't hold your breath, I may find myself stuck on something.
- Caligari87
- Admin
- Posts: 6241
- Joined: Thu Feb 26, 2004 3:02 pm
- Preferred Pronouns: He/Him
- Contact:
First post updated with new ACS code. Thanks for the help

Just a small consideration; I won't make it a requirement, though. If you're including custom sprites/textures/weapons, please try to make it small enough to attach here when zipped, if possible. EG, less than 255k. I don't want to be re-uploading the WRW, MRW and three full texture packs to /newstuff.

Just a small consideration; I won't make it a requirement, though. If you're including custom sprites/textures/weapons, please try to make it small enough to attach here when zipped, if possible. EG, less than 255k. I don't want to be re-uploading the WRW, MRW and three full texture packs to /newstuff.