Would there be any difference performance-wise between the following two triggers? Would the second trigger require the editor to make an additional calculation?
Events
Dialog - Any Dialog Item is used by Player 1 with event type Clicked
or
Events
Dialog - Any Dialog Item is used by Player Any Player with event type Clicked
The first is more efficient on CPU because you're not also doing a condition check.
However, if you have multiple players you need to do this for, it's generally good form to use "Any Player". You could register multiple events of the sort in your first example, but that will cost you more than using Any Player.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Would there be any difference performance-wise between the following two triggers? Would the second trigger require the editor to make an additional calculation?
Events
Dialog - Any Dialog Item is used by Player 1 with event type Clicked
or
Events
Dialog - Any Dialog Item is used by Player Any Player with event type Clicked
Local Variables
Conditions
Conditions
(Triggering player) == 1
no but i would say that if you put the first line and you have 8 players like in my game, you have to make 8 triggers.
But the second way you can check multiple players in 1 trigger i guess.
Also i would check if the button is actually visible for the player else if you click the button on bttlenet rappidly it will trigger more than once.
The first is more efficient on CPU because you're not also doing a condition check.
However, if you have multiple players you need to do this for, it's generally good form to use "Any Player". You could register multiple events of the sort in your first example, but that will cost you more than using Any Player.