The Powder Toy
Download
Forum
Browse
Wiki
FAQ
Play online
Register
Login
Discussions
/
Feedback
/
Scripting language for custom elements
«
1
2
»
Scripting language for custom elements
Sparkette
26th Jul 2010
Member
0
Permalink
I think it should be possible to make your own elements with a scripting language, similar to Burning Sand 2. You know, something like:
NewElement [TEST] {
PROPERTIES:
Category 7
Color #FFFF00
Solid
ConductsElectricity
Flammable 600
EVENTS:
OnTemp > 500 {
Emit [WATR] ( Temp=50 ) Rate 20
Decompose Rate 20
}
}
lolzy
26th Jul 2010
Former Staff
0
Permalink
That would be so much easier. I've looked at the current scripting and it blows my mind.
Sparkette
26th Jul 2010
Member
0
Permalink
Current scripting? There's already a scripting language?
HolyExLxF
26th Jul 2010
Member
0
Permalink
flarn2006
What
lolzy
means is he's seen the source and is baffled by the C code. Which is understandable.
Joey-Jo0
26th Jul 2010
Member
0
Permalink
I like it this way.
The difficulty level makes it so not everyone can make some cheap-ass mod.
Sparkette
26th Jul 2010
Member
0
Permalink
I can't find the source code. Where is it? (Is there an Xcode project file?)
HolyExLxF
26th Jul 2010
Member
0
Permalink
flarn2006
You can get the source from the main page. It's under the "Other plaforms" section.
Sparkette
26th Jul 2010
Member
0
Permalink
Found it, thanks. A scripting language would still be nice though.
ssc4k
26th Jul 2010
Member
0
Permalink
If Simon had a scripting file for languages 80% of his merge requests would stop and anyone who actually wanted to code on the game could do it quickly without worrying about elements being added
Felix
26th Jul 2010
Member
0
Permalink
There are better things to do, like structuring the source so there is not 8430 lines of code in one single file.
But sure, it is a nice idea.
«
1
2
»