Set Ability and Set Race Possible?

Moderator: Event DM

Post Reply
User avatar
IceThorn
Team Member; Retired with Honors
Posts: 5291
Joined: Mon Jan 10, 2005 2:06 pm
Location: Austin, Tx. (Central Time; GMT-6)
Contact:

Set Ability and Set Race Possible?

Post by 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
girlysprite
Elder Sage
Posts: 3659
Joined: Mon Apr 12, 2004 2:38 pm
Location: In my little pony ranch
Contact:

Post by 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
PlasmaJohn
CCC / Release Admin
CCC / Release Admin
Posts: 9010
Joined: Fri Dec 26, 2003 10:37 pm
Timezone: US/Eastern
Location: Negaria
Contact:

Post by 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.
Preston
Newbie
Posts: 5
Joined: Fri Nov 04, 2005 6:43 pm

Post by 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...
User avatar
Alphonse
Master Sage
Posts: 5302
Joined: Wed Nov 03, 2004 8:26 am
Location: GMT

Post by 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
IceThorn
Team Member; Retired with Honors
Posts: 5291
Joined: Mon Jan 10, 2005 2:06 pm
Location: Austin, Tx. (Central Time; GMT-6)
Contact:

Post by 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
Final Shinryuu
Sage
Posts: 2060
Joined: Thu Jun 24, 2004 3:20 am
Location: http://hades.mercuric.net/

Post by 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
Nighthawk4
Assist DM
Assist DM
Posts: 25898
Joined: Fri Feb 07, 2003 8:32 pm
Timezone: GMT
DM Avatar: DruEl
Location: The Home of the Bard of Avon
Contact:

Post by 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
User avatar
IceThorn
Team Member; Retired with Honors
Posts: 5291
Joined: Mon Jan 10, 2005 2:06 pm
Location: Austin, Tx. (Central Time; GMT-6)
Contact:

Post by 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.
Post Reply