Jump to content


Photo

Difference between none and any?


  • Please log in to reply
3 replies to this topic

#1 numan

numan
  • Members
  • 82 posts

Posted 20 November 2016 - 07:10 PM

Hi guys. In weapon.ini there are codes which are for exp NONE +STRUCTURE, ANY +STRUCTURE. What is the difference between them?

İs this 2 way same ?  :

 

DamageScalar  = 200% NONE +STRUCTURE -MoriarGoblinLair -WargLair -CaveTrollLair

DamageScalar  = 200% ANY +STRUCTURE -MoriarGoblinLair -WargLair -CaveTrollLair

 

Thanks for answer in advance..



#2 Ganon

Ganon

    What's this?

  • Project Team
  • 967 posts
  • Location:Ohio, United States
  • Projects:My Link Mod
  •  Code Scientist

Posted 20 November 2016 - 09:50 PM

In this specific instance it would have the same effect.

They really shouldn't use NONE and then negatives, but they have in some places. In this case it should be ANY, and then STRUCTURES. To say it will affect any object with the STRUCTURE kindof. And then if you have any specific structures that you want to exclude, you can add them with a negative.

Edit: You can also include specific objects with a "+" sign, without having to include a whole kindof group.

Edited by Ganon, 20 November 2016 - 09:52 PM.


#3 numan

numan
  • Members
  • 82 posts

Posted 21 November 2016 - 11:37 AM

If I dont understand wrong, negative sign (-) should be used with ANY. Except of that, I can use both ANY and NONE. Am I right?

Edited by numan, 21 November 2016 - 11:37 AM.


#4 Ganon

Ganon

    What's this?

  • Project Team
  • 967 posts
  • Location:Ohio, United States
  • Projects:My Link Mod
  •  Code Scientist

Posted 22 November 2016 - 03:22 AM

In most cases, yes.

I generally use either ANY or ALL, and then choose which kindofs or specific units I want to include or exclude.

For an example, if I wanted to make a weapon that had a damage bonus against all infantry units, except Gondor Soldiers, I would do this:

DamageScalar  = 150% ANY +INFANTRY -GondorFighter
And if I wanted a weapon that didn't work against anything but say Frodo, then it would look like this:

DamageScalar  = 0% ALL -RohanFrodo

Edited by Ganon, 22 November 2016 - 03:30 AM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users