This forum is not active and is going to be locked at some point and eventually going offline. If you have feedback to share you can find us in our Discord channel "MythoLogic Interactive"
https://discord.gg/nECKnbT7gk
Make sure to read
the rules.
Share questions, scripts and tutorials related to the ScriptAPI in SFD.
-
Captain JO
- Meatbag
- Posts: 7
- Joined: Sat Nov 26, 2022 1:10 am
Post
by Captain JO » Tue Oct 28, 2025 4:19 pm
Hey guys,
I'm creating a versus map where bots can spawn but the problem is you can only win once youve spawned and then defeated the bots. my goal would be for the bots to be optional so you can win if they have spawned and are alive or if they havent spawned they should basically not count as a player but rather a part of the map. Does anyone on here know if thats even possible? if so please let me know.
Thank you in advance,
Captain JO

0 x
-
Captain JO
- Meatbag
- Posts: 7
- Joined: Sat Nov 26, 2022 1:10 am
Post
by Captain JO » Wed Oct 29, 2025 11:29 am
If anyone else has this problem I (kind of) found a solition that works for me. This isn‘t optimal and anyone who can skript a bit will propably come up with something better but it works fine for me. So here it is:
In the skript, all I did was set AutoVictoryConditionEnabled == false . Now nobody can ever win the map because there is no win condition. Then i set up CheckAlive triggers to scan for any combination of 7 dead players. Every player spawn has a OnPlayerDeath Trigger on it that will activate the CheckAlive Triggers. This way everytime a player dies it gets checked if there is only one player alive ( playerspawns that are unused count as dead players). Then if any of the CheckAlive Triggers is true it will Activate a TerminatePlayer Trigger wich kills all bots and a timer trigger for one second wich activates the GameOverTrigger. It’s necessary to kill all bots because they count as players wich means if you activate GameOver even though there are more than one players alive the result will be Nobody Wins. The one second delay is just so the last person to live can still die shortly before they win. If anyone has a suggestion on how to improve this or a question about this feel free to answere to this post

1 x