Hypothetical Question

Kuberr24

Well-Known Member
Reaction score
28
Which of these two ways of handling certain triggers would you prefer? Also consider if instead of 3 triggers, you had 100 triggers. or maybe even 1000 :)

Trigger 1
Event - A unit learns a skill
Condition - Learned skill = skill1
Action - Do something1

Trigger 2
Event - A unit learns a skill
Condition - Learned skill = skill2
Action - Do something2

Trigger 1
Event - A unit learns a skill
Condition - Learned skill = skill3
Action - Do something3


Or this way:

Big Trigger
Event - A unit learns a skill
Action
If (Learned skill = skill1) then
Do something1
endif
If (Learned skill = skill2) then
Do something2
endif
If (Learned skill = skill3) then
Do something3
endif
 

Varine

And as the moon rises, we shall prepare for war
Reaction score
805
I would say one, but I also don't do much with triggers. My reasoning is that the same trigger isn't constantly being called one which would make it leak less in my reasoning but I'm not very good with that.
 

Joccaren

You can change this now in User CP.
Reaction score
54
If its triggered abilities: One. I find its easier to get to the spell I need to edit if theres something wrong or to balance ect. by just looking at the triggers name (Which I set to the spells name) instead of scrolling through lots of If/Then/Elses.

However, depending on what the actions are I might go for two. For anyone hasn't played the campaign 'The Chosen Ones' (Probably a most of you), you get to pick the abilities your hero can learn by researching them at the start of the game and then, when you play the game, your hero has had those abilities added to it so they can be learnt. For something like this I would go with two but, as I said above, it all depends on what the actions are.
 

canons200

New Member
Reaction score
50
it depend, i will group all hero ability into 1 group. if that hero ability can use method 2, i use that.

but for sure 2 different hero ability, i will use method 1 to make it clear, easy to handle and edit.
 

Tyman2007

Ya Rly >.
Reaction score
74
I would recommend one if you're dealing with 3 different skills.
3 smaller triggers are much easier to manage and organize than 1 big trigger.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top