The current OnRest module script will have to be modified to include
if ((GetLastRestEventType()==REST_EVENTTYPE_REST_FINISHED)
&& (GetLevelByClass(60, oPC)>=1))
SetLocalInt(GetModule(), GetPCPlayerName(oPC)+GetName(oPC)+"PSP", GetLocalInt(GetModule(), GetPCPlayerName(oPC)+GetName(oPC)+"PSPMax") );
Or something similar anyhow I got this direct from the riginal Psionics mod. Otherwise any psionic characters won't be able to regain used PSPs ever.
Not sure where it should go though in that script :/
Psion OnRest script mod
Psion OnRest script mod
*Your superior intelligence can not defeat my puny weapons*
-
- World Leader: The Outlands
- Posts: 497
- Joined: Thu Jul 01, 2004 2:24 pm
- Location: Sigil
- Contact:
Drak this code is incomplete.
It looks like there is anotehr piece missing (as I have the Psion Class disabled at the moment I was not worried about this yet.
It looks like there should be some validation of the PSP count, and you might need to validate the class.
Cheers,
teleri
It looks like there is anotehr piece missing (as I have the Psion Class disabled at the moment I was not worried about this yet.
It looks like there should be some validation of the PSP count, and you might need to validate the class.
Cheers,
teleri
Cheers,
teleri
Building the Outlands one GateTown at a Time
[url=http://www.greatring.net][color=blue][u][b]The Outlands[/color][/u][/b][/url]
[url=http://www.diterlizzi.com/art/games/planescape/index.html][color=blue][u][b]The Look of PlaneScape[/color][/u][/b][/url]
teleri
Building the Outlands one GateTown at a Time
[url=http://www.greatring.net][color=blue][u][b]The Outlands[/color][/u][/b][/url]
[url=http://www.diterlizzi.com/art/games/planescape/index.html][color=blue][u][b]The Look of PlaneScape[/color][/u][/b][/url]
-
- Leader: Tairis'nàdur & CoPaP Hak-Master
- Posts: 887
- Joined: Tue Nov 25, 2003 11:26 am
- Location: Michigan
- Contact:
Code: Select all
//Restore PSP for Psionicists
if ((GetLastRestEventType()==REST_EVENTTYPE_REST_FINISHED)
&& (GetLevelByClass(60, oPC)>=1))
SetLocalInt(GetModule(), GetPCPlayerName(oPC)+GetName(oPC)+"PSP", GetLocalInt(GetModule(), GetPCPlayerName(oPC)+GetName(oPC)+"PSPMax") );
Find the place in your rest script that handles the REST_EVENTTYPE_REST_FINISHED, and add it under there.
If there is no such place, just add it where all other effects are added at the end of resting in your OnRest script.
-Themicles
"A wise man does not dwell on his past. He learns from it, he grows from it, and then moves ahead into his future." -me
-
- World Leader: The Outlands
- Posts: 497
- Joined: Thu Jul 01, 2004 2:24 pm
- Location: Sigil
- Contact:
Ahh didn't see a lib_psionic called that would do it.Drakuul wrote:THat is all there is on the onrest code in the original Psionics mod, the max PSPs are determined in another script called lib_psionic.
I'll take the hint though and leave it to people who know what they are doing with scripts
Cheers,
teleri
Building the Outlands one GateTown at a Time
[url=http://www.greatring.net][color=blue][u][b]The Outlands[/color][/u][/b][/url]
[url=http://www.diterlizzi.com/art/games/planescape/index.html][color=blue][u][b]The Look of PlaneScape[/color][/u][/b][/url]
teleri
Building the Outlands one GateTown at a Time
[url=http://www.greatring.net][color=blue][u][b]The Outlands[/color][/u][/b][/url]
[url=http://www.diterlizzi.com/art/games/planescape/index.html][color=blue][u][b]The Look of PlaneScape[/color][/u][/b][/url]