Jump to content

Casting only Alt Aard


vsub

Recommended Posts

Can someone help me.

I'm trying to make any press(press or hold)while aard is selected to always cast alt aard but I can't figure out to get the currently selected sign.

 

I think the change need to be done in

\content\scripts\game\gameplay\items\spells\signOwner.ws

in the function ChangeAspect

	public function ChangeAspect( signEntity : W3SignEntity, newSkill : ESkill ) : bool
	{
		var newTarget : CActor;
		var ret : bool;
			
		if ( !player.CanUseSkill( newSkill ) )
		{
			ret = false;
		}		
		else if ( theInput.GetActionValue( 'CastSignHold' ) > 0.f )
		{
			if ( !player.IsCombatMusicEnabled() && !player.CanAttackWhenNotInCombat( EBAT_CastSign, true, newTarget ) )
			{
				ret = false;
			}
			else if( player.HasBuff( EET_GryphonSetBonus ) && player.GetStatPercents( BCS_Stamina ) < 1.f )
			{
				ret = false;
			}
			else
			{
				signEntity.SetAlternateCast( newSkill );
				player.SetBehaviorVariable( 'alternateSignCast', 1 );
				ret = true;
			}
		}
		else 
		{
			ret = false;
		}
		
		if(!ret)
			signEntity.OnNormalCast();
		
		return ret;
	}

Also,does anyone know how can I output a log message in the game that displays a variable while I'm triggering function.

And also,do you think it will be possible that when I'm holding a button(hasting alt quen),when the enemys hit me,the effect that is triggered to be casting alt aard rather than the default electric effect

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...