Server Totals
Visimontium - (1)
Mikona - (1)
Ferrell - (0)
Le'Or - (0)
Elysia - (0)
M'Chek - (0)
Deglos - (0)
Wilderness - (0)
Underdark - (0)
Total players: 2
Gallery
  • Golem Giants
    Album name: DM Events
    Uploaded by: Ronan
    Uploaded: Wed Aug 20, 2014 12:07 am

Links Menu

Set Ability and Set Race Possible?

Moderators: Nighthawk4, Dungeon Masters

Set Ability and Set Race Possible?

PostAuthor: IceThorn » Wed Apr 12, 2006 1:30 pm

I've been unable to find functions for setting a PC's ability to an absolute value or to set the PC's race. I've got a loop to calculate the ability difference and subtract to get to the desired number, but the decrease ability function has to be a positive int < 10 => needing a loop. Anyone know a smoother way?

Also, if I want to set a PC's race to say Undead, is there a way to do it?
User avatar
IceThorn
Team Member; Retired with Honors
 
Posts: 5292
Joined: Mon Jan 10, 2005 2:06 pm
Location: Austin, Tx. (Central Time; GMT-6)

PostAuthor: girlysprite » Wed Apr 12, 2006 1:37 pm

as for races: I think the onlyway for a PC to change race is to polymorph. Youcan change the subrace of the PC without any problem, but I think you cant change the race.

What you can do is change their appearance without the polymorph effect.
Gaming doesn't make people voilent, lag does

<Dimotane> I think deep down, when we're honest with ourselves... we're all a pregnant male elf.
User avatar
girlysprite
Silver Contributor
 
Posts: 3661
Joined: Mon Apr 12, 2004 2:38 pm
Location: In my little pony ranch

PostAuthor: PlasmaJohn » Wed Apr 12, 2006 1:39 pm

Since you're asking about SetAppearance elsewhere I'll assume you're not talking about that :D. You mean adjust stats and stuff? You're looking at AutoBic then to do a bic modification. That can be risky if it's not a newly created character.
Calvin: This is so cool!
Hobbes: This is so stupid.
User avatar
PlasmaJohn
Team Member; Retired with Honors; Has a Tom Selleck Stache
 
Posts: 8822
Joined: Fri Dec 26, 2003 10:37 pm
Location: New Eden
Timezone: US/Eastern

PostAuthor: Preston » Wed Apr 12, 2006 2:49 pm

When you say setting a PC's ability to an absolute value, do you mean as a base ability score, or an adjusted ability score (i.e. when the score is in red or green)?

The only way to change PC race is with a .bic edit, via autobic, as PJ said, or manually editing it.

Altering a PC's race or base stats might make it so they can't log in with the ECL checker running, I think.

I hope this isn't for what I think it might be for...

Preston
Newbie
 
Posts: 5
Joined: Fri Nov 04, 2005 6:43 pm

PostAuthor: Alphonse » Wed Apr 12, 2006 2:52 pm

Preston wrote:Altering a PC's race or base stats might make it so they can't log in with the ECL checker running, I think.


This problem happened the other week when an overenthusiastic DM used setSTR on PCs
Irreverence Awards 05 :most Ineffectual PC, honourable mention for most likely to give/recieve Spite

Islands of the Lost Head DM
User avatar
Alphonse
Master Sage
 
Posts: 5306
Joined: Wed Nov 03, 2004 8:26 am
Location: GMT

PostAuthor: IceThorn » Wed Apr 12, 2006 3:02 pm

girlysprite wrote:as for races: I think the onlyway for a PC to change race is to polymorph. Youcan change the subrace of the PC without any problem, but I think you cant change the race.

What you can do is change their appearance without the polymorph effect.


Yea, I'm avoiding Polymorph since it won't allow casting & changes abilities.

Preston wrote:When you say setting a PC's ability to an absolute value, do you mean as a base ability score, or an adjusted ability score (i.e. when the score is in red or green)?

The only way to change PC race is with a .bic edit, via autobic, as PJ said, or manually editing it.

Altering a PC's race or base stats might make it so they can't log in with the ECL checker running, I think.

I hope this isn't for what I think it might be for...


No, I want to set CON to 10 so no bonuses (if CON > 10)

Code: Select all
while(iPCAbilCON > 10)  //make PC's CON = 10 to nullify any CON hp bonuses.  Way to just Set Ability = 10?
{
    int CONAdj = iPCAbilCON - 10;
    if(CONAdj > 9)  CONAdj = 9;  //EffectAbilityDecrease() must be a positive number less than 10
    effect eCONDrain = EffectAbilityDecrease(ABILITY_CONSTITUTION, 1);
    ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eCONDrain, oCaster, TurnsToSeconds(iDuration));  //hope multiple drops don't explode
}


For the race, I want to set a PC's race to undead so that all spells that affect undead (like Sunburst, etc.) affect the PC as if they were undead. I guess that'll have to be done on the spell side.
User avatar
IceThorn
Team Member; Retired with Honors
 
Posts: 5292
Joined: Mon Jan 10, 2005 2:06 pm
Location: Austin, Tx. (Central Time; GMT-6)

PostAuthor: Final Shinryuu » Wed Apr 12, 2006 4:41 pm

Only way to change the race is to manually edit the bic, or with a program such as Autobic, LETO, ect. LETO is a two second job to do it if you have servervault access.
Your best bet with setting the CON to 10 is to use drain like that. Don't actually change the base value, or the Avlis ELC checker will boot them as an invalid character.
Image
User avatar
Final Shinryuu
Sage
 
Posts: 2060
Joined: Thu Jun 24, 2004 3:20 am
Location: http://hades.mercuric.net/

PostAuthor: Nighthawk4 » Wed Apr 12, 2006 5:51 pm

Alphonse wrote:
Preston wrote:Altering a PC's race or base stats might make it so they can't log in with the ECL checker running, I think.


This problem happened the other week when an overenthusiastic DM used setSTR on PCs


:shock:


It was an accident :oops:
Life is never as bad as you think it is, although that doesn't help at the time.

Orleron wrote:I think it's a fun idea if you can idiot-proof it. Problem is God always builds a better idiot. :P


Please visit:
Avlis UK, ACE Forum and SATF Forum

Image
User avatar
Nighthawk4
Eldest DM
Eldest DM
 
Posts: 23898
Images: 2
Joined: Fri Feb 07, 2003 8:32 pm
Location: The Home of the Bard of Avon
Timezone: GMT
DM Avatar: DruEl

PostAuthor: IceThorn » Mon Apr 17, 2006 1:21 pm

Using the while loop to make CON=10 really freaked it out - even on SP. A one time drain works ok, but the max drain is 9. Guess PCs with >19 CON luck out and just get CON-9 instead of CON=10.
User avatar
IceThorn
Team Member; Retired with Honors
 
Posts: 5292
Joined: Mon Jan 10, 2005 2:06 pm
Location: Austin, Tx. (Central Time; GMT-6)


Return to NWN Scripting

Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]