There’s a pretty cool way to use SnapMap for DOOM to build a traditional FPS RPG of sorts where you kill monsters, make money and buy new items. There’s a handy new walkthrough disponibile che ti insegna come costruire mappe e logiche in cui puoi guadagnare denaro dalle uccisioni e sbloccare attrezzature nuove e migliori lungo la strada.
YouTuber seris Taclys Mettere insieme un video piccolo minuti 15 con il tutorial SnapMap che puoi controllare qui sotto.
Inizia con un proxy AI, che influenzerà ogni singolo demone sulla mappa. Seleziona per renderlo dove quando il demone viene ucciso aggiunge un importo specifico al nodo Risorse giocatore.
You don’t have to attach the AI Proxy to any demon, you just have to attach it to the Player Resource node and then select the Resource node and edit it so that it adds a value. So you can have it where for every demon killed it adds to your score or money resource.
Additionally, you can also have it setup where every time a demon is damaged it also adds a value to the player’s resources. This is ideal for co-op multiplayer where multiple people may want to earn some coins for doing damage to demons, as opposed to one player just earning coins for getting the kills after everyone else did all the work.
Come mostrato nel video, è possibile configurarlo se l'attaccante provoca danni a un demone, aggiunge i punti di risorsa 10 al nodo Resource Player.
È possibile aggiungere un'impostazione HUD per il denaro creando un nodo HUD che legge le informazioni dal nodo Risorse giocatore. Attivalo aggiungendolo al personaggio del giocatore. È possibile creare in modo efficace diversi HUD per diversi giocatori se lo si desidera.
Next up, you’ll need to create a console panel where you can buy items from. Add some text above the panel to let players know that they can buy an item from it. In the video he puts some texts to let players know they can buy a minigun from the console for 150 resource credits.
Another text string is made saying “Not Enough Money” as an alternative error message for those who don’t have enough credits. You can make the “Not Enough Money” text not show up at the start, but instead only show up when players don’t have enough credits.
What you’ll need to do is attach the console to the Player Resource node and tell it that when the console is used that it will spend ‘X’ amount of the player’s credits/cash/resources.
You’ll need to setup the if/else logic for the Player Resource node. If the player has the necessary credits then you’ll need to select the “Succeed” option from the Player Resource node and select what happens when the player does have the appropriate coins. You can have it spawn an object, as demonstrated in the video, and in that case it would be the chaingun.
You’ll need to setup what happens when the player fails and doesn’t have enough money. Select the “Fail” state from the Player Resource node and attach it to the error message created earlier by selecting that when the player fails to have enough money to buy the gun, it shows the error message. If you only want the message to appear for a short amount of time, then also attach the “Hide” node so that after a short period it hides the text after displaying it; you can do this by modifying the properties of the “Hide” node and selecting the delay before the text is hidden again.
Once you complete that step, you’ll have a working setup to make money by killing monsters and buying weapons with it. It’s a cool little thing to try for making role-play scenarios or adding more RPG elements to the game.