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.

Let's work together!

Share questions, scripts and tutorials related to the ScriptAPI in SFD.
Forum rules
By using the forum you agree to the following rules.
Post Reply
User avatar
Aukaiakoi
Fighter
Fighter
Posts: 19
Joined: Sun Sep 18, 2016 2:49 am
Title: Sunny City Heroe
SFD Account: Aukaiakoi
SFD Alias: Johnny
Started SFD: 2014
Location: Mexico
Gender:
Age: 18
Contact:

Let's work together!

Post by Aukaiakoi » Tue Sep 04, 2018 3:28 am

Hello SuperFighters.
I need help updating my "Nuclear Plant Infected" map, due to game updates, things on the map have been broken, so I need some scripts (I'll give you credits for helping me).
The scripts I need are:
1) I need a script similar to the old AI only with a difference. CPUs can not follow me if I'm up or down from them.
ImageImage
2) I need a script for avoid fall damage on the water.
Image
3) A script for an Area Tigger that you can only access by rolling. Do not use dive, walk or run otherwise you die.
ImageImageImage
Please, I would appreciate it very much. I'm just a builder and I can not update my map because I do not know how to do Scripts...
Even my dear friend Motto, his PC is dead...
Last edited by KliPeH on Tue Sep 04, 2018 6:07 am, edited 1 time in total.
Reason: Removed the off-topic part.
0 x
-Don't be mad, it's just a game lol
-Friendship isn't magic, it's very magic
-I can't play SFD with 300 (ping), but I can play well with 300 in Minecraft, what?

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

Post by JakSparro98 » Tue Sep 04, 2018 5:22 pm

What kind of AI are you currenlty using @Aukaiakoi? A script made or the predefined AI from the editor? Should I modify an already existent script for the bots or create a new from scratch?
0 x

MrWheatley
Fighter
Fighter
Posts: 13
Joined: Wed Jun 06, 2018 7:36 am

Post by MrWheatley » Tue Sep 04, 2018 9:20 pm

JakSparro98 wrote:
Tue Sep 04, 2018 5:22 pm
What kind of AI are you currenlty using @Aukaiakoi? A script made or the predefined AI from the editor? Should I modify an already existent script for the bots or create a new from scratch?
I'm pretty sure that this is his map: http://sfdmaps.at.ua/load/maps/adventur ... /5-1-0-961 and that he's using this script for the ai: http://sfdmaps.at.ua/load/scripts/compl ... 0-1-0-2867
0 x

Sree
Superfighter
Superfighter
Posts: 271
Joined: Sun May 08, 2016 8:19 pm
Title: PhasmicAF
SFD Account: Sree
Gender:
Age: 18

Post by Sree » Wed Sep 05, 2018 4:07 pm

I fixed the area triggers like you requested and also improved the AI a bit.

I tried to disable fall damage near the water areas and i did succeed in doing so but it has a few bugs, so i disabled that part of the script (by enclosing it in a multi-line comment)

http://www.mediafire.com/file/e23ys53jo ... .sfdm/file
1 x

User avatar
Aukaiakoi
Fighter
Fighter
Posts: 19
Joined: Sun Sep 18, 2016 2:49 am
Title: Sunny City Heroe
SFD Account: Aukaiakoi
SFD Alias: Johnny
Started SFD: 2014
Location: Mexico
Gender:
Age: 18
Contact:

Post by Aukaiakoi » Wed Sep 05, 2018 8:42 pm

JakSparro98 wrote:
Tue Sep 04, 2018 5:22 pm
What kind of AI are you currenlty using @Aukaiakoi? A script made or the predefined AI from the editor? Should I modify an already existent script for the bots or create a new from scratch?
@Aukaiakoi
I had the old scripts but it are broke. Those are Zombies and they can not kick or jump. I want to give more logic to this. They stop if you are above or below them and they only can give 2 hits.
Yup... From scratch i think...
Sree wrote:
Wed Sep 05, 2018 4:07 pm
I fixed the area triggers like you requested and also improved the AI a bit.

I tried to disable fall damage near the water areas and i did succeed in doing so but it has a few bugs, so i disabled that part of the script (by enclosing it in a multi-line comment)

http://www.mediafire.com/file/e23ys53jo ... .sfdm/file
Thanks bro but the bot and water script are broken. I think that to make the water script just have to reset the gravity (A possible example would be the script of objects without gravity)
Last edited by KliPeH on Wed Sep 05, 2018 10:48 pm, edited 1 time in total.
Reason: Merged a double post.
0 x
-Don't be mad, it's just a game lol
-Friendship isn't magic, it's very magic
-I can't play SFD with 300 (ping), but I can play well with 300 in Minecraft, what?

Sree
Superfighter
Superfighter
Posts: 271
Joined: Sun May 08, 2016 8:19 pm
Title: PhasmicAF
SFD Account: Sree
Gender:
Age: 18

Post by Sree » Thu Sep 06, 2018 4:14 am

Aukaiakoi wrote:
Wed Sep 05, 2018 8:42 pm
I think that to make the water script just have to reset the gravity (A possible example would be the script of objects without gravity)
Done, you don't take fall damage near water area anymore.

I also improved the bot AI, it now does a combination of melee moves and also has the ability to track a player and climb up the ladder TO some extent but it's still not complete.

updated: http://www.mediafire.com/file/e23ys53jo ... .sfdm/file
0 x

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest