![]() |
hello.i am new at script of nwn but chould write some thing later.
i find the weaponsystem like D2 in this server is very interesting , and try to make some like but i donot understand how to deal with the peoblem when pc get a set items with "X uses spell pro day" ,you know , they want to reequip the set items to break limit of "n uses". waiting for your tips or mabey someone could write more about it ,i am new at script. thanks a lot ! |
<font color=skyblue>Hi deeper! Glad to have you onboard with us. I am personally weak on scripting. I love building on the Toolset, but I always get help for my scripts, if I bother at all to make any.
Let's see if somebody else can be of help on your script question.</font> |
Welcome to Ironworks deeper! [img]graemlins/happywave.gif[/img] I am curretnly at school and I have instructions at home. I will post as soon as I can.
|
thank you !!! but........why all of you know that i was just
new here ? PS:try to write some about set items ,later will post it here . |
Hi deeper
There's stuff about set items in an earlier post http://www.ironworksforum.com/ubb/no...c;f=8;t=000313 [ 07-02-2004, 04:32 PM: Message edited by: roddybug ] |
thank you ,bug.hehe
but the same problem is here. n uses pro day............ i think i can write a simple one with the help of these,morgen i will post it here. Xen,i am waiting for yours ,lets see what you have ,zezezeze [img]smile.gif[/img] |
if i set the set items` speical power only applyon when pc wear all of them and then have a rest finished.is it rgiht ? or are there some script check the pc-rest type ?when equip a set item check rest-type :finished> then do another sentence .when pc unequip set rest-type falsh.how to write it ?
|
object oPC = GetPCItemLastEquippedBy();
............. int reststat=GetLastRestEventType(); if(reststat==REST_EVENTTYPE_REST_FINISHED) { SetLocalInt(oPC,"rest",1); } int Check=GetLocalInt(oPC,"rest"); if(Check==1) { ...........add itemprop} somewhere wrong,nothing happens .but i donot know . |
////////////this is on pcrest
void main() { object oPC=GetLastPCRested(); int reststat=GetLastRestEventType(); int Check=GetLocalInt(oPC,"rest"); if(reststat==REST_EVENTTYPE_REST_FINISHED) { SetLocalInt(oPC,"rest",1); } ////////////////////this is on onpcequip int Check=GetLocalInt(oPC,"rest"); if (sSword == "bfg_sif_rhand" && sShield == "bfg_sif_lhand" && sHead == "bfg_sif_head" && sChest =="bfg_sif_chest"&& sBoots =="bfg_sif_boot" && Check==1) { } /////////////////this on onpcunequip if (sItemTag == "bfg_sif_rhand" || sItemTag == "bfg_sif_lhand" || sItemTag == "bfg_sif_head" || sItemTag == "bfg_sif_chest" || sItemTag == "bfg_sif_boot") { SetLocalInt(oPC,"rest",0); as you said , i have already made it like this ,but there are some problems,i must wear at least two of the set items that can fire the extra power of the setitem. is there another way ? |
All times are GMT -4. The time now is 06:38 PM. |
Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
©2024 Ironworks Gaming & ©2024 The Great Escape Studios TM - All Rights Reserved