vsub Posted October 29, 2017 Share Posted October 29, 2017 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.wsin 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 More sharing options...
Recommended Posts