×
Spam Prevention - Please Read! (23 Apr 2021)

Due to a problem with spammers the rules for posting in the forums have changed for new users.

Newly registered users won't have their posts published until a moderator approves them.

How to make characters appear randomly in a mission/scenario?

More
1 month 4 weeks ago #2325 by mobiuscenturion
One of the things that makes SWAT 3 replayable is that not only is suspect and hostage placement randomized, but also the number as well, so no two playthroughs the same.

However, I'm trying to make something like this happen in the scenario editor. Obviously, the cells will make the character placement random but because you know how many you've put, you expect the same number every time. So I was wondering if it's possible to make a scenario that will place certain characters, or a certain number if the game feels like it?

Please Log in or Create an account to join the conversation.

More
1 month 4 weeks ago - 1 month 4 weeks ago #2328 by Slippery Jim
The only way that I can think of to do something like that (without the source code) is to make an app that would generate scenarios with this random element.

You would have to create a bunch of them ahead of your game session though.

Please Log in or Create an account to join the conversation.

More
1 month 4 weeks ago #2331 by Copy-Cat
Multiplayer or single player?

It already exists in multiplayer. Set hostages and suspects to "R" random.

Please Log in or Create an account to join the conversation.

More
1 month 4 weeks ago - 1 month 4 weeks ago #2332 by Slippery Jim
He means in scenarios.

In Worldcraft of course it is easy to put somewhat random enemy spawn points but can't be done in a "scripted" scenario.   At best like I said an app can be created for scenarios that makes the spawn points random based upon the cells.   If you rendered a bunch of scenarios before going into the game they would seem random to players.

An updated scenario editor would be a good project for someone in Python or Visual Studio.

Please Log in or Create an account to join the conversation.

More
1 month 3 weeks ago - 1 month 3 weeks ago #2333 by Slippery Jim
After thinking about this for a bit the easiest way to do this is an app that would load in an existing scenario that defines all the possible characters that you want to be able to use and then randomize the final number. It would output variations of the same scenario but you would never know how many suspects/hostages there would be.

Why not just use Swat 3's built in Random mission feature? I guess the purpose is to have appropriate characters as chosen by you and with the gear you have chosen for each map setting?  for example: you wouldn't want doctors down in the sewer map.

Please Log in or Create an account to join the conversation.

More
1 month 3 weeks ago #2335 by mobiuscenturion

Why not just use Swat 3's built in Random mission feature? I guess the purpose is to have appropriate characters as chosen by you and with the gear you have chosen for each map setting?  for example: you wouldn't want doctors down in the sewer map.
 

Yeah this is what I was talking about. Also, let me give you some examples from the campaign:

When you are to rescue the Foremans, the number of suspects vary. Sometimes, it's 6. At most, it's 8. And they're always wearing black clothes and masks. Also, in the Nightclub, there's a random woman who is sometimes a civilian, and other times a suspect. So, my wish is to have a scenario be restricted to certain characters, but number (if any) is randomized.

Please Log in or Create an account to join the conversation.

More
1 month 3 weeks ago - 1 month 3 weeks ago #2338 by Slippery Jim
Ya, I would say the easiest way to do it would be to create a scenario with the maximum amount of suspects and hostages. This would then act as a sort of template.

With a custom app you could then load that template and it would generate many different random versions of this scenario. The only difference between each scenario would be the random number of suspects/hostages.


I may be able to talk my son into making a Python app that does this. He sounded interested when I mentioned it the other day. Just let me know if you want it done.

Please Log in or Create an account to join the conversation.

More
1 month 3 weeks ago #2339 by mobiuscenturion

I may be able to talk my son into making a Python app that does this. He sounded interested when I mentioned it the other day. Just let me know if you want it done.


Dang, I'd really appreciate that. Second time this website is willing to work with a relatively big request (1st was Copy Cat remodeling hostages for me).

Please Log in or Create an account to join the conversation.

Time to create page: 0.086 seconds
Powered by Kunena Forum