[HELP] I confused.... 1 thing. a and trigger

Kayoss666

Member
Reaction score
7
add this to bite and see what happens:
Trigger:
  • Bite
    • Events
    • Unit - A unit Begins casting an ability
    • Conditions
    • (Ability being cast) Equal to Bite
    • ((Target unit of ability being cast) is A Hero) Equal to True
    • Actions
    • Set AlreadyBiten = False
    • For each (Integer A) from 1 to 11, do (Actions)
      • Loop - Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • (Target unit of ability being cast) Equal to PlayerUnit[(Integer A)]
          • Then - Actions
            • Set AlreadyBiten = True
          • Else - Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Random integer number between 1 and 100) Less than or equal to 35
        • AlreadyBiten Equal to False
      • Then - Actions
        • Game - Display to (All players) the text: TEST
        • Trigger - Turn on Player turns into a Werewolf <gen>
        • Set Count = (Count + 1)
        • Set PlayerUnit[Count] = (Target unit of ability being cast)
        • Set Werewolf[Count] = True
      • Else - Actions


btw AlreadyBiten is a boolean
 

Kayoss666

Member
Reaction score
7
this should make it do more then two. without the boolean check the same unit could take up multiple positions in the other arrays
 

OMGOMGOMG

UMBWGMG (Unidentified Human Being.)
Reaction score
28
Shouldn't there be a

Trigger:
  • Set AlreadyBitten = true

somewhere between
Trigger:
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • Random integer number between 1 and 100) Less than or equal to 35
        • AlreadyBiten Equal to False
          • Then - Actions
            • Game - Display to (All players) the text: TEST
            • trigger - Turn on Player turns into a Werewolf <gen>
            • Set Count = (Count + 1)
            • Set PlayerUnit[Count] = (Target unit of ability being cast)
            • Set Werewolf[Count] = True
            • Else - Actions

?
 

Kayoss666

Member
Reaction score
7
no AlreadyBitten is not a array it is just a boolean check that makes sure the new unit being targeted aint already been infected the only place it should change value is where i placed it.
 

OMGOMGOMG

UMBWGMG (Unidentified Human Being.)
Reaction score
28
Well, in that case, It only does one unit and then as 6:00 the unit vanishes.
 

OMGOMGOMG

UMBWGMG (Unidentified Human Being.)
Reaction score
28
While I fill you in with the World Editor help stuff :D just cause I can't do this trigger (its taken you some time as well) doesn't mean I'm nub xD
 

OMGOMGOMG

UMBWGMG (Unidentified Human Being.)
Reaction score
28
lol, hehe, these are the fun ones. The simple but long ones a boring.

I had to re-import all my models :(\

Done, thanks.
 
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