3. Added "generic" damage type
whats the syntax to use generic damage in
Code: Select all
(shpDamageArmor gplayership 0 0 20)
Code: Select all
(shpDamageArmor gplayership 0 16 20)
yet when i use
Code: Select all
(shpDamageArmor gplayership 0 15 20)
3. Added "generic" damage type
Code: Select all
(shpDamageArmor gplayership 0 0 20)
Code: Select all
(shpDamageArmor gplayership 0 16 20)
Code: Select all
(shpDamageArmor gplayership 0 15 20)
I have updated the wiki with this info.george moromisato wrote:It is indeed -1.
In the future (maybe someone can write a ticket) those functions should take a string value:
'laser
'particle
...
'generic
digdug wrote:what if the current functions could accept both magic numbers and strings ? They would remain backward compatible.
In the future, when eventually more strings will be added, the numbers could be removed from the functions.
I think the problem was not being able to return both a string and an int from the same function.george moromisato wrote:...
But it is pretty easy to have a function accept both ints and string.
That's definitely an option. Since Extensions have a version number we could use that to determine whether to use the 1.0 behavior or the 2.0 behavior.alterecco wrote:How about introducing backwards breaking changes in the 2.0 release? Is that even something you would consider? You could potentially clean up some of the inconsistencies with sta/shp/obj functions, and perhaps also the arm* functions.
I like that idea! Would you like that we started a topic related to this deprecation? Perhaps we should wait and do it later on?That's definitely an option. Since Extensions have a version number we could use that to determine whether to use the 1.0 behavior or the 2.0 behavior.