I’m having trouble with SetBool and animations on Unity. Can anyone help me?

I’m trying to get a Skeleton Model to go from its walking animation to its idle animation using a bool that checks for input. Currently, in-game, the skeleton doesn’t leave it’s walking animation and stays in it even when not walking. I’ve posted my code below. I’m kind of stumped so if anyone can give me some guidance it’d be greatly appreciated.

public class SkeletonMove : MonoBehaviour {  private float velocity = 5f;  public bool _isWalking = false;  Vector2 input;  void Update()     {         GetInput();          if (Mathf.Abs(input.x) < 1 && Mathf.Abs(input.y) < 1) return;          // CalculatedDirection();         Rotate();         Move();     }  void GetInput()     {         input.x = Input.GetAxisRaw("Horizontal");         input.y = Input.GetAxisRaw("Vertical");     }  void Move()     {         _controller.Move(transform.forward * velocity * Time.deltaTime);         _anim.SetBool("Walking", _isWalking);           if (input.x != 0 || input.y != 0)         {             _isWalking = true;         }          if (input.x == 0 && input.y == 0)         {             _isWalking = false;         }            //transform.position += transform.forward * velocity * Time.deltaTime;     } 

Is Strahd able to know PC backstories without having to investigate them?

I have a group that just started Curse of Strahd. They’re one session in. I have a character that couldn’t make it first session, and I’m in the process of “writing him in” so he’s with the party for the second. He’s part of the writing-in process… we go back and forth with some emails with some RP decisions on his part, but I am pretty strongly guiding him to where the others are.

Anyway, quick backstory, his sister was captured by a cultist long ago, he tracked them down to some location in the woods — enter the creeping fog hook — he gets lost in the fog and pops out in Barovia. In a truly “against all odds” moment that only happens in movies, he stepped on a locket in the dirt that belonged to his sister. And he stands, emboldened, knowing the cultist and his sister are also trapped here in this mystical valley.

Enter my dilemma. I am fully willing to have it so that the cultist and his sister are truly here in Barovia somewhere. But, I am also considering making it so that this locket… and for that matter any other evidence he finds regarding their whereabouts here in Barovia up to and including the cultist and his sister… is an illusion. Or more accurately, a manifestation of his emotions/desires.

I’ve never run Strahd before, so I’m still working out the feel for the campaign and exactly how much power Strahd has in this demi-plane of his. There are places in the book where it says creepy stuff like “the character sees herself hanging from the gallows and when she touches it it turns to dust”. So there’s an element of your own self projecting the horror. Also Strahd has god-like abilities… hearing prayers not directed to him, showing up in some assassin mirror….

Does Strahd inherently know of this character’s past/desires (read: can I metagame the crap out of this)? Or does Strahd need to come by that information honestly?

What is the point of having a different skill for Persuasion and Deception?

2 skills related to Charisma are Deception and Persuasion. A character could be proficient in any of the two. I know that a Cha (deception) check is made when a character attempts to convince someone else of a lie, while a Cha (Persuasion) check is made when arguments are used to convince someone of something.

To me the important distinction was always: is the arguments you are making based on a truth or a lie?

  • Trying to convince a guard that the king is in danger (a truth) and you need to get in the castle, with the intention of saving him? Persuasion.
  • Trying to convince a guard that the king is in danger (a lie) and you need to get in the castle, with the intention of stealing from the treasures? Deception.

But in the end, you’re still just trying to convince someone. The arguments that you use would be the same whether or not you are lying about them.

I’ve seen people say that Cha (deception) checks involve arguments that are harder to defend/prove. Yet a case where the party is ambushed by ghosts, in the middle of the city, would have a better chance convincing the guards that come asking about the commotion that it was simply a few drunks (Deception), than ghosts (Persuasion).

Why then is there a need for 2 different skills?

Does the “Rapier Training” Swashbuckler class feature count as having the Improved Critical feat?

I’m DMing for a group of five people. One player, Swashbuckler with the Inspired Blade archetype, wanted to select critical feats which have Improved Critical as a prerequisite. The following Inspired Blade feature describes it as follows:

Rapier Training (Ex): At 5th level, an inspired blade gains a +1 bonus on attack rolls and a +2 bonus on damage rolls with rapiers. While wielding a rapier, she gains the benefit of the Improved Critical feat. These attack and damage bonuses increase by 1 for every 4 levels beyond 5th (to a maximum of +4 on attack rolls and +5 on damage rolls at 17th level). This ability replaces swashbuckler weapon training.

It seems to me that the player cannot do it, but I’ve house ruled otherwise. The reason is because his character looks pretty bad in the game (I did not tell him this) and is already getting behind others on the table. Charmed Life with Opportune Parry and Riposte are letting his immediate actions overloaded whilst his char is too squishy due to spending ability points on Dex, Int and Cha. Taxing him another feat with improved critical seemed bad from a balancing perspective. There is a vanilla warrior on the group who does everything the swashbuckler does but significantly better.

That being said I’ve got two questions for you:

  1. Does the "Rapier Training" Swashbuckler class feature count as having the Improved Critical feat? (From the title)

  2. What would you have done in such situation?

Obs.: this class seems quite unbalanced and badly designed to me.


No authorized routine named “SQLJ.INSTALL_JAR” of type “PROCEDURE” having compatible arguments was found

My goal is to deploy a Java routine to a DB2 server. After reading Deploying Java routine class files to DB2 database servers on p.267-268 of IBM DB2 10.5 for Linux, UNIX, and Windows Developing User-defined Routines (SQL and External) I issued the following call in IBM Data Studio:

call sqlj.install_jar('file:/C:/Projects/javadb2.jar', 'javadb2'); 

where C:/Projects/javadb2.jar is the path on the DB2 server machine to the JAR to be deployed to its local filesystem. It throws the following error:

No authorized routine named "SQLJ.INSTALL_JAR" of type "PROCEDURE" having compatible arguments was found.. SQLCODE=-440, SQLSTATE=42884, DRIVER=4.18.60

I tried under the regular user and under db2admin to no avail. The only question that I found for this error on SE was where they added a 3d parameter, so this is not my case. Anyhow, with or without the 3d parameter of 0, it still fails with the same error message.

Hello, I’m trying to do the QR decomposition using Gram Schmidt but I’m having problems because I can’t find the R matrix. Could you help me?

First of all I don’t want to use the reflection method. Only Gram-Schmidt.

So here’s the program for Gram-Schidt:

GS[A_] := Module[{u = {}, col, e = {}, ae, t},   col = Transpose[A];(* list with the column vectors of A *)   u = Append[u, col[[1]]];   e = AppendTo[e, u[[1]]/Norm[u[[1]]]];   For[i = 2, i <= Length[A], i++, ae = 0; t = 1;    While[t <= i - 1, ae = ae - (col[[i]].e[[t]])*e[[t]]; t++];    u = AppendTo[u, col[[i]] + ae];    e = Append[e, u[[i]]/Norm[u[[i]]]]]; {u, e}] 

with this simple matrix:

B = {{1, 3, 1}, {2, 2, 1}, {3, 2, 3}}; 


{{{1, 2, 3}, {29/14, 1/7, -(11/14)}, {14/69, -(49/69), 28/69}}, {{1/    Sqrt[14], Sqrt[2/7], 3/Sqrt[14]}, {29/Sqrt[966], Sqrt[2/    483], -(11/Sqrt[966])}, {2/Sqrt[69], -(7/Sqrt[69]), 4/Sqrt[69]}}} 

Now the code for QR decomposition is:

QR[A_] := Module[{Ak, i, Q, R = {}, a = {}, col, k},   Ak = FullSimplify[GS[A]];   col = Transpose[A];(* list with the column vectors of A *)   Q = MatrixForm[Transpose[Ak[[2]]]];   For[i = 1, i <= Length[Ak[[2]]], i++, a = {}; k == 1;    While[k <= Length[col], a = AppendTo[a, col[[k]]. Ak[[2]][[i]]];      k++];     R = AppendTo[R, a]];   R = UpperTriangularize[R]; {Q, R}] 

but I can’t find matrix R, once it’s giving me a list like this{{},{},{}} and I’m stuck. Please help me.Thanks!

Can an Armorer Artificer wearing Guardian-model Arcane Armor cast a somatic spell without holding tools or having the Warcaster feat?

The Guardian model described in the Arcane Armor feature of the Armorer Artificer includes "Thunder Gauntlets":

Each of the armor’s gauntlets counts as a simple melee weapon while you aren’t holding anything in it…

If the Artificer holds tools for a material component of a spell, the description above doesn’t apply. However, if the armor itself is used as the focus (assuming it’s an Infused Item), the Artificer is effectively holding a weapon in each hand.

To deal with this, must the Artificer have taken the Warcaster feat (to allow performing the somatic component of a spell while holding a weapon)? Or can the Thunder Gauntlets be considered "sheathed" when not attacking with them?

(Note: All Artificer spellcasting requires a material component, so performing a somatic-only spell is not an concern.)

how to display count of total posts and for every category and having possibility to filter between dates and user

Hello i use simple plugin that count numbers of posts for every category and total but i was stuck in how to display count of posts between to dates and with authors.

<div class="wrap posts-and-users-stats">      <nav class="nav-tab-wrapper">         <?php echo "<h2> Nombres des articles </h2>" ?>      </nav>      <section>         <?php     $  categories = get_categories( array(     'orderby' => 'name',     'order'   => 'ASC' ) );           <table id="table-<?php echo esc_attr($  taxonomy); ?>" class="wp-list-table widefat">                         <tbody>                 <?php foreach ($  categories as $  category) { ?>                     <tr>                         <td><?php echo esc_html($  category->name ); ?></td>                         <td class="number"><?php echo esc_html($  category->count); ?></td>                     <?php } ?>                     </tr>             </tbody>                  </table>     </section>   </div> 

this the code i used for filter

<form method="post">             From : <input type="date" name="from">             To : <input type="date" name="to">             User :<?php wp_dropdown_users($  args); ?>             Catégories :<?php wp_dropdown_categories($  args); ?>             <input type="submit" name="submitbtn">         </form>     <?php          $  from = $  _POST['from'];     $  to = $  _POST['to'];     $  user = $  _POST['user'];     $  category = $  _POST['categories'];     print "From" . $  from . "\n";     print "To" . $  to . "\n";     print "User" . $  user . "\n"; 

Can I swap a maneuver known with another one if I have te requisite before the swap but stop having it after?

The Tome of Battle states the following:

Upon reaching 4th level, and at every even-numbered swordsage level after that (6th, 8th, 10th, and so on), you can choose to learn a new maneuver in place of one you already know. In effect, you lose the old maneuver in exchange for the new one. You can choose a new maneuver of any level you like, as long as you observe your restriction on the highest- level maneuvers you know; you need not replace the old maneuver with a maneuver of the same level. For example, upon reaching 10th level, you could trade in a single 1st-, 2nd-, 3rd- or 4th-level maneuver for a maneuver of 5th level or lower, as long as you meet the prerequisite of the new maneuver. You can swap only a single maneuver at any given level.

So, let’s say my PC (Monk 4, Swordsage 4) has Mighty Throw as his only Setting Sun maneuver and wants to swap it at level 4 with Devastating Throw. He accomplishes the requisite of having 1 Setting Sun maneuver before the swap, however, he no longer accomplishes the requisite after the swap (unless you count the Devastating Throw itself). Is this swap possible?

How does having multiple Speeds interact with Difficult Terrain?

The rules on "Using Different Speeds" state (emphasis mine):

[…] Whenever you switch, subtract the distance you’ve already moved from the new speed. The result determines how much farther you can move. If the result is 0 or less, you can’t use the new speed during the current move. […]

However, I’m unsure what the rules mean when they say "the distance you’ve already moved" especially when difficult terrain is thrown into the mix. The very next section is on "Difficult Terrain" and it states:

[…] Every foot of movement in difficult terrain costs 1 extra foot. This rule is true even if multiple things in a space count as difficult terrain. […]

So what happens if a creature with a Walking Speed of 30 and a Climbing Speed of 20 begins their turn by walking through 15 feet of difficult terrain to the nearest wall (which is not difficult terrain)? Their remaining Walking movement will be 0, but will their remaining Climbing movement be 5 or 0?