You are not logged in.    Login    New User    Forum Home    Search

Location:
JBPLAY  \  Meteor 2  \  Help and Guidance  \  2 Scripts needed

Back to Threads

Viewing Thread: 2 Scripts needed

 

Erik

Joined: 16 August 2006
Posts: 424
15 September 2006 13:51 (UK time)

I never learn how to make easy scripts, I need the 2 following Scripts: One to end the level (exit,goal) and simple messages in the game like when u take a trip over the sector, it shows a message like hi there or something...

You need to login to create posts in this thread.

arezey

Joined: 16 June 2005
Posts: 1599
15 September 2006 19:17 (UK time)

Right click on the sector you want to script to be executed from, sector properites, script trigger, set it true, type one of the following commands:

SC_EndCurrentLevel();
ends current level

SC_GameMessage("Hi!";);
displays Hi!'

remember the SC_ prefix, quotes around messages and semicolons (;)

You need to login to create posts in this thread.

mike323
Joined: 23 January 2005
Posts: 745
15 September 2006 20:01 (UK time)

Remember, you can reference script commands here:

http://www.jbgames.com/games/meteor2/docs/ScriptCommandsList.htm

You need to login to create posts in this thread.

40oz
 Official Sponsor

Joined: 03 January 2004
Posts: 1799
16 September 2006 14:32 (UK time)

If you're clueless as to how to make an actual script file, let me know, I can help you make it in great detail. I just learned how to make these script files about a month ago.
*Papercut
Pro-Murder.
Legalize Crime.


You need to login to create posts in this thread.

Erik

Joined: 16 August 2006
Posts: 424
17 September 2006 08:38 (UK time)

Ok I have never really been good at scripting. So i ask u this, do i need a script-file to get the scripts work?

You need to login to create posts in this thread.

arezey

Joined: 16 June 2005
Posts: 1599
17 September 2006 15:48 (UK time)

No, the script file is optional. All scripting is optional (well except the end trigger of course :D).

You need to login to create posts in this thread.

Erik

Joined: 16 August 2006
Posts: 424
19 September 2006 20:05 (UK time)

Ok. Thanks man

You need to login to create posts in this thread.

Erik

Joined: 16 August 2006
Posts: 424
27 September 2006 16:45 (UK time)

Now i got an prob. my textmessages dont work. i checked the console and found the following: Compile Error: Single script ( 8) Error [V:\seer\src\expr.c:1688] :`weapons' undeclear

So please help me, and another Q: how do i make briefings?

Edited: 27 September 2006 16:45


You need to login to create posts in this thread.

arezey

Joined: 16 June 2005
Posts: 1599
27 September 2006 17:34 (UK time)

Now that's a problem that was disabling my scripting for a short period... if i'm right, you have a character before the # sign. If you can't see it, copy the script and place it in a new text file and overwrite the old one with the new text file.

DO NOT USE UTF-8 ENCODING WHEN SCRIPTING!!!

http://www.jbgames.com/games/meteor2/docs/MapEditor.htm#Mission_Briefings_and_PDA_Messages

Edited: 27 September 2006 17:36


You need to login to create posts in this thread.

Erik

Joined: 16 August 2006
Posts: 424
27 September 2006 19:01 (UK time)

Thank so much, you been helpful, ill put u in the credit's!

You need to login to create posts in this thread.

mike323
Joined: 23 January 2005
Posts: 745
27 September 2006 22:31 (UK time)

Btw Eric...if you want to learn scripting the tutorial is here:

http://meteormods.com/meteor2/ModdingHelp/Mike323_GuideToScripting.htm

You need to login to create posts in this thread.

Erik

Joined: 16 August 2006
Posts: 424
28 September 2006 13:31 (UK time)

Ok i read it once, but english is too difficult, you may notice my english aint so good :(, but i'll learned ending scripts :D

You need to login to create posts in this thread.



Forums system (C) 1999-2023 by James Bunting.

Terms of Use