Jump to content

Scripting problem


Fliki

Recommended Posts

Hi.

 

I am working on one mod but I have problem with scripts.

 

I try edit script what will you see under this text to not effect my speed but to slow down speed of arrows , mooving objects and NPCs.

 

I mean script need slow down all around you but not you.

 

I will change messiages and script name later so you do not have to saying me that.

 

here go script :

 

scriptname focusmode

 

begin scripteffectstart

playsound focusbegin

 

con_SetIniSetting "fGlobalTimeMultiplier:General" 0.050

 

con_SetCameraFOV 76

con_SetCameraFOV 77

con_SetCameraFOV 78

con_SetCameraFOV 79

con_SetCameraFOV 80

con_SetCameraFOV 81

con_SetCameraFOV 82

con_SetCameraFOV 83

con_SetCameraFOV 84

con_SetCameraFOV 85

con_SetCameraFOV 86

con_SetCameraFOV 87

con_SetCameraFOV 88

con_SetCameraFOV 89

con_SetCameraFOV 90

TriggerHitShader 2

Message "You gain Focus"

end

 

begin gamemode

TriggerHitShader 0.75

playsound focusheartbeat

end

 

If you have idea how I can slowe my problem please post it.

Link to comment
Share on other sites

I mean script need slow down all around you but not you.

You can't. While you could add a fortify speed effect to reduce the walking slow down, any actions, and turning would still be affected. Since the speed of these actions cannot be temporarily increased for just one person, if at all, what you want isn't possible.

Link to comment
Share on other sites

I mean script need slow down all around you but not you.

You can't. While you could add a fortify speed effect to reduce the walking slow down, any actions, and turning would still be affected. Since the speed of these actions cannot be temporarily increased for just one person, if at all, what you want isn't possible.

Will I shot arrows normaly when I speed up ???? I mean will be my character putting and shooting arrows on normal rate ???

 

CAn someone here actualy help me ???

 

EDIT: Merged posts. Please don't bump, it's against the rules. Thanks.

 

- Switch

Link to comment
Share on other sites

CAn someone here actualy help me ???

 

 

I mean script need slow down all around you but not you.

You can't. While you could add a fortify speed effect to reduce the walking slow down, any actions, and turning would still be affected. Since the speed of these actions cannot be temporarily increased for just one person, if at all, what you want isn't possible.

 

When I say you can't, I mean you can't. The settings used to control things like attack speed, arrow speed, turning, and generally everything that isn't related to just walking, are applied universally. Meaning that one change affects everything for everyone at the same exact rates. That said, the only setting which changes speed of those things, and isn't hard coded is "fGlobalTimeMultiplier" which is exactly what you're already using. There is no help, you can't do it, the changes you want to make only apply to or exclude the player cannot be done. Your mod can not be done better, worse, or differently than what you are already doing.

 

Just make sure your script sets that .ini setting back to what it should be once the effect is over.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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