GLOBAL script.

Moderator: GZDoom Developers

User avatar
Shadelight
Posts: 5113
Joined: Fri May 20, 2005 11:16 am
Location: Labrynna

Post by Shadelight »

Heh, nice example TDA, this would work great for powerup replacements!
User avatar
TheDarkArchon
Posts: 7656
Joined: Sat Aug 07, 2004 5:14 am
Location: Some cold place

Post by TheDarkArchon »

The mod used FSGLOBAL until 12 hours ago. I then converted the WAD to global ACS script in about 10 (including getting the script to compile and a quick bout of MP testing, working MP support being the main motivation behind the switch)
User avatar
TheDarkArchon
Posts: 7656
Joined: Sat Aug 07, 2004 5:14 am
Location: Some cold place

Post by TheDarkArchon »

TheDarkArchon wrote:I think ZDoom tries to merge the scripts but it doesn't work particularily well (For example, GZDoom once tried to give me a Pain Elemental in HoCX when playing it with Heretech.)
I would like to say that this was an oversight on my part (Forgetting to mark my script as a library). In reality, the script works fine.
User avatar
MartinHowe
Posts: 2077
Joined: Mon Aug 11, 2003 1:50 pm
Preferred Pronouns: He/Him
Location: East Suffolk (UK)

Post by MartinHowe »

TheDarkArchon wrote:I think ZDoom tries to merge the scripts
What does that mean? You mean it runs each "script 1" (or whatever number) in turn?
User avatar
TheDarkArchon
Posts: 7656
Joined: Sat Aug 07, 2004 5:14 am
Location: Some cold place

Post by TheDarkArchon »

It works fine. Randy pointed out that library script lacked #LIRBRARY "<LIBNAME>" at the top. One I added that, there appeared to be no conflicts.
User avatar
AFADoomer
Posts: 1342
Joined: Tue Jul 15, 2003 4:18 pm
Contact:

Post by AFADoomer »

Has anyone else run into problems with using both a TITLEMAP and an autoloaded script library?
User avatar
DoomRater
Posts: 8270
Joined: Wed Jul 28, 2004 8:21 am
Preferred Pronouns: He/Him
Location: WATR HQ
Contact:

Post by DoomRater »

TheDarkArchon wrote:

Code: Select all

If(!Checkinventory("QuestItem1"))
Why not check for GoldWand instead? You remove it anyway...
dennisj1
Posts: 399
Joined: Sun Jan 11, 2004 1:46 pm
Location: Superior, WI

Post by dennisj1 »

HoCX and Heretech? I'd like to see those two WADs. (Or, did you mean HacX?)
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49234
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

DoomRater wrote:
TheDarkArchon wrote:

Code: Select all

If(!Checkinventory("QuestItem1"))
Why not check for GoldWand instead? You remove it anyway...


He just copied and altered some code I posted that couldn't do such a simple check so I used the quest item as a marker.
User avatar
TheDarkArchon
Posts: 7656
Joined: Sat Aug 07, 2004 5:14 am
Location: Some cold place

Post by TheDarkArchon »

dennisj1 wrote:HoCX and Heretech? I'd like to see those two WADs. (Or, did you mean HacX?)
HoCX (Hordes of Chaos X
Heretech
User avatar
DoomRater
Posts: 8270
Joined: Wed Jul 28, 2004 8:21 am
Preferred Pronouns: He/Him
Location: WATR HQ
Contact:

Post by DoomRater »

I do remember the FSGLOBAL script code... but I woulda thought ACS could check for the starting inventory items, assuming you remove them.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49234
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

FS can, too.
User avatar
DoomRater
Posts: 8270
Joined: Wed Jul 28, 2004 8:21 am
Preferred Pronouns: He/Him
Location: WATR HQ
Contact:

Post by DoomRater »

Oh. The original code then assumed nothing about the original weapons?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49234
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

No, the original code was for a WAD where you could get the original weapons later so I couldn't check for them because the script was run on every map.
User avatar
Anakin S.
Posts: 1067
Joined: Fri Nov 28, 2003 9:39 pm
Location: A long time ago in a galaxy far, far away...

Post by Anakin S. »

How exactly do you use this global acs script? I couldn't really figure it out from heretech.
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”