Community Adventure Project
Welcome Adventurer, make yerself at home.
Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» Fix or Improve??
Sat Dec 20, 2014 10:12 pm by Drgnwlkr

» Is there...
Fri Nov 14, 2014 10:39 am by Tavion

» Resetting Journal
Mon Oct 21, 2013 11:38 pm by Subnormal

» Golem Builder By Borojb
Sun Sep 01, 2013 1:32 pm by Tavion

» Hack K & L
Fri Jul 19, 2013 11:43 pm by Tavion

» Help with the haks
Fri May 31, 2013 7:34 pm by Wyrdwolf

» Character Retirement not working
Fri May 03, 2013 3:43 am by MannyJabrielle

» Yankeeyiddos.com
Sat Apr 06, 2013 1:58 am by Drgnwlkr

» The Grimm is back!
Sat Mar 09, 2013 1:41 am by borojb


Tome of stats

Go down

Tome of stats

Post  Tavion on Sat Jan 05, 2013 7:52 pm

I was wondering, is there a way to use the same tome more than once's in the module?

itemproperty eEffect = ItemPropertyAbilityBonus(IP_CONST_ABILITY_CON,1);

ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_DISPEL), oPC);
FloatingTextStringOnCreature("Your Constitution has been raised by +1 ", oPC);
AssignCommand(oPC,PlaySound("sim_blinddeaf"));
AddItemPropertyToPCHide(DURATION_TYPE_PERMANENT,eEffect,oPC,0.0f,FALSE);
RestoreHideOnPC( oPC);

}

I have tryed to change the script by altering it by putting:

itemproperty eEffect = ItemPropertyAbilityBonus(IP_CONST_ABILITY_CON,2);

ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_DISPEL), oPC);
FloatingTextStringOnCreature("Your Constitution has been raised by +2 ", oPC);
AssignCommand(oPC,PlaySound("sim_blinddeaf"));
AddItemPropertyToPCHide(DURATION_TYPE_PERMANENT,eEffect,oPC,0.0f,FALSE);
RestoreHideOnPC( oPC);

}

I am not sure if the "Database" has to be changed to let it work.

please reply soon as possable

L0BSTER x

Tavion
CAP Rook
CAP Rook

Posts : 25
Join date : 2012-01-15

View user profile

Back to top Go down

Re: Tome of stats

Post  borojb on Sun Jan 06, 2013 3:25 am

Well......

when you do:

Iitemproperty eEffect = ItemPropertyAbilityBonus(IP_CONST_ABILITY_CON,2);

ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_DISPEL), oPC);
FloatingTextStringOnCreature("Your Constitution has been raised by +2 ", oPC);
AssignCommand(oPC,PlaySound("sim_blinddeaf"));
AddItemPropertyToPCHide(DURATION_TYPE_PERMANENT,eEffect,oPC,0.0f,FALSE);
RestoreHideOnPC( oPC);

All that does is make the bonus for reading the book +2, instead of +1.

You would need to increment the constitution item property on the PC hide, so
I think at that point you have to store the current bonus as a variable on the PC
hide, retrieve the bonus, increment it by 1, resave the variable, then remove the
current item property and replace it with the new one... Mad

LoW can certainly explain it better, but its not necessarily an "easy" fix.

Granted, I might be snookered currently and missing something really simple. Cool drunken

borojb
CAP Squire
CAP Squire

Posts : 75
Join date : 2011-01-08
Age : 47
Location : Downstate Illinois

View user profile

Back to top Go down

Re: Tome of stats

Post  Tavion on Sun Jan 06, 2013 2:06 pm

It's no problem, i just thought i was missing a word or letter out to let me use the

tomes more than onces on the same stats Smile

Thanks for the reply Borojb Smile

Tavion
CAP Rook
CAP Rook

Posts : 25
Join date : 2012-01-15

View user profile

Back to top Go down

Re: Tome of stats

Post  lord_of_worms on Thu Jan 10, 2013 6:21 am

I am not *completely* sure if this is what your asking, but are you asking if you can use the *same* tome more than once to raise it by +1 each time.,..then that would be as simple as just editing the item to not be a 1 use item, you could have it with charges or mayby a 3 times a day..

the only reason here where I think you would start editing scripts would be if you wanted to set like conditions for the charges, like you can read the book up to 3 times but only in a church interior or some other not so accessible and easy spot...otherwise you could just spam stats with these items Very Happy
avatar
lord_of_worms
CAP Knight
CAP Knight

Posts : 321
Join date : 2010-01-12
Age : 45
Location : Massachussetts

View user profile

Back to top Go down

Re: Tome of stats

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum