MOH Central

General Forums => Website Information and Support => Topic started by: Cobra {sfx} on December 20, 2015, 12:19:02 PM

Title: MRU Revamp and the Scripting/Mapping Forums
Post by: Cobra {sfx} on December 20, 2015, 12:19:02 PM
Please bear with MRU as we still convert the old forums over to this new style, Nick is on the case, if you still need access to them you can find them here ...

http://www.old.mods-r-us.net/forums.php

... Please just use for reference until the migration is complete :)
Title: Re: MRU Revamp and the Scripting/Mapping Forums
Post by: LeBabouin {sfx} on December 24, 2015, 03:56:49 AM
This is very pleasant news, im impressed by your investment. Let's hope Goober still can breathe from time to time :)
Title: Re: MRU Revamp and the Scripting/Mapping Forums
Post by: =[M.A.W]=DoubleKill on December 24, 2015, 07:29:35 AM
On the website could you put support for mohaa scripting using colors like mohaa tools does?

I think the scripters would like to see the code that way our maybe like the view of C/C++ language.
Title: Re: MRU Revamp and the Scripting/Mapping Forums
Post by: Cobra {sfx} on December 25, 2015, 05:28:05 AM
Yeh poor Nick has some work to do lol ;)

Nice idea with the coloured script too Double, do you know what he means Nick? They use it on XNull, when you open a code box it will colour various parts of the script you place there which can make it easier to follow and error check.

Title: Re: MRU Revamp and the Scripting/Mapping Forums
Post by: Goober {sfx} on December 25, 2015, 11:38:28 PM
Quote from: Cobra {sfx} on December 25, 2015, 05:28:05 AM
Nice idea with the coloured script too Double, do you know what he means Nick? They use it on XNull, when you open a code box it will colour various parts of the script you place there which can make it easier to follow and error check.

I'll see what i can do.  ;)
Title: Re: MRU Revamp and the Scripting/Mapping Forums
Post by: Cobra {sfx} on December 26, 2015, 07:56:44 AM
I guess it just needs a code block that recognises C++, it should look like this when you paste code into the box ...

(http://s24.postimg.org/8naxvb63l/Cplus.jpg) (http://postimg.org/image/8naxvb63l/)
Title: Re: MRU Revamp and the Scripting/Mapping Forums
Post by: Goober {sfx} on December 26, 2015, 11:54:18 AM
I added some type of code mod. Let me know if it does what you need.



Title: Re: MRU Revamp and the Scripting/Mapping Forums
Post by: Cobra {sfx} on December 26, 2015, 12:01:05 PM
Ok will test it here ...

Code (cpp) Select
Flasher:
self thread Marker
while(1)
{
self show
wait 1
self hide
wait 1<--- can you make numbers Orange?
}
// blah blah <--- can you make any text with // in front of it Green


end


Title: Re: MRU Revamp and the Scripting/Mapping Forums
Post by: Goober {sfx} on December 26, 2015, 12:06:10 PM
Is that what you needed?
Title: Re: MRU Revamp and the Scripting/Mapping Forums
Post by: Cobra {sfx} on December 26, 2015, 12:06:54 PM
Yeh thats it, can the colours be changed?
Title: Re: MRU Revamp and the Scripting/Mapping Forums
Post by: Goober {sfx} on December 26, 2015, 12:09:56 PM
Quote from: Cobra {sfx} on December 26, 2015, 12:06:54 PM
Yeh thats it, can the colours be changed?

I'll work on changing the colors..... they're awful to look at.... lol.  ;D
Title: Re: MRU Revamp and the Scripting/Mapping Forums
Post by: Cobra {sfx} on December 26, 2015, 12:27:25 PM
See if you can match the colours to the example pic i used a few posts above, thats how i see it in Notepad++ :)
Title: Re: MRU Revamp and the Scripting/Mapping Forums
Post by: Goober {sfx} on December 26, 2015, 12:32:23 PM
How about that?

If you use [ code=cpp ], it will format to c++
Title: Re: MRU Revamp and the Scripting/Mapping Forums
Post by: Goober {sfx} on December 26, 2015, 12:39:54 PM
You need to set it up like this: It has to look like picture 2.


Title: Re: MRU Revamp and the Scripting/Mapping Forums
Post by: Cobra {sfx} on December 26, 2015, 12:40:12 PM
Some colour requests in that above pic lol ;)
Code (cpp) Select

GreenCorona local.origin:

local.AL_Number = randomint 70000
local.AL = spawn script_model model models/fx/corona_green_bright.tik
local.AL.targetname = ("ALLIES" + local.AL_Number)
$("ALLIES" + local.AL_Number) notsolid
$("ALLIES" + local.AL_Number).origin = local.origin
iprintlnbold_noloc "[Green Corona Added]"
$("ALLIES" + local.AL_Number) thread Flasher // Insert Girly Scream Here
end



Flasher:
self thread Marker
while(1)
{
self show
wait 1
self hide
wait 1
}
end



Lookin much better :)
Title: Re: MRU Revamp and the Scripting/Mapping Forums
Post by: Goober {sfx} on December 26, 2015, 12:45:05 PM
Quote from: Cobra {sfx} on December 26, 2015, 12:40:12 PM
Some colour requests in that above pic lol ;)


What specific color changes did you need?
Title: Re: MRU Revamp and the Scripting/Mapping Forums
Post by: Cobra {sfx} on December 26, 2015, 12:47:43 PM
Can you make numbers Orange, any text after these ---> // in Green
... No worries if it doesnt, the rest look pretty good to me

Code (cpp) Select

GreenCorona local.origin:

local.AL_Number = randomint 70000
local.AL = spawn script_model model models/fx/corona_green_bright.tik
local.AL.targetname = ("ALLIES" + local.AL_Number)
$("ALLIES" + local.AL_Number) notsolid
$("ALLIES" + local.AL_Number).origin = local.origin
iprintlnbold_noloc "[Green Corona Added]"
$("ALLIES" + local.AL_Number) thread Flasher // Insert Girly Scream Here
end



Flasher:
self thread Marker
while(1)
{
self show
wait 1
self hide
wait 1
}
end