Doom in Hexen format issue

Discuss all aspects related to modding Zandronum here.
Post Reply
Powerman
Forum Regular
Posts: 106
Joined: Mon Jul 02, 2012 2:45 am
Location: Places

Doom in Hexen format issue

#1

Post by Powerman » Thu May 09, 2013 6:02 am

Well I am trying to have it so I get a Red key, then lower a few pillars, but There is no way (That I see) of making the sectors or lines need the red key to lower.
Last edited by Powerman on Thu May 09, 2013 2:15 pm, edited 1 time in total.
http://brutaldoomwads.weebly.com/
Also Now Every Wednesday is Brutal doom Co-op! Just Look For powerman in the name!

User avatar
agaures
Forum Regular
Posts: 591
Joined: Mon Dec 10, 2012 6:34 am
Location: New Zealand

RE: Doom in Hexen format issue

#2

Post by agaures » Thu May 09, 2013 6:27 am

In Doom in Hexen format, when you look at the properties of a 'thing', it should have a tab named 'action'. In there you can define what you want to happen after the 'thing' is either destroyed or picked up.
<agaures> I'm guessing you haven't played many doom mods before huh? :p
<Zuplin> i have played master of puppets zombies doom center and a couple more
<agaures> so not many
<Zuplin> i thought that was everything

Powerman
Forum Regular
Posts: 106
Joined: Mon Jul 02, 2012 2:45 am
Location: Places

RE: Doom in Hexen format issue

#3

Post by Powerman » Thu May 09, 2013 2:19 pm

Let me try to elaborate more. So I have so pillars blocking a bridge you need to get over. I want the player to have to get the red key, then press use to lower the pillars, while having the red key. I hope that was slightly more clear.
http://brutaldoomwads.weebly.com/
Also Now Every Wednesday is Brutal doom Co-op! Just Look For powerman in the name!

User avatar
Ænima
Addicted to Zandronum
Posts: 3582
Joined: Tue Jun 05, 2012 6:12 pm

RE: Doom in Hexen format issue

#4

Post by Ænima » Thu May 09, 2013 2:25 pm

Powerman wrote: Let me try to elaborate more. So I have so pillars blocking a bridge you need to get over. I want the player to have to get the red key, then press use to lower the pillars, while having the red key. I hope that was slightly more clear.
Then you'd have to lower them in a script.

http://zdoom.org/wiki/ACS_LockedExecute
Reinforcements: midgame Survival joining/respawning
Doom64: Unabsolved: Doom64 + Diablo II
ZandroSkins: a pack made by our community
AeniPuffs: 3D blood and bullet puff effects, free to use for your own mods
Squad Radio: a WASD-based radio chat menu, add your own custom sounds!
Mercenaries (on hold)
Image

Powerman
Forum Regular
Posts: 106
Joined: Mon Jul 02, 2012 2:45 am
Location: Places

RE: Doom in Hexen format issue

#5

Post by Powerman » Thu May 09, 2013 2:28 pm

Thanks :/ I was hoping not to have to resort to ACS, but thanks!
Than am I missing something?

Code: Select all

#include "zcommon.acs"
script 1 (void)
{
	if (CheckInventory("RedCard") || CheckInventory("RedSkull"))
	{
		Print(s:"You use the red key.");
		Floor_LowerToNearest (6, 40);
	}
	else
		Print(s:"You need the red key.");
}
Last edited by Powerman on Thu May 09, 2013 4:05 pm, edited 1 time in total.
http://brutaldoomwads.weebly.com/
Also Now Every Wednesday is Brutal doom Co-op! Just Look For powerman in the name!

User avatar
agaures
Forum Regular
Posts: 591
Joined: Mon Dec 10, 2012 6:34 am
Location: New Zealand

RE: Doom in Hexen format issue

#6

Post by agaures » Fri May 10, 2013 3:39 am

Powerman wrote: Thanks :/ I was hoping not to have to resort to ACS, but thanks!
Than am I missing something?

Code: Select all

#include "zcommon.acs"
script 1 (void)
{
	if (CheckInventory("RedCard") || CheckInventory("RedSkull"))
	{
		Print(s:"You use the red key.");
		Floor_LowerToNearest (6, 40);
	}
	else
		Print(s:"You need the red key.");
}
You could use the setlinespecial instead. I find it a lot more flexible.
<agaures> I'm guessing you haven't played many doom mods before huh? :p
<Zuplin> i have played master of puppets zombies doom center and a couple more
<agaures> so not many
<Zuplin> i thought that was everything

Powerman
Forum Regular
Posts: 106
Joined: Mon Jul 02, 2012 2:45 am
Location: Places

RE: Doom in Hexen format issue

#7

Post by Powerman » Fri May 10, 2013 3:43 am

So How would something like this work? I am completely lost.
http://brutaldoomwads.weebly.com/
Also Now Every Wednesday is Brutal doom Co-op! Just Look For powerman in the name!

Qent
Retired Staff / Community Team Member
Posts: 1424
Joined: Tue May 29, 2012 7:56 pm
Contact:

RE: Doom in Hexen format issue

#8

Post by Qent » Fri May 10, 2013 4:07 am

Oh, I think agaures is suggesting that getting the red key activates a script that enables the switch. I would not recommend that. I would recommend Ænima's method. If you really don't want ACS, then you could use the old method of making the switch itself a locked door that conceals another switch.

User avatar
agaures
Forum Regular
Posts: 591
Joined: Mon Dec 10, 2012 6:34 am
Location: New Zealand

RE: Doom in Hexen format issue

#9

Post by agaures » Fri May 10, 2013 4:09 am

Gah, never mind. setlinespecial wouldn't work properly in doom in hexen format in this situation. I would highly recommend using UDMF format.
(BTW to make your map cheat proof you could use a bool)
<agaures> I'm guessing you haven't played many doom mods before huh? :p
<Zuplin> i have played master of puppets zombies doom center and a couple more
<agaures> so not many
<Zuplin> i thought that was everything

Powerman
Forum Regular
Posts: 106
Joined: Mon Jul 02, 2012 2:45 am
Location: Places

RE: Doom in Hexen format issue

#10

Post by Powerman » Fri May 10, 2013 4:13 am

Bool? and I may just sadly switch to Doom in doom? Much easier. Well maybe. I do not know. This should not be so difficult. or at least not such a steep learning curve. And do I need to do anything special with my sector? Besides tagging it?
Last edited by Powerman on Fri May 10, 2013 4:23 am, edited 1 time in total.
http://brutaldoomwads.weebly.com/
Also Now Every Wednesday is Brutal doom Co-op! Just Look For powerman in the name!

User avatar
agaures
Forum Regular
Posts: 591
Joined: Mon Dec 10, 2012 6:34 am
Location: New Zealand

RE: Doom in Hexen format issue

#11

Post by agaures » Fri May 10, 2013 4:22 am

Code: Select all

#include "zcommon.acs"

bool redcard = FALSE;

script 1 (void)
{
if(redcard==TRUE)
{
door_open(1, 16);
}
else
{
print(s:"g3t r3d c3rd!?!?!");
}
}

script 2 (void)
{
redcard = TRUE;
}
In a bool you would have to assign the door linedef to execute script 1, then you would assign the recard to execute script 2.
<agaures> I'm guessing you haven't played many doom mods before huh? :p
<Zuplin> i have played master of puppets zombies doom center and a couple more
<agaures> so not many
<Zuplin> i thought that was everything

Powerman
Forum Regular
Posts: 106
Joined: Mon Jul 02, 2012 2:45 am
Location: Places

RE: Doom in Hexen format issue

#12

Post by Powerman » Fri May 10, 2013 4:28 am

I figured it out :redface: I forgot to tag lines as execute. Thank you all for helping a Dolt such as myself.
http://brutaldoomwads.weebly.com/
Also Now Every Wednesday is Brutal doom Co-op! Just Look For powerman in the name!

Post Reply