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

OMGOMGOMG

UMBWGMG (Unidentified Human Being.)
Reaction score
28
Trigger, I need a trigger that will say who the person receiving the stuff in this trigger:

Trigger:
  • Untitled
    • Events
      • Unit - A unit begins casting an ability
    • Conditions
      • And all (Conditions) are true
        • Conditions
          • Ability being cast equal to Bite
    • Actions
      • If ( All conditions) (THen Actions) (Else actions)
        • If conditions
          • (Random Integer between 0 and 100) is less than 35
        • Then Actions
          • Hero - Make (Triggering unit) learn: Bite.
        • Else Actions
          • (NOTHING IS HERE!)
How do I set the triggering unit with 12 players that play the game?
 

RedOrb

You can change this now in User CP.
Reaction score
14
Have you tested it and it only works with 1 player?
 

OMGOMGOMG

UMBWGMG (Unidentified Human Being.)
Reaction score
28
I will test it with 1 player. But just say the werewolf uses Bite on me, and it works, at 12:00 midnight I turn into one, getting all bite and making myself faster... at nights though, and if the werewolf did that to player 2, how would I do that?
 

Amn

Member
Reaction score
18
this trigger it's already working for all players
( Unit - A unit begins casting an ability )
 

Amn

Member
Reaction score
18
I will test it with 1 player. But just say the werewolf uses Bite on me, and it works, at 12:00 midnight I turn into one, getting all bite and making myself faster... at nights though, and if the werewolf did that to player 2, how would I do that?
to refer to the spell's target use Target Unit of Ability Being Cast instead of triggering unit
 

OMGOMGOMG

UMBWGMG (Unidentified Human Being.)
Reaction score
28
OK, you may/may not know this, but how do I check if it is 12:00 in-game time?

Trying everything 2mrrw after school!
 

Amn

Member
Reaction score
18
for night i'd use this:

Conditions
Game - Time of Day Greater than 21
Game - Time of Day Less than 6
 

OMGOMGOMG

UMBWGMG (Unidentified Human Being.)
Reaction score
28
Thanks, how would I replace a model using triggers?

This is the trigger now:
Trigger:
  • Bite
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • And - All (Conditions) are true
        • Conditions
          • (Ability being cast) Equal to Bite
          • (Owner of (Target unit of issued order)) Equal to (Matching player)
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Random integer number between 0 and 100) Less than 35
        • Then - Actions
          • Game - Display to (Player group((Matching player))) the text: You feel feverish!
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (In-game time of day) Less than 6.00
              • (In-game time of day) Greater than 21.00
            • Then - Actions
              • Hero - Learn skill for (Triggering unit): Bite
            • Else - Actions
        • Else - Actions
 

OMGOMGOMG

UMBWGMG (Unidentified Human Being.)
Reaction score
28
Bump

I made it into two triggers, so its cleaner... I think:
Trigger:
  • Bite
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • And - All (Conditions) are true
        • Conditions
          • (Ability being cast) Equal to Bite
          • (Owner of (Target unit of ability being cast)) Equal to (Matching player)
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Random integer number between 0 and 100) Less than 35
        • Then - Actions
          • Trigger - Turn on Player turns into a werewolf <gen>
        • Else - Actions


Second trigger:
Trigger:
  • Player turns into a werewolf
    • Events
    • Conditions
      • (In-game time of day) Less than 6.00
      • (In-game time of day) Greater than 21.00
    • Actions
      • Hero - Learn skill for (Triggering unit): Bite
 

Kayoss666

Member
Reaction score
7
Bump

I made it into two triggers, so its cleaner... I think:
Trigger:
  • Bite
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • And - All (Conditions) are true
        • Conditions
          • (Ability being cast) Equal to Bite
          • (Owner of (Target unit of ability being cast)) Equal to (Matching player)
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Random integer number between 0 and 100) Less than 35
        • Then - Actions
          • Trigger - Turn on Player turns into a werewolf <gen>
        • Else - Actions


Second trigger:
Trigger:
  • Player turns into a werewolf
    • Events
    • Conditions
      • (In-game time of day) Less than 6.00
      • (In-game time of day) Greater than 21.00
    • Actions
      • Hero - Learn skill for (Triggering unit): Bite

i would just put the second trigger inside a if/then/else action in the first triggers then action but replace a unit by
Trigger:
  • Unit - Replace (Target unit of ability being cast) with a werewolf using The old unit's relative life and mana


you would also have to
Trigger:
  • Actions
    • Set strength = (Strength of (Target unit of ability being cast) (Exclude bonuses))
    • Set exp = (Hero experience of (Target unit of ability being cast))
    • Unit - Replace (Entering unit) with a Blood Mage using The old unit's relative life and mana
    • Hero - Modify Strength of (Last replaced unit): Set to strength
    • Hero - Set (Last replaced unit) experience to exp, Hide level-up graphics

if you want ur attributes and experience to stay the same.
 

Kayoss666

Member
Reaction score
7
or i would do it like this:
Trigger:
  • Bite
    • Events
    • Unit - A unit Begins casting an ability
    • Conditions
    • And - All (Conditions) are true
    • Conditions
    • (Ability being cast) Equal to Bite
    • (Owner of (Target unit of ability being cast)) Equal to (Matching player)
    • Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
    • (Random integer number between 0 and 100) Less than 35
    • Then - Actions
    • Trigger - Turn on Player turns into a werewolf <gen>
    • Set Werewolf = True
    • Else - Actions


Trigger:
  • Replace Unit
    • Events
      • Game - The in-game time of day becomes Equal to 12.00
    • Conditions
      • Werewolf Equal to True
    • Actions
      • Set strength = (Strength of (Target unit of ability being cast) (Exclude bonuses))
      • Set exp = (Hero experience of (Target unit of ability being cast))
      • Unit - Replace (Entering unit) with a Blood Mage using The old unit's relative life and mana
      • Hero - Modify Strength of (Last replaced unit): Set to strength
      • Hero - Set (Last replaced unit) experience to exp, Hide level-up graphics
      • Hero - Learn skill for (Last replaced unit): Bite
 

OMGOMGOMG

UMBWGMG (Unidentified Human Being.)
Reaction score
28
How would I revert the Werewolf back to human form? IF there is more than one hero just say there is a Girl hero, and a Boy hero, and there is 4 people playing and the boy hero of player 1 gets bit.
 

Kayoss666

Member
Reaction score
7
Trigger:
  • Bite
    • Events
    • Unit - A unit Begins casting an ability
    • Conditions
    • And - All (Conditions) are true
    • Conditions
    • (Ability being cast) Equal to Bite
    • (Owner of (Target unit of ability being cast)) Equal to (Matching player)
    • Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
    • (Random integer number between 0 and 100) Less than 35
    • Then - Actions
    • Trigger - Turn on Player turns into a werewolf <gen>
    • set PlayerUnit[(Custom value of (Owner of (Target unit of ability being cast)))] = Target unit of ability being cast
    • Set Werewolf[(Custom value of (Owner of (Target unit of ability being cast)))] = True
    • Set strength[(Custom value of (Owner of (Target unit of ability being cast)))] = (Strength of (Target unit of ability being cast) (Exclude bonuses))
    • Set exp[(Custom value of (Owner of (Target unit of ability being cast)))] = (Hero experience of (Target unit of ability being cast))
    • Else - Actions


Trigger:
  • Turn into a werewolf
    • Events
      • Game - The in-game time of day becomes Equal to 12.00
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 8, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Werewolf[(Integer A)] Equal to True
            • Then - Actions
              • Unit - Replace (PlayerUnit[(Integer A)]) with a Werewolf using The old unit's relative life and mana
              • Hero - Modify Strength of (Last replaced unit): Set to strength[(Custom value of PlayerUnit[(Integer A)])]
              • Hero - Set (Last replaced unit) experience to exp[(Custom value of PlayerUnit[(Integer A)])], Hide level-up graphics
              • Hero - Learn skill for (Last replaced unit): Bite
              • set WereUnit[(Integer A)] = Last created unit
            • Else - Actions


Trigger:
  • Transform Back
    • Events
      • Game - The in-game time of day becomes Equal to 6.00
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 8, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Werewolf[(Integer A)] Equal to True
            • Then - Actions
              • Set strength[(Custom value of (PlayerUnit[(Integer A)]))] = (Strength of (WereUnit[(Integer A)]) (Exclude bonuses))
              • Set exp[(Custom value of (PlayerUnit[(Integer A)]))] = (Hero experience of (WereUnit[(Integer A)]))
              • Unit - Replace (WereUnit[(Integer A)]) with a PlayerUnit[(Integer A)] using The old unit's relative life and mana
              • Hero - Modify Strength of (Last replaced unit): Set to strength[(Custom value of PlayerUnit[(Integer A)])]
              • Hero - Set (Last replaced unit) experience to exp[(Custom value of PlayerUnit[(Integer A)])], Hide level-up graphics
              • Hero - Learn skill for (Last replaced unit): Bite
            • Else - Actions



set each player a custom value 1 to 8.
player1 male: custom value 1
player1 female: custom value 2
player2 male: custom value 3
player2 female: custom value 4
...
 

Kayoss666

Member
Reaction score
7
Whats the PlayerUnit and Werewolf variables?

werewolf is a boolean array the size of the amount of player units those if like you said for players with 2 units each it will be an array of 8.
and playerunit is a unit type array the same length as werewolf that remembers what type of unit changed into a werewolf. so that you can change back to it.
 

OMGOMGOMG

UMBWGMG (Unidentified Human Being.)
Reaction score
28
ok, what about wereunit?

And what I meant was:

if there were 2 units and 4 players were to pick 1 unit each

It wasn't your fault, its mine for not explaining it right

EDIT------------------------------------------------------------------------------------------
Yes, I understand what Wereunit is.
OK would I do

Trigger:
  • For each (Integer A) from 1 to 11, do (Actions)


If I wanted 11 players, each controlling 1 person and 6 characters you can choose from (so 3 female and 3 male heroes to choose from) would it be what I wrote up there?

Trigger:
  • For each (Integer A) from 1 to 11, do (Actions)


If you don't wanna look up in the post xD

Trying everything out tomorrow, not first thing in the morning (After breakfast though)
 

Kayoss666

Member
Reaction score
7
ok, what about wereunit?

And what I meant was:

if there were 2 units and 4 players were to pick 1 unit each

It wasn't your fault, its mine for not explaining it right

EDIT------------------------------------------------------------------------------------------
Yes, I understand what Wereunit is.
OK would I do

Trigger:
  • For each (Integer A) from 1 to 11, do (Actions)


If I wanted 11 players, each controlling 1 person and 6 characters you can choose from (so 3 female and 3 male heroes to choose from) would it be what I wrote up there?

Trigger:
  • For each (Integer A) from 1 to 11, do (Actions)


If you don't wanna look up in the post xD

Trying everything out tomorrow, not first thing in the morning (After breakfast though)

yes it would just be changing the last trigger i said and changing the loop to
Trigger:
  • For each (Integer A) from 1 to 11, do (Actions)
playerunit would keep up with the character each player was.
 

OMGOMGOMG

UMBWGMG (Unidentified Human Being.)
Reaction score
28
Ooohhh nvm I read

Whats the PlayerUnit and Werewolf variables?
werewolf is a boolean array the size of the amount of player units those if like you said for players with 2 units each it will be an array of 8.
and playerunit is a unit type array the same length as werewolf that remembers what type of unit changed into a werewolf. so that you can change back to it.

I read that wrong xD

Again.

Is PlayerUnit a Unit-type or just a unit variable and still how do I get

OK, and how to I get the
Trigger:
  • (Owner of (Target unit of ability being cast)

out of
Trigger:
  • set PlayerUnit[(Custom value of (Owner of (Target unit of ability being cast)))] = Target unit of ability being cast
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    New recipe is another summer dessert Berry and Peach Cheesecake - https://www.thehelper.net/threads/recipe-berry-and-peach-cheesecake.194169/

      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