New to the forum? Say hello in this topic! Make sure to read the rules.
RULE NR 3 UPDATED: Don't hurt, harass or provoke other forum members or people.

Planned ScriptAPI changes

Share questions and tutorials related to the ScriptAPI and give suggestions for new functions you want to see.
Forum rules
By using the forum you agree to the following rules.
User avatar
RickAvory
Superfighter
Superfighter
Posts: 101
Joined: Wed Oct 12, 2016 11:27 pm
SFD Account: Rick Avory
SFD Alias: |OE| Rick Avory
Started SFD: Sep 2016
Location: United States, New Jersey
Age: 17

Re: Planned ScriptAPI changes

Post by RickAvory » Mon Mar 13, 2017 12:09 am

I am have no clue how to download scripts now since the script folder is now gone. Could someone guide me how to add them. Also, i am looking for the team script but i cant seem to find it anywhere so a link to it would be very helpful. Thanks.
0 x
Rick Avory. Insane Elite

Watch Ya back

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

Post by JakSparro98 » Fri Mar 31, 2017 12:31 am

As a result of a topic about colors handling for the IObject class we realized that there isn't a way to change a tile color through scripts.

I suggest two new entries, one in the IGame, adding a new parameter in the "CreateObject" method, something like "ColorPalette TileColor" and if the tile doesn't permit coloration this parameter won't affect the tile rather than make the script to crash.

The other in the same IObject, a SetColor method with a palette as only parameter, after all, currently we can already get the color palette but without change it in game, it's only needed the reverse operation.
0 x

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

Post by Gurt » Fri Mar 31, 2017 9:13 pm

JakSparro98 wrote:As a result of a topic about colors handling for the IObject class we realized that there isn't a way to change a tile color through scripts.
Nope, but it's already part of the planned ScriptAPI changes. No need to suggest it when it's already planned. ;)
0 x
Gurt

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

Post by JakSparro98 » Fri Mar 31, 2017 9:24 pm

Gurt wrote:
JakSparro98 wrote:As a result of a topic about colors handling for the IObject class we realized that there isn't a way to change a tile color through scripts.
Nope, but it's already part of the planned ScriptAPI changes. No need to suggest it when it's already planned. ;)
Sorry, I could've sworn to have not seen this point in the planned list. :oops:
0 x

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest