Search
Latest topics
Tome of stats
3 posters
Page 1 of 1
Tome of stats
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
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
- Posts : 25
Join date : 2012-01-15
Re: Tome of stats
Well......
when you do:
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...
LoW can certainly explain it better, but its not necessarily an "easy" fix.
Granted, I might be snookered currently and missing something really simple.
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...
LoW can certainly explain it better, but its not necessarily an "easy" fix.
Granted, I might be snookered currently and missing something really simple.
borojb- CAP Squire
- Posts : 75
Join date : 2011-01-08
Age : 53
Location : Downstate Illinois
Re: Tome of stats
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
Thanks for the reply Borojb
tomes more than onces on the same stats
Thanks for the reply Borojb
Tavion- CAP Rook
- Posts : 25
Join date : 2012-01-15
Re: Tome of stats
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
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
lord_of_worms- CAP Knight
- Posts : 321
Join date : 2010-01-12
Age : 50
Location : Massachussetts
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|
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