Location: JBPLAY \ Meteor 2 \ Help and Guidance \ Script help! Back to Threads |
Assain
![]() Joined: 02 November 2003 Posts: 979 |
19 February 2006 00:13 (UK time)
Simply put, i get Error #4 when i try and run my multiplayer map while its reading the script file. It also says that my invincible tags were "undefined". <b><u> ----------------------------------------------------------------</b></u> #title "" #author "Assain" export OnMapStart; void OnMapStart() { // set vehicles and objects indestructable SC_SetObjectIndestructible(13,1); SC_SetObjectIndestructible(14,1); SC_SetObjectIndestructible(15,1); SC_SetObjectIndestructible(10,1); SC_SetObjectIndestructible(11,1); SC_SetObjectIndestructible(12,1); SC_SetObjectIndestructible(19,1); SC_SetObjectIndestructible(17,1); SC_SetObjectIndestructible(6,1); SC_SetObjectIndestructible(18,1); SC_SetObjectIndestructible(20,1); SC_SetObjectIndestructible(26,1); SC_SetObjectIndestructible(27,1); SC_SetObjectIndestructible(37,1); SC_SetObjectIndestructible(25,1); SC_SetObjectIndestructible(23,1); SC_SetObjectIndestructible(24,1); SC_SetObjectIndestructible(40,1); SC_SetObjectIndestructible(49,1); SC_SetObjectIndestructible(50,1); SC_SetObjectIndestructible(38,1); SC_SetObjectIndestructible(39,1); SC_SetObjectIndestructible(21,1); SC_SetObjectIndestructible(55,1); SC_SetObjectIndestructible(51,1); SC_SetObjectIndestructible(54,1); SC_SetObjectIndestructible(53,1); SC_SetObjectIndestructible(44,1); SC_SetObjectIndestructible(52,1); SC_SetObjectIndestructible(82,1); SC_SetObjectIndestructible(84,1); SC_SetObjectIndestructible(83,1); SC_SetObjectIndestructible(85,1); } You need to login to create posts in this thread. |
arezey
![]() Joined: 16 June 2005 Posts: 1599 |
19 February 2006 08:20 (UK time)
lol simply you have forgot the #include meteor2 line. Edited: 22 September 2006 13:11 You need to login to create posts in this thread. |
Assain
![]() Joined: 02 November 2003 Posts: 979 |
19 February 2006 19:55 (UK time)
Thanks ![]() You need to login to create posts in this thread. |
arezey
![]() Joined: 16 June 2005 Posts: 1599 |
20 February 2006 12:41 (UK time)
You're welcome. You need to login to create posts in this thread. |
Erik
![]() Joined: 16 August 2006 Posts: 424 |
20 September 2006 19:05 (UK time)
I had that problem today ( when i learned scripting 4 the firts time ![]() You need to login to create posts in this thread. |
arezey
![]() Joined: 16 June 2005 Posts: 1599 |
20 September 2006 20:12 (UK time)
It includes the meteor2 engine or so... well I think that it basically links either M2 to it or itself to M2. Either way, it is highly important and you can't use any function without it You need to login to create posts in this thread. |
40oz![]()
![]() Joined: 03 January 2004 Posts: 1799 |
20 September 2006 22:29 (UK time)
To make it simple, when making a script file, go a few lines above where it says #title and #author and type #include meteor2 (The number sign has to be there too.)
Edited: 20 September 2006 22:31 You need to login to create posts in this thread. |
Erik
![]() Joined: 16 August 2006 Posts: 424 |
22 September 2006 12:54 (UK time)
And how do i make a script file, I really need to know!! You need to login to create posts in this thread. |
arezey
![]() Joined: 16 June 2005 Posts: 1599 |
22 September 2006 13:10 (UK time)
Well you put all that code to a '.sc' file, let's say 'test.sc', but it can be any name as long it has the '.sc' extension. Then do a map called 'test.map' and try your code out! You need to login to create posts in this thread. |
Erik
![]() Joined: 16 August 2006 Posts: 424 |
22 September 2006 18:25 (UK time)
Thanks man know i will make BIG progress! ![]() You need to login to create posts in this thread. |
Erik
![]() Joined: 16 August 2006 Posts: 424 |
22 September 2006 18:29 (UK time)
Like this?: #Include meteror2 #title #author Erik805 export OnMapStart; void OnMapStart() { SC_GameMessage(Take the road right up and your get to the fort); SC_EndCurrentLevel(); EDIT: YES! I've learned scripting!!!! thanks for the help everyone ![]() Edited: 22 September 2006 19:56 You need to login to create posts in this thread. |
40oz![]()
![]() Joined: 03 January 2004 Posts: 1799 |
22 September 2006 20:37 (UK time)
You got it. meteor2 is spelt wrong though. (Not meteror2) And you don't want to end the current level OnMapStart. Other than that you got it down.
Edited: 22 September 2006 20:38 You need to login to create posts in this thread. |
Erik
![]() Joined: 16 August 2006 Posts: 424 |
23 September 2006 09:39 (UK time)
cool, but it works! (that's strange...) Edited: 23 September 2006 09:39 You need to login to create posts in this thread. |
mike323
Posts: 745 |
23 September 2006 18:40 (UK time)
Hmm...if i'm not mistaken you've also forgotten to close your OnMapStart function with a bracket...so you'd want to end up with this: #Include meteor2 #title #author Erik805 export OnMapStart; void OnMapStart() { SC_GameMessage(Take the road right up and your get to the fort); SC_EndCurrentLevel(); } If you want to learn scripting I've written a short tutorial on the basics here... http://meteormods.com/meteor2/ModdingHelp/Mike323_GuideToScripting.htm Edited: 23 September 2006 18:40 You need to login to create posts in this thread. |
Erik
![]() Joined: 16 August 2006 Posts: 424 |
24 September 2006 13:50 (UK time)
You mean those: {}? that may tell why the messages dont work :S thank you You need to login to create posts in this thread. |
|
Forums system (C) 1999-2023 by James Bunting.
Terms of Use