Xiphoid Posted March 5, 2020 Posted March 5, 2020 Hi Ascension Game Dev !  I'm explain my faction system and made a tutorial for forum.  Firstly, Create to Variable for Factions We need create an Event NPC for Faction Choose (Apply Conditions) Create Common Event for Player Labels PUNISHMENT SYSTEM AND KILL REWARDS Create two Global Variable And Create this Player Variables And Create this Common Events Apply this steps for Demon ! My Reward is "Angel Medal" and "Demon Medal" for PvP Shop  My Punishment is 1 Day wait in Jail when an Angel kill an Angel or a Demon kill a Demon (so i can't PvP On/Off and i'm thinking this system)  (Important) You should add an Event NPC for leave from Jail map.  Create Factions in your games ! Nick, SarcasticSloth24, BabyLoves and 5 others 8
Beefy Kasplant Posted March 5, 2020 Posted March 5, 2020 Nice!  First thing I noticed is that you can greatly optimise by having a variable Factions and basing the actual faction the player is in, on that variable.  So:  Player Variable Factions = 0 -> No faction Player Variable Factions = 1 -> Angel Player Variable Factions = 2 -> Demon etc.  That way you can clean up your events, and it's easier to expand. Vio and Xiphoid 2
AisenArvalis Posted March 5, 2020 Posted March 5, 2020 From what I can see, the Faction system isn't bad, but it has a couple big flaws. In your Reward/Punishment section, you can't compare Player Variables of 2 players, therefore the Punishment will never or always happen.
Xiphoid Posted March 5, 2020 Author Posted March 5, 2020 19 minutes ago, Dashplant said: Nice!  First thing I noticed is that you can greatly optimise by having a variable Factions and basing the actual faction the player is in, on that variable.  So:  Player Variable Factions = 0 -> No faction Player Variable Factions = 1 -> Angel Player Variable Factions = 2 -> Demon etc.  That way you can clean up your events, and it's easier to expand. Thanks for reply ! This is my game's functions we are tested and best way is this way for us. 13 minutes ago, AisenArvalis said: From what I can see, the Faction system isn't bad, but it has a couple big flaws. In your Reward/Punishment section, you can't compare Player Variables of 2 players, therefore the Punishment will never or always happen. Thanks for reply ! Reward/Punishment system is work well is for my game we will tested. We added condition for Arena maps and Special PvP zones.
AisenArvalis Posted March 5, 2020 Posted March 5, 2020 10 minutes ago, Xiphoid said: Thanks for reply ! This is my game's functions we are tested and best way is this way for us. Thanks for reply ! Reward/Punishment system is work well is for my game we will tested. We added condition for Arena maps and Special PvP zones.  You don't seem to understand here. It's flawed on a fundamental level.  Page Only exists when you're an Angel, ok. Conditional Branch checks if YOU'RE an angel, will always be true Will ALWAYS teleport YOU to jail, even if you kill a demon. Lemme break it down: @>Conditional Branch: [Player Variable: Angel is equal to True] - This will ALWAYS come true @>Warp Player[Map] @> : Else @>Change Player Items [Give: Item Angel Medal] - Will never happen ... @> : End Branch @> Do you understand what I mean here? You cannot compare 2 players variables no matter what, they're isolated in their own values. Ainz Ooal Gown 1
Xiphoid Posted March 5, 2020 Author Posted March 5, 2020 59 minutes ago, AisenArvalis said:  You don't seem to understand here. It's flawed on a fundamental level.  Page Only exists when you're an Angel, ok. Conditional Branch checks if YOU'RE an angel, will always be true Will ALWAYS teleport YOU to jail, even if you kill a demon. Lemme break it down: @>Conditional Branch: [Player Variable: Angel is equal to True] - This will ALWAYS come true @>Warp Player[Map] @> : Else @>Change Player Items [Give: Item Angel Medal] - Will never happen ... @> : End Branch @> Do you understand what I mean here? You cannot compare 2 players variables no matter what, they're isolated in their own values. Okay i'm understand. Solution is coming in 20 Minutes
Beefy Kasplant Posted March 5, 2020 Posted March 5, 2020 Could you maybe explain the steps in the punishment system? I don't really know what it's supposed to do.  Also, just in case: Don't get demotivated! Nice work on contributing to the community, people are just trying to help! Ainz Ooal Gown 1
AisenArvalis Posted March 5, 2020 Posted March 5, 2020 I have to commend your effort but as I stated you cannot compare variables to the enemy that you just killed. Using self switches will not work the way you intend for it to work. Self Switches are in essence Player Variables that are forced to Boolean values. So as I stated before, you cannot and I repeat CANNOT compare Variables OR Switches of 2 players unless you pass them off into a Global Variable first, which is prone to errors for multiple reasons.
Xiphoid Posted March 5, 2020 Author Posted March 5, 2020 Its basic when Angel kill Demon its normal. When Angel kill Angel or when Demon Kill a Demon to jail map @Dashplant
Xiphoid Posted March 6, 2020 Author Posted March 6, 2020 Punishment/Rewards working now (Tested all scenarios)
AisenArvalis Posted March 6, 2020 Posted March 6, 2020 Good job on making it actually work this time. However, there's still a big flaw in the system that is unfortunately impossible to fix. What happens if 2 players die at the SAME time. Unlikely to happen with a small player base but if you have a bigger player base it will eventually happen. Let's call 4 players for this case. 1 Angel and 3 Demons Demon1 Kills Angel1 & Demon2 Kills Demon3 At the same time. Now there's a chance that the Demon killing an Angel could get punished for it and the Demon killing another Demon won't get punished. Â But overall, good job on getting it to work Xiphoid 1
Xiphoid Posted March 6, 2020 Author Posted March 6, 2020 I will test this scenartious @AisenArvalis thanks for reply ! finally i did working system for Punishement/Rewards
Xiphoid Posted March 6, 2020 Author Posted March 6, 2020 When Kill an Angel a Demon getting Angel Medal now When Kill an Angel an Angel Punished When Kill a Demon kill an Angel getting Demon Medal now When Kill a Demon kill an Angel Punished. Â Next work checking multiple kills and party scenarios
Xiphoid Posted March 6, 2020 Author Posted March 6, 2020 1 hour ago, AisenArvalis said: Good job on making it actually work this time. However, there's still a big flaw in the system that is unfortunately impossible to fix. What happens if 2 players die at the SAME time. Unlikely to happen with a small player base but if you have a bigger player base it will eventually happen. Let's call 4 players for this case. 1 Angel and 3 Demons Demon1 Kills Angel1 & Demon2 Kills Demon3 At the same time. Now there's a chance that the Demon killing an Angel could get punished for it and the Demon killing another Demon won't get punished.  But overall, good job on getting it to work   We tested this scenarios and fix/solution coming !
Xiphoid Posted March 6, 2020 Author Posted March 6, 2020 solution/fix is ready i'm add to topic when i available
Ainz Ooal Gown Posted March 6, 2020 Posted March 6, 2020 15 minutes ago, Xiphoid said: Solution is ready ! Â Sorry buddy but I still dont thin that will work, the way you have done rewards, it will either always be true or not... AisenArvalis and Xiphoid 2
Xiphoid Posted March 6, 2020 Author Posted March 6, 2020 5 minutes ago, Ainz Ooal Gown said: Â Sorry buddy but I still dont thin that will work, the way you have done rewards, it will either always be true or not... Do you try ? It will working fine on my game now.
Xeno Posted March 6, 2020 Posted March 6, 2020 *Edit* Eventhough this is good for learning some aspects of the event system, it is probably best to do such a system in source. Xiphoid 1
Jotak1ng Posted March 20, 2020 Posted March 20, 2020 Hi, I'm sorry but I can't understand how the rewards and penalties system works. Â Can you make a more elaborate guide? Put everything as shown in the guide but it doesn't work at all. Â Anyway, I appreciate the effort.
Xiphoid Posted March 20, 2020 Author Posted March 20, 2020 30 minutes ago, Jotak1ng said: Hi, I'm sorry but I can't understand how the rewards and penalties system works.  Can you make a more elaborate guide? Put everything as shown in the guide but it doesn't work at all.  Anyway, I appreciate the effort. I want add all steps for new users soon Jotak1ng 1
BabyLoves Posted May 12, 2020 Posted May 12, 2020 On 3/6/2020 at 12:55 PM, Xiphoid said: Do you try ? It will working fine on my game now. I will try it because i need... Thanks for posted it! Â
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now