Please can someone explain the stats?

Have any questions or problems in making your game, subscribing and/or using our software? Post here.
Forum rules
Make sure you are using the newest version. This can be downloaded at the top of the site via the "downloads" link.

Use a very good subject. "Problem" or "Help" are unacceptable titles.

Use the search feature before posting a question, as the answer is probably already here.

Subscript out of range error 9: This is a generic error, and we'll need way more information than that to figure out the problem. If you get this, strongly consider following the instructions of submitting your project through the Submit Bug feature within the editor.
User avatar
Danny
001 Forum Master
 
Joined: Tue Jul 12, 2011 7:14 am

Please can someone explain the stats?

Postby Danny » Thu Dec 03, 2015 7:39 am

Okay so am confused. How exactly do the attack stats in 001 work?

I have a slime that a slime weapon, the weapon deals 5 and the slime also deals 5 alone so thats 10 attack, so how it is that when the slim attacks me it deals on 3 everytime it attacks? Hows that work out?

The slime as 0 defense, the main actor as 0 defense, so really how does it work?

Edit: Serious question thanks!

User avatar
RamchuK_Ntertainment
Ultimate 001 Member
 
Joined: Tue Sep 29, 2009 10:50 pm
Location: Seattle, Washington

Re: Please can someone explain the stats?

Postby RamchuK_Ntertainment » Sat Dec 05, 2015 3:26 pm

If you navigate to Actor Templates and look inside the 'Attacked' trigger for the template belonging to 'Actor', you will see the default formula being used.

For clarification, what you see is basically the comparison of an attack stat of the enemy versus the defense stat of a character. The damage to be taken is calculated as (attack / 2) - (defense / 4). (e.g. 4 Enemy ATT & 4 Your DEF = (4 / 2) - (4 / 4) = 2 - 1 = 1) This should explain how it's possible to be invincible, where an attacking actor does not deal any damage whatsoever. The amount of health being reduced however is a deviation of the damage calculated, by default it's a 20% increase. In the example given, the amount of health lost would be 1.2 from each successful attack being delivered. As you can see, higher stats will increase the impact of the deviation being applied.
Travesty: 3D Survival - WIP >>> Forum Topic
University of Washington (BABA)
-REGT- Ramchuk Entertainment Games Team
Strategy/Action/Adventure
Copyrighted©2008-2017

User avatar
Danny
001 Forum Master
 
Joined: Tue Jul 12, 2011 7:14 am

Re: Please can someone explain the stats?

Postby Danny » Sat Dec 05, 2015 4:11 pm

So how i would i change this formula to deal the exact amount of damage the weapon as and the attack value of the ememy? So it the weapon a actor is using is 5 damage and there stat is 5 damage then they deal 10 damage? I hope you understand what am asking.

User avatar
RamchuK_Ntertainment
Ultimate 001 Member
 
Joined: Tue Sep 29, 2009 10:50 pm
Location: Seattle, Washington

Re: Please can someone explain the stats?

Postby RamchuK_Ntertainment » Sat Dec 05, 2015 6:26 pm

Are you suggesting to ignore the attacked actor's defense statistic? Or do you want the damage to be the simple difference? For instance, if the attacker deals 10 attack, 5 from the item and 5 by default, yet the attacked character has a defense of 5, do you want the attacked actor to suffer 10 HP or 5 HP?
Travesty: 3D Survival - WIP >>> Forum Topic
University of Washington (BABA)
-REGT- Ramchuk Entertainment Games Team
Strategy/Action/Adventure
Copyrighted©2008-2017

User avatar
Danny
001 Forum Master
 
Joined: Tue Jul 12, 2011 7:14 am

Re: Please can someone explain the stats?

Postby Danny » Sat Dec 05, 2015 6:47 pm

RamchuK_Ntertainment wrote:Are you suggesting to ignore the attacked actor's defense statistic? Or do you want the damage to be the simple difference? For instance, if the attacker deals 10 attack, 5 from the item and 5 by default, yet the attacked character has a defense of 5, do you want the attacked actor to suffer 10 HP or 5 HP?


I want the attacked actor to suffer 5HP, i want the defense to also be taken into concideration. Just simple attack/defense. The player as 10 HP with a defense of 5. The player is hit by a enemy that deals 10 damage but because the player as 5 defense he only takes 5 damage reducing his health to 5 and not 0.
Last edited by Danny on Sat Dec 05, 2015 7:25 pm, edited 2 times in total.
Reason: Automatically merged double post.

User avatar
RamchuK_Ntertainment
Ultimate 001 Member
 
Joined: Tue Sep 29, 2009 10:50 pm
Location: Seattle, Washington

Re: Please can someone explain the stats?

Postby RamchuK_Ntertainment » Sat Dec 05, 2015 8:03 pm

In that case, just set [damage = attack - defense] and just subtract [damage] from HP.
Travesty: 3D Survival - WIP >>> Forum Topic
University of Washington (BABA)
-REGT- Ramchuk Entertainment Games Team
Strategy/Action/Adventure
Copyrighted©2008-2017

User avatar
Danny
001 Forum Master
 
Joined: Tue Jul 12, 2011 7:14 am

Re: Please can someone explain the stats?

Postby Danny » Sun Dec 06, 2015 5:30 am

RamchuK_Ntertainment wrote:In that case, just set [damage = attack - defense] and just subtract [damage] from HP.


Set it in which variable? Not following very well. Do i need all these variables?


User avatar
RamchuK_Ntertainment
Ultimate 001 Member
 
Joined: Tue Sep 29, 2009 10:50 pm
Location: Seattle, Washington

Re: Please can someone explain the stats?

Postby RamchuK_Ntertainment » Sun Dec 06, 2015 1:42 pm

Yes, you still need all of the Local Variables, as they are used in calculations within the script. Besides, you will likely want to revisit the formula at a later time in the future and may want to make more use of the variables. I'm saying this because you technically don't need the attack and defense variables, yet it's best to just leave them.

Like I mentioned before, the Variable Operation that sets 'damage', just use attack - defense instead of (attack / 2) - (defense / 4). Now in the Change Health event, just use damage instead of Math.DeviateP(damage,20). All else remains; that's it.
Travesty: 3D Survival - WIP >>> Forum Topic
University of Washington (BABA)
-REGT- Ramchuk Entertainment Games Team
Strategy/Action/Adventure
Copyrighted©2008-2017

User avatar
Danny
001 Forum Master
 
Joined: Tue Jul 12, 2011 7:14 am

Re: Please can someone explain the stats?

Postby Danny » Mon Dec 14, 2015 7:27 pm

I'm having a problem understanding what i change exactly...

User avatar
Kraven4382
Member
 
Joined: Fri Jul 17, 2015 9:56 pm

Re: Please can someone explain the stats?

Postby Kraven4382 » Mon Dec 14, 2015 11:05 pm

What you can do is remove the default calculation, and replace it with you own version. Would that be an option?

User avatar
Danny
001 Forum Master
 
Joined: Tue Jul 12, 2011 7:14 am

Re: Please can someone explain the stats?

Postby Danny » Mon Dec 14, 2015 11:14 pm

Kraven4382 wrote:What you can do is remove the default calculation, and replace it with you own version. Would that be an option?


Sorry what?

User avatar
Kraven4382
Member
 
Joined: Fri Jul 17, 2015 9:56 pm

Re: Please can someone explain the stats?

Postby Kraven4382 » Mon Dec 14, 2015 11:37 pm

Here is an image of the default damage/defense script. It's located under the top level actor template in the triggers section under "Attacked". Could you simply rewrite or replace this script?

gg maker help 3.PNG

User avatar
Danny
001 Forum Master
 
Joined: Tue Jul 12, 2011 7:14 am

Re: Please can someone explain the stats?

Postby Danny » Mon Dec 14, 2015 11:39 pm

Thats just it i don't know which parts of that script to rewrite, i don't fully understand what it means its 001 default code and makes no sense to me.


Return to Technical Support Questions

Who is online

Users browsing this forum: No registered users

cron