3 key skull in zportal's code

Archive of the old editing forum
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.
User avatar
Chris Neilson
Posts: 160
Joined: Tue Sep 25, 2007 6:45 am
Contact:

3 key skull in zportal's code

Post by Chris Neilson »

I need help how to 3 key skull in zportal
Image
put key on there 3 color of red, yellow and blue here then open this door

start with acs code here

cuttmanmike's zportal
Image

I'm make a zportal2 to help how make 3 key and open door.
User avatar
HotWax
Posts: 10002
Joined: Fri Jul 18, 2003 6:18 pm
Location: Idaho Falls, ID

Re: 3 key skull in zportal's code

Post by HotWax »

I'm sure you can find the appropriate scripts inside zportal itself, if you took the time to look. Nevertheless, here's a solution that should work for you:

Code: Select all

#define KEYSPOT_OFFSET 60
int KeysFound = 0;

int Keys[3] = { "RedSkull", "YellowSkull", "BlueSkull" };

script 1 (int key)
{
   TakeInventory(Keys[key], 1);
   SpawnSpot(Keys[key], KEYSPOT_OFFSET + key);

   if (++KeysFound >= 3) Door_Open(10, 16, 0);
}
Make the front lines on the pillar use [wiki]ACS_LockedExecute[/wiki] with the args set to 1, 0, X, 0, Y where X and Y are from the following list:

Code: Select all

Key    X  Y

Red    0  4
Yellow 1  6
Blue   2  5
X is the key number for the script, and Y is the lock from the list of [wiki]Key types[/wiki] on the wiki. Also make sure the lines are set to once-only activation.

Place a mapspot on each pillar, and set their TIDs to 60, 61, and 62 for Red, Yellow, Blue respectively. Finally, tag the closed door with a tag of 10.

Oh, and this assumes the pillars are set up so the player can't just grab the spawned skull once placed. If that's an issue, you can make a simple decoration actor for each key and spawn them instead.
User avatar
Chris Neilson
Posts: 160
Joined: Tue Sep 25, 2007 6:45 am
Contact:

Re: 3 key skull in zportal's code

Post by Chris Neilson »

I not understand, I pick up red key skull, yellow key skull and blue key skull to carry with 3 key then put on piller current is.

takeinventory(key, 1)
1. blueskull
2. yellowskull
3. redskull

spawnspot(tag, key)
1. dummyblueskull
2. dummyyellowskull
3. dummyredskull
put spot onto piller and if key + 3 to open door.
User avatar
Cutmanmike
Posts: 11354
Joined: Mon Oct 06, 2003 3:41 pm
Operating System Version (Optional): Windows 10
Location: United Kingdom
Contact:

Re: 3 key skull in zportal's code

Post by Cutmanmike »

HotWax wrote:I'm sure you can find the appropriate scripts inside zportal itself, if you took the time to look.
The hub is the one scripts lump I deleted, to prevent people looking up the best easter egg's URL. But it doesn't matter, your script is better! :mrgreen:
User avatar
Chris Neilson
Posts: 160
Joined: Tue Sep 25, 2007 6:45 am
Contact:

Re: 3 key skull in zportal's code

Post by Chris Neilson »

Cutty, why you deleted script in one level. I not find something.
User avatar
InsanityBringer
Posts: 3392
Joined: Thu Jul 05, 2007 4:53 pm
Location: opening the forbidden box

Re: 3 key skull in zportal's code

Post by InsanityBringer »

Cutmanmike wrote:
...The hub is the one scripts lump I deleted, to prevent people looking up the best easter egg's URL....
Doesn't work.
Spoiler: Huge Spoiler warning.
User avatar
Chris Neilson
Posts: 160
Joined: Tue Sep 25, 2007 6:45 am
Contact:

Re: 3 key skull in zportal's code

Post by Chris Neilson »

My test 3 keyskull

Dosnt work. how put red, yellow, blue key skull on piller to door open. fix please.
Attachments
3keyskull.wad
(9.62 KiB) Downloaded 16 times
User avatar
Cutmanmike
Posts: 11354
Joined: Mon Oct 06, 2003 3:41 pm
Operating System Version (Optional): Windows 10
Location: United Kingdom
Contact:

Re: 3 key skull in zportal's code

Post by Cutmanmike »

InsanityBringer wrote:Stuff
Well... arses! Oh well I tried my best.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: 3 key skull in zportal's code

Post by Graf Zahl »

No, you didn't. ACC can encrypt strings to make them unreadable... :P
User avatar
Cutmanmike
Posts: 11354
Joined: Mon Oct 06, 2003 3:41 pm
Operating System Version (Optional): Windows 10
Location: United Kingdom
Contact:

Re: 3 key skull in zportal's code

Post by Cutmanmike »

Double arses, that I did not know.

Well those who are desperate enough to find it would have used noclip and fullmap anyway, or check the editor to see what script it executes and then puke away!
User avatar
HotWax
Posts: 10002
Joined: Fri Jul 18, 2003 6:18 pm
Location: Idaho Falls, ID

Re: 3 key skull in zportal's code

Post by HotWax »

Cutmanmike wrote:Well those who are desperate enough to find it would have used noclip and fullmap anyway, or check the editor to see what script it executes and then puke away!
Exactly. There is no way to completely hide it, so why take measures to try to do exactly that when the end result is that everybody else suffers?

This is precisely the mentality of the software publishers who spend millions of dollars trying to devise new and more inventive ways of stoping hackers. In the end, they don't affect the hackers and they hurt their paying customers.
User avatar
Cutmanmike
Posts: 11354
Joined: Mon Oct 06, 2003 3:41 pm
Operating System Version (Optional): Windows 10
Location: United Kingdom
Contact:

Re: 3 key skull in zportal's code

Post by Cutmanmike »

I'm pretty sure Chris is going to be the only one "suffering" over this though as there's nothing special about the scripts in that map at all.

But hey it doesn't matter, because no one really managed to find (or bother playing past the first sector without enough detail) the "reward" it seems other than a handful of people so I might as well go ahead and post the link anyway. :(
User avatar
Nash
 
 
Posts: 17506
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: 3 key skull in zportal's code

Post by Nash »

Graf Zahl wrote:No, you didn't. ACC can encrypt strings to make them unreadable... :P
How would one go about doing this?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: 3 key skull in zportal's code

Post by Graf Zahl »

I won't tell you because I strongly believe in not obstructing such data.
User avatar
DBThanatos
Posts: 3101
Joined: Fri Apr 14, 2006 3:17 pm
Location: in "the darkness that lurks in our mind"

Re: 3 key skull in zportal's code

Post by DBThanatos »

Cutmanmike wrote:But hey it doesn't matter, because no one really managed to find (or bother playing past the first sector without enough detail) the "reward" it seems other than a handful of people so I might as well go ahead and post the link anyway. :(
You sound like you are dissapointed of the players. :?:
Locked

Return to “Editing (Archive)”