Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: on Sun 21/12/2003 16:03:27

Title: Calculate plugin: How do these functions work??
Post by: on Sun 21/12/2003 16:03:27
Some questions again about a plugin I can't manage to make work... ;D

1. What is the interest of the functions AddNumbers (int, int), SubtractNumbers (int, int), DivideNumbers (int, int) and MultiplyNumbers (int, int)? You can calculate these values using +, -, / and *, can't you ? This escapes me...

2. What the RaiceToPower function is supposed to do ? When I use it, it acts like AddNumbers !

3. Same question for the FindPercent function : it always returns the value 0 !

4 For the GetCos function, that's okay, I just understand that the parameter is the angle in radians, not in degrees. But GetSin always returns 0 whatever value I specify...
Title: Re:Calculate plugin: How do these functions work??
Post by: Pumaman on Sun 21/12/2003 18:18:10
I believe that plugin is also written by Erica, you'd need to ask her.

Quote1. What is the interest of the functions AddNumbers (int, int), SubtractNumbers (int, int), DivideNumbers (int, int) and MultiplyNumbers (int, int)? You can calculate these values using +, -, / and *, can't you ? This escapes me...

I think she added these as a sort of test for the plugin system but forgot to remove them.

As for the others, I don't know - has anyone else here used the Calculator plugin?