Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Puzzle Help
Dizturbed Offline
Member

Posts: 160
Threads: 39
Joined: Jun 2011
Reputation: 0
#1
Puzzle Help

Can someone pleeeeeeeease help me with puzzles Huh I dont care how they are. Im kinda new to scripting, like 5 days...

I just dont know how to script the puzzles up. Pleaz help meh! Smile


Attached Files
.jpg   imagesCAU79TSB.jpg (Size: 3.66 KB / Downloads: 127)

06-26-2011, 06:03 PM
Find
xtron Offline
Senior Member

Posts: 402
Threads: 37
Joined: May 2011
Reputation: 2
#2
RE: Puzzle Help

If you could give uss a description on what kind of puzzle you we could help you.

[Image: 44917299.jpg]Dubstep <3
06-26-2011, 06:19 PM
Find
Dizturbed Offline
Member

Posts: 160
Threads: 39
Joined: Jun 2011
Reputation: 0
#3
RE: Puzzle Help


.jpg   awesomenezz.jpg (Size: 2.98 KB / Downloads: 240) Well, i want a hammer to smash a agrippa head, and the head will break, and a key will come out Wink

Scratch that! just a simple puzzle, thats hard to solve

(This post was last modified: 06-26-2011, 06:31 PM by Dizturbed.)
06-26-2011, 06:25 PM
Find
Rownbear Offline
Member

Posts: 157
Threads: 13
Joined: Apr 2011
Reputation: 2
#4
RE: Puzzle Help

put agrippa head, place the hammer, make a script area on the head, when you use hammer on the script area, bloodparticles come and the head turns into a mash with a key in it. That's how you would do it, but do you need help with the scripting of that?

Other puzzles would be like, find the hidden lever, maybe it's stuck and you need to find oil to grease it, make acid to decay a study lock, use a hammer and chipper to go through a wall, make explosives to blow down a wall. You can do alot, you just need to figure out what you want to happen.

(This post was last modified: 06-26-2011, 11:36 PM by Rownbear.)
06-26-2011, 11:32 PM
Find
Dizturbed Offline
Member

Posts: 160
Threads: 39
Joined: Jun 2011
Reputation: 0
#5
RE: Puzzle Help

yea, thanks. But can you give me some scripts me to execute this puzzle?Smile pleaz

06-27-2011, 02:20 PM
Find
Rownbear Offline
Member

Posts: 157
Threads: 13
Joined: Apr 2011
Reputation: 2
#6
RE: Puzzle Help

ok this is a fairly simple script, first you need to place the bloodmash and the key on say, a table(where his head will be later). Then you have to make them unactive, so they cant be seen. and place them the way you want them to appear after you smash the head.

2. then you place his head, this entity is active, and will be what the player will see before it's smashed. make a script"box" so it covers the head. call it "SmashArea" or something.

and the rest is scripting

void OnStart()
{
AddUseItemCallback("", "HAMMER", "SmashArea", "HeadSmashed", true);
}


void HeadSmashed(string &in asItem, string &in asEntity)
{
RemoveItem("Hammer"); //if you want it removed
SetEntityActive("AGRIPPAHEAD", false); //hides the head
SetEntityActive("BLOODMASH", true); //Shows the bloodmash
SetEntityActive("KEY", true); //shows the key
CreateParticleSystemAtEntity("", "blood.ps", "SmashArea", false); //Some blood flying
PlaySoundAtEntity("", "attack_claw_hit.snt", "Player", 0, false); //You might want to find a fitting sound
PlayMusic("IfYouWantMusic", false, 1, 2, 0, false); //maybe some creepy music to make the puzzle better
GiveSanityDamage(10, true); //gives a better reaction to smashing a head.
}

So now when you use the hammer on the area that covers the head, it will dissapear, some blood flying, and a bloodmash and a key would be standing left.

(This post was last modified: 06-27-2011, 02:58 PM by Rownbear.)
06-27-2011, 02:55 PM
Find
Dizturbed Offline
Member

Posts: 160
Threads: 39
Joined: Jun 2011
Reputation: 0
#7
RE: Puzzle Help

Thank you very much! you guys at this forum rules! I will try your demo, thanks again! Big Grin


Attached Files
.jpg   awesomenezz.jpg (Size: 2.98 KB / Downloads: 146)

06-27-2011, 03:07 PM
Find




Users browsing this thread: 2 Guest(s)