logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
How reduce speed of spell HASTE about 30%?

 
Post new topic   Reply to topic    nwnx.org Forum Index -> General Discussion
View previous topic :: View next topic  
Author Message
sandronejm



Joined: 02 Jan 2014
Posts: 15

PostPosted: Wed Jan 22, 2014 20:39    Post subject: How reduce speed of spell HASTE about 30%? Reply with quote

I would like to reduce speed HASTE spell about 30% is possible using nwnx?

Last edited by sandronejm on Wed Jul 23, 2014 7:12; edited 2 times in total
Back to top
View user's profile Send private message Send e-mail
Squatting Monk



Joined: 28 Jun 2007
Posts: 76

PostPosted: Thu Jan 23, 2014 7:49    Post subject: Reply with quote

You can reduce the movement speed with EffectMovementSpeedDecrease().

Add this right under line 59 of nw_s0_haste:
Code:
    // Slow it down a bit
    eHaste = EffectLinkEffects(EffectMovementSpeedDecrease(30), eHaste);


Replace 30 with a smaller value if that slows it down too much.

Note: this will not help with hasted items, only the spell.
Back to top
View user's profile Send private message
sandronejm



Joined: 02 Jan 2014
Posts: 15

PostPosted: Fri Jan 24, 2014 2:31    Post subject: Reply with quote

Squatting Monk wrote:
You can reduce the movement speed with EffectMovementSpeedDecrease().

Add this right under line 59 of nw_s0_haste:
Code:
    // Slow it down a bit
    eHaste = EffectLinkEffects(EffectMovementSpeedDecrease(30), eHaste);


Replace 30 with a smaller value if that slows it down too much.

Note: this will not help with hasted items, only the spell.


and about ITENS?


Last edited by sandronejm on Wed Jul 23, 2014 7:12; edited 2 times in total
Back to top
View user's profile Send private message Send e-mail
sandronejm



Joined: 02 Jan 2014
Posts: 15

PostPosted: Fri Jan 24, 2014 2:54    Post subject: Reply with quote

Squatting Monk wrote:
A non-NWNX way to fix haste speed on items would be to modify your OnPlayer(Un)EquipItem scripts to look for haste properties on any equipped items and apply/remove a movement penalty there.


What do you mean with HASTE Properties?
Back to top
View user's profile Send private message Send e-mail
Lokey



Joined: 02 Jan 2005
Posts: 158

PostPosted: Mon Jan 27, 2014 4:54    Post subject: Reply with quote

It'll be complicated to address from script + 2da changes, EffectMovementSpeedDescrease() is snuffed by a lot of things, so those need to be addressed also. Besides the fact that haste is the best spellcasting buff there is, it does even more than auto-quicken. If dealing with script, letting a movement rate boost expire lets you handle it script side (i.e. ApplyEffectToObject(DURATION_TYPE_TEMPORARY, EffectMovementSpeedIncrease(1), whatever_object, 0.1);), but like I said, it's going to get involved as there's 7 or 8 movement speed increasing spell abilities.

There was a movement cap put in in one of the patches (+50% base unless monk 3+), and there are lots of other movement rate headaches. So it might be addressable with a plugin.
_________________
Neversummer PW NWNx powered mayhem Wink
Back to top
View user's profile Send private message
junliar



Joined: 27 Feb 2014
Posts: 1

PostPosted: Thu Feb 27, 2014 9:00    Post subject: Reply with quote

You'd better not insert a penalty speed on HASTE Script.
_________________
rs gold 2007 /old school rs gold
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> General Discussion All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group