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
Adding multiple scripts together?
Wrathborn771 Offline
Junior Member

Posts: 45
Threads: 10
Joined: Jun 2012
Reputation: 0
#3
RE: Adding multiple scripts together?

(06-25-2012, 12:55 AM)Your Computer Wrote: What do you mean by adding multiple scripts together? Merging two HPS files together? Importing one into the other? Referencing a function from one in another? How to script for Amnesia?
I mean adding two different script-fuctions into the same .hpl file.
For example:

Picking up a key makes a monster spawn (I don't know the script, and I'm too tired to find it)
And I want to add that with another function, which doesn't relate in any way.

And that function is:
Stepping into a area will spawn another monster (again, too tired too look it up)

How do I make those two functions to work together in the same .hps file?

I've tried copy+pasting into the same document and making sure the { and } brackets are in a somewhat logical (for me) order.

Like this:

void OnStart ()
{
one-function);
}
and-it-continues-here);
{
now-the-second-function);
}
and-it-continues-here-aswell
{
and-here-aswell
}

void OnEnter ()

And you know the rest.
I hope I told it in a somewhat non-retard-noob-ish way, and that you can still understand what I'm trying to say.
(This post was last modified: 06-25-2012, 01:19 AM by Wrathborn771.)
06-25-2012, 01:17 AM
Find


Messages In This Thread
RE: Adding multiple scripts together? - by Wrathborn771 - 06-25-2012, 01:17 AM



Users browsing this thread: 1 Guest(s)