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
Hi, i need help!
AlluNeesia Offline
Junior Member

Posts: 8
Threads: 3
Joined: Mar 2014
Reputation: 0
#1
Hi, i need help!

Can someone give me a script like that:

Same level, 5 keys, 5 locked doors

and 5 scriptarea _> monster appear
scripts..

but i need that 5 keys and 5 locked doors script

--------------------------------------------------

Can someone make it for me ?
03-27-2014, 11:45 AM
Find
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#2
RE: Hi, i need help!

We can't just simply MAKE a map per se. Is there a reason why you cannot make the map, or the script?

Discord: Romulator#0001
[Image: 3f6f01a904.png]
03-27-2014, 11:55 AM
Find
AlluNeesia Offline
Junior Member

Posts: 8
Threads: 3
Joined: Mar 2014
Reputation: 0
#3
RE: Hi, i need help!

i suck in scripting and i wan't script Big Grin

Sry bad english, im from Finland!
(This post was last modified: 03-27-2014, 11:59 AM by AlluNeesia.)
03-27-2014, 11:59 AM
Find
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#4
RE: Hi, i need help!

Well, in order for us to help, we need a map, as a bare minimum.

To learn about making scripts, take a look at some of the tutorials on the wiki!
This one about opening doors with keys should help: http://wiki.frictionalgames.com/hpl2/tut...cks_a_door

Discord: Romulator#0001
[Image: 3f6f01a904.png]
(This post was last modified: 03-27-2014, 12:02 PM by Romulator.)
03-27-2014, 12:02 PM
Find
AlluNeesia Offline
Junior Member

Posts: 8
Threads: 3
Joined: Mar 2014
Reputation: 0
#5
RE: Hi, i need help!

Can you say how i can make script with 5 keys, this is one key and one locked door :

void OnStart()
{
AddUseItemCallback("", "avain", "ovi", "UseKeyOnDoor", true);
}

void UseKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked(asEntity, false, true);
PlaySoundAtEntity("", "unlock_door.snt", asEntity, 0, false);
RemoveItem(asItem);
}


------------------

But i want 5 !
03-27-2014, 12:04 PM
Find
Traggey Offline
is mildly amused

Posts: 3,257
Threads: 74
Joined: Feb 2012
Reputation: 185
#6
RE: Hi, i need help!

This isn't posted in the right section, moved.
03-27-2014, 12:07 PM
Find
AlluNeesia Offline
Junior Member

Posts: 8
Threads: 3
Joined: Mar 2014
Reputation: 0
#7
RE: Hi, i need help!

Can someone give that script for me ? :<
03-27-2014, 12:08 PM
Find
Traggey Offline
is mildly amused

Posts: 3,257
Threads: 74
Joined: Feb 2012
Reputation: 185
#8
RE: Hi, i need help!

Whilst this community is here to help, we are not here to make your mods for you, I'd suggest you head over to the frictional games Wiki and learn some scripting! Or try to team up with someone whom is capable of scripting.
03-27-2014, 12:22 PM
Find
Slanderous Offline
Posting Freak

Posts: 1,606
Threads: 78
Joined: Dec 2012
Reputation: 63
#9
RE: Hi, i need help!

You just put more adduseitemcallbacks and then use key on door, for example:

PHP Code: (Select All)
void OnStart()
{
AddUseItemCallback("""key1""door1""UseKeyOnDoor1"true);
AddUseItemCallback("""key2""door2""UseKeyOnDoor2"true);
AddUseItemCallback("""key3""door3""UseKeyOnDoor3"true);
AddUseItemCallback("""key4""door4""UseKeyOnDoor4"true);
AddUseItemCallback("""key5""door5""UseKeyOnDoor5"true);
}

void UseKeyOnDoor1(string &in asItemstring &in asEntity)
{
SetSwingDoorLocked(asEntityfalsetrue);
PlaySoundAtEntity("""unlock_door.snt"asEntity0false);
RemoveItem(asItem);
}
void UseKeyOnDoor2(string &in asItemstring &in asEntity)
{
SetSwingDoorLocked(asEntityfalsetrue);
PlaySoundAtEntity("""unlock_door.snt"asEntity0false);
RemoveItem(asItem);
}
void UseKeyOnDoor3(string &in asItemstring &in asEntity)
{
SetSwingDoorLocked(asEntityfalsetrue);
PlaySoundAtEntity("""unlock_door.snt"asEntity0false);
RemoveItem(asItem);
}
void UseKeyOnDoor4(string &in asItemstring &in asEntity)
{
SetSwingDoorLocked(asEntityfalsetrue);
PlaySoundAtEntity("""unlock_door.snt"asEntity0false);
RemoveItem(asItem);
}
void UseKeyOnDoor5(string &in asItemstring &in asEntity)
{
SetSwingDoorLocked(asEntityfalsetrue);
PlaySoundAtEntity("""unlock_door.snt"asEntity0false);
RemoveItem(asItem);


Spoiler below!



03-27-2014, 01:14 PM
Find
AlluNeesia Offline
Junior Member

Posts: 8
Threads: 3
Joined: Mar 2014
Reputation: 0
#10
RE: Hi, i need help!

OH THANK YOU, YOU'RE BEST Smile) <3

Thx rly
03-27-2014, 01:49 PM
Find




Users browsing this thread: 1 Guest(s)