Skill/Difficulty Shotgun Global Start
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.
- JagDogger2525
- Posts: 38
- Joined: Sun Jan 08, 2017 6:10 pm
Skill/Difficulty Shotgun Global Start
So, I may have just posted a script version, but I was hoping to have a MAPINFO effect.
It is for an internal package with no maps at all and would like to get some info on how to integrate the script-GameSkill-GiveInventory into MAPINFO.
It is for an internal package with no maps at all and would like to get some info on how to integrate the script-GameSkill-GiveInventory into MAPINFO.
Re: Skill/Difficulty Shotgun Global Start
You don't necessarily have to have maps to use ACS. Add a script file with either .txt extension or .acs (latter is preferred) in the root folder of the .wad/.pk3 and when you're done compile with SLADE. Don't forget to make a LOADACS file and add the script file's name in there. Without the extension.
- JagDogger2525
- Posts: 38
- Joined: Sun Jan 08, 2017 6:10 pm
Re: Skill/Difficulty Shotgun Global Start
I am trying to figure out how that would look like in SLADELud wrote:You don't necessarily have to have maps to use ACS. Add a script file with either .txt extension or .acs (latter is preferred) in the root folder of the .wad/.pk3 and when you're done compile with SLADE. Don't forget to make a LOADACS file and add the script file's name in there. Without the extension.
- JagDogger2525
- Posts: 38
- Joined: Sun Jan 08, 2017 6:10 pm
Re: Skill/Difficulty Shotgun Global Start
How should everything look like?
I am trying to research but I am not sure on how to do everything.
I have in LOADACS:
Slade is giving me an error when compiling
I am trying to research but I am not sure on how to do everything.
I have in LOADACS:
Code: Select all
#import "Shotgun_Start.acs"
#include "zcommon.acs"
Re: Skill/Difficulty Shotgun Global Start
Script file:
LOADACS file:
Code: Select all
//Let's assume the file is called SOMESCRIPT.acs.
#library "SomeLibraryName"
#include "zcommon.acs"
Script 1 ENTER
{
if (GameSkill() >= 6) //7 & 8. That's because skills start from 0.
{
GiveInventory("Shotgun", 1);
}
}
Code: Select all
SOMESCRIPT
- JagDogger2525
- Posts: 38
- Joined: Sun Jan 08, 2017 6:10 pm
Re: Skill/Difficulty Shotgun Global Start
Lud wrote:Script file:LOADACS file:Code: Select all
//Let's assume the file is called SOMESCRIPT.acs. #library "SomeLibraryName" #include "zcommon.acs" Script 1 ENTER { if (GameSkill() >= 6) //7 & 8. That's because skills start from 0. { GiveInventory("Shotgun", 1); } }
Code: Select all
SOMESCRIPT
That makes MORE sense - but I try and compile it and it says:
Code: Select all
Line 1 in file "C:\Program Files (x86)\SLADE\temp\LOADACS.acs" ...
C:\Program Files (x86)\SLADE\temp\LOADACS.acs:1: Invalid declarator.
> Shotgun_Start
> ^
Re: Skill/Difficulty Shotgun Global Start
You compile the script file, not the LOADACS one. And try to make the names 8 characters long or less. Like, use SHOTSTRT instead of Shotgun_Start.
- JagDogger2525
- Posts: 38
- Joined: Sun Jan 08, 2017 6:10 pm
Re: Skill/Difficulty Shotgun Global Start
It isn't workingLud wrote:You compile the script file, not the LOADACS one. And try to make the names 8 characters long or less. Like, use SHOTSTRT instead of Shotgun_Start.
Here is what I did:
Script file (shotstrt.acs in the root folder of .wad)
Code: Select all
#library "ShotStrtLib"
#include "zcommon.acs"
Script 1 ENTER
{
if (GameSkill() >= 6) //7 & 8. That's because skills start from 0.
{
GiveInventory("Shotgun", 1);
}
}
Code: Select all
shotstrt
Re: Skill/Difficulty Shotgun Global Start
Is there an error? If yes, what is it? Do you have ACC set up in SLADE?
- JagDogger2525
- Posts: 38
- Joined: Sun Jan 08, 2017 6:10 pm
Re: Skill/Difficulty Shotgun Global Start
"Could not find Autoloaded ACS Library SHOTSTRT" - I did set ACC up in SLADELud wrote:Is there an error? If yes, what is it? Do you have ACC set up in SLADE?
Re: Skill/Difficulty Shotgun Global Start
If this happens on startup - it sounds like ACC did not compile SHOTSTRT. In .wad files, the compiled file should be between A_START and A_END. Can you send me a screenshot of the root directory in SLADE?
If this happens when compiling...idk, man, screenshot might still be helpful.
If this happens when compiling...idk, man, screenshot might still be helpful.
- JagDogger2525
- Posts: 38
- Joined: Sun Jan 08, 2017 6:10 pm
Re: Skill/Difficulty Shotgun Global Start
. . . . . . . . I totally got it now. UGH . . . . I just named the file in Slade SCRIPTS this whole time instead of naming it SHOTSTRTLud wrote:If this happens on startup - it sounds like ACC did not compile SHOTSTRT. In .wad files, the compiled file should be between A_START and A_END. Can you send me a screenshot of the root directory in SLADE?
If this happens when compiling...idk, man, screenshot might still be helpful.
- JagDogger2525
- Posts: 38
- Joined: Sun Jan 08, 2017 6:10 pm
Re: Skill/Difficulty Shotgun Global Start
Thank you so much Lud - I just needed to be walked through it as I had my hand held - now I totally know how to do this.
Re: Skill/Difficulty Shotgun Global Start
Hey, it's my pleasure.
Feel free to ask if you're having issues with anything else.

- JagDogger2525
- Posts: 38
- Joined: Sun Jan 08, 2017 6:10 pm
Re: Skill/Difficulty Shotgun Global Start
You should see this in the update of my wad (within DoomWorld), Hell's Train Station