Dear forum users! In compliance with the new European GDPR regulations, we'd just like to inform you that if you have an account, your email address is stored in our database. We do not share your information with third parties, and your email address and password are encrypted for security reasons.

New to the forum? Say hello in this topic! Also make sure to read the rules.

Is there a way to compile 2 scripts in one map?

Here you can find answered ScriptAPI topics.
Forum rules
By using the forum you agree to the following rules.
Post Reply
User avatar
Venom
Superfighter
Superfighter
Posts: 68
Joined: Sun Apr 09, 2017 3:49 pm
Title: Faaking Jhesus
SFD Alias: jajajaja sadasdjasiojd
Started SFD: When it was fun
Gender:

Is there a way to compile 2 scripts in one map?

Post by Venom » Thu Sep 14, 2017 4:07 pm

Hello.

I'm a noob mapmaker i don't know very much i just put a script in my map editor but i couldn't any option that could compile any more scripts.
Is there a way to put 2 or more scripts or i have to combine two scripts?

Apologies for my bad englush.
0 x
YOU FAAKING BITH NIGR BE CAREFUL WHAT YOU DO YOU ARE FAAKING YOUR FAAKING LIFE

IF YOU FAAKING FAAKING WITH TIME I WILL FAAKING COME AND KILL YOU BITH YOU DED :evil:

User avatar
Gurt
Lead Programmer
Lead Programmer
Posts: 1884
Joined: Sun Feb 28, 2016 3:22 pm
Title: Lead programmer
Started SFD: Made it!
Location: Sweden
Gender:
Age: 34

Post by Gurt » Thu Sep 14, 2017 5:32 pm

A single map can only have one script attached to it.
0 x
Gurt

User avatar
Danger Ross
Superfighter
Superfighter
Posts: 154
Joined: Thu Mar 31, 2016 12:56 am
Title: Dangerous
SFD Alias: Danger Ross
Started SFD: 14 june 2012 (launch day)
Location: California
Gender:
Age: 23

Post by Danger Ross » Thu Sep 14, 2017 6:01 pm

You can compile more than one script at once, but there isn't a way for them to "combine" or function together.
0 x
sorry bucko, you can't punch with swords 8-)

User avatar
JakSparro98
Superfighter
Superfighter
Posts: 530
Joined: Fri Jul 15, 2016 7:56 pm
Started SFD: PreAlpha 1.0.5
Location: Rome, Italy
Gender:
Age: 25

Post by JakSparro98 » Thu Sep 14, 2017 11:04 pm

Danger Ross wrote:
Thu Sep 14, 2017 6:01 pm
You can compile more than one script at once, but there isn't a way for them to "combine" or function together.
You can compile a long list of function but the script file technically is only one.

I think he made that question because cannot get two or more function to work without conflicts.
0 x

User avatar
Kawabanga
Superfighter
Superfighter
Posts: 69
Joined: Sat Mar 19, 2016 10:36 pm
Title: Epic fails amateur.
SFD Alias: My name is Kawa-bbanggza!!
Started SFD: Late 2015
Location: Poland
Gender:

Post by Kawabanga » Sat Oct 21, 2017 8:35 pm

The scripts cannot conflict with each so you would have to change some of their parameters/names to make unique values. This requires some research into how these scripts work.
0 x

Post Reply