This forum is locked and will eventually go offline. If you have feedback to share you can find us in our Discord channel "MythoLogic Interactive" https://discord.gg/nECKnbT7gk

Forum rules

Airstrike script design.

Here you can find answered ScriptAPI topics.
Forum rules
By using the forum you agree to the following rules.
Locked
ClockworkDice
Fighter
Fighter
Posts: 28
Joined: Wed Nov 02, 2016 12:59 am
Started SFD: Sometime in Pre-Alpha
Gender:

Airstrike script design.

Post by ClockworkDice » Sun Jul 23, 2017 4:55 pm

Hello, so I'm relatively new to scripting (I tried it once a while ago but I didn't know C# at the time so I didn't get very far) and I spent a while yesterday coming up with a script that allows players to call in an airstrike. In it's current form you press walk to throw out a beacon (crumpled paper) and after about five seconds the beacon activates and spawns a 5 bazooka rockets high above the beacon that rocket towards the ground(I have a variation that spawns broken spotlights too if you want a more predictable result).
The thing is, I currently don't really know how to implement this into a game in a way that might make people actually want to play it. At the moment any player can just hold down the walk key to spew out a stream of beacons, resulting in the Superfighters equivalent to an orbital nuclear strike.
I'm currently considering making it so that a button will periodically spawn somewhere on the map at a rate of about slightly less than the bazooka and if you push it you gain one airstrike "ammo" allowing you to call in one airstrike at any time after that. The thing is, I have no idea if this is even a good idea OR how to code this, as I'm really new to the script API. If anyone has advice on potential design tweaks or implementation I'd love to hear it.
3 x

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: 27

Post by JakSparro98 » Mon Jul 24, 2017 9:38 pm

ClockworkDice wrote:
Sun Jul 23, 2017 4:55 pm
Hello, so I'm relatively new to scripting (I tried it once a while ago but I didn't know C# at the time so I didn't get very far) and I spent a while yesterday coming up with a script that allows players to call in an airstrike. In it's current form you press walk to throw out a beacon (crumpled paper) and after about five seconds the beacon activates and spawns a 5 bazooka rockets high above the beacon that rocket towards the ground(I have a variation that spawns broken spotlights too if you want a more predictable result).
The thing is, I currently don't really know how to implement this into a game in a way that might make people actually want to play it. At the moment any player can just hold down the walk key to spew out a stream of beacons, resulting in the Superfighters equivalent to an orbital nuclear strike.
I'm currently considering making it so that a button will periodically spawn somewhere on the map at a rate of about slightly less than the bazooka and if you push it you gain one airstrike "ammo" allowing you to call in one airstrike at any time after that. The thing is, I have no idea if this is even a good idea OR how to code this, as I'm really new to the script API. If anyone has advice on potential design tweaks or implementation I'd love to hear it.
If you provide me a flow chart or something I could use for writing the code logic I'll happy to help you, because if I have to write from scratch I really have no time to think how things have to work.
0 x

_Batman_Shadow_
Fighter
Fighter
Posts: 56
Joined: Tue Jun 13, 2017 5:29 am
Title: Just A Color
SFD Account: Shinobi(variants)
SFD Alias: Shinobi
Started SFD: Around Pre-A 1.7.3
Gender:

Post by _Batman_Shadow_ » Tue Jul 25, 2017 7:18 am

Ill Help.Just Give Me the Script,and i tell you how to improve on discord if u have one or tell me a way to message you.Hell,ill even make you a map if you'd like,just give me some credit if u post it
0 x
*Swish*Cling*Bash*Out Of The Shadows Mudafucka!!!!*Pitter Patter


Noonja

ClockworkDice
Fighter
Fighter
Posts: 28
Joined: Wed Nov 02, 2016 12:59 am
Started SFD: Sometime in Pre-Alpha
Gender:

Post by ClockworkDice » Tue Jul 25, 2017 6:30 pm

Should I just post the script here? That way anyone who wants to give advice can see it and anyone who actively wants to help can copy paste into a .txt file.
0 x

_Batman_Shadow_
Fighter
Fighter
Posts: 56
Joined: Tue Jun 13, 2017 5:29 am
Title: Just A Color
SFD Account: Shinobi(variants)
SFD Alias: Shinobi
Started SFD: Around Pre-A 1.7.3
Gender:

Post by _Batman_Shadow_ » Tue Jul 25, 2017 10:07 pm

Sure
Unless you dont wont people using in their server while its in dev stage,i say go for it
0 x
*Swish*Cling*Bash*Out Of The Shadows Mudafucka!!!!*Pitter Patter


Noonja

Locked