I found this script on the nwvault. It sounds interesting but sadly it was not mentionent where it should be placed in the mod:
if anyone has a clue where this script fits into please let me know :(
[snapback]15402[/snapback]
It will go in your modules onheartbeat event.
It is a very resource hungry script, and I wouldnt recommend using it.
If you have a certain type of motherboard, the sheer number of time functions will cause your CPU to hang.
I found this script on the nwvault. It sounds interesting but sadly it was not mentionent where it should be placed in the mod:
if anyone has a clue where this script fits into please let me know :(
[snapback]15402[/snapback]
It will go in your modules onheartbeat event.
It is a very resource hungry script, and I wouldnt recommend using it.
If you have a certain type of motherboard, the sheer number of time functions will cause your CPU to hang.
[snapback]15410[/snapback]
Yes you are right Talon but since I don't have a better version and since I don't know (yet) enough about scripting to change this one I think I will use it anyway.
When I get problems with it then I can remove it anyway.
May be you can send me a better version of this script? :blink:
I even would give credit to you :) :)
I'm always glad to get help from others...usually it is mel who helps me but she seems to be quite busy during the past days.
Look, I don't want to create a second GodSpire, I can't and I won't. I only would like to have the rules nearly the same so when GS is down and arivs isn't up, people could still have some fun on our mod too :D
couldnt you use a simple IF statement to find out whether the player is in a duel and only then carrying out the rest of the script?
[snapback]15468[/snapback]
I think it's not that easy because you have to check all players all the time to see if they are in a duel... *sigh* :glare:
couldnt you use a simple IF statement to find out whether the player is in a duel and only then carrying out the rest of the script?
[snapback]15468[/snapback]
I think it's not that easy because you have to check all players all the time to see if they are in a duel... *sigh* :glare:
[snapback]15469[/snapback]
well, you could check to see if they are in combat much more easily. it would also help stop annoying hider randomers..
You really have something with making heavy onbeat scripts gwydion. (like giving a throne an onbeat to add a clolor to it :blink: )
I use a very small script on the onbeat to check for hide. It just check if the player is in duel, and if it's hided. If so it unhides. That's all and takes 1 if statement and 1 command to unhide.
For the truesee, just make that the truesee gets removed and replace it by 6 darkvisions. And when someone equips a item with 6 darkvision make that they get a supernatural effect with see invisi and ultrvision. Same goes for unequiping, remove those then. (this makes it gs/arivs compatible too, I recommend you work that way)
-Mel
[snapback]15479[/snapback]
I first used the OnHeartbeat to give effects to objects yes because I didn't know of another way. Now since you told me how to change that I use the OnModuleLoad to give effects to objects :D
but this loop stuff isn't working out... :crash: :glare:
You really have something with making heavy onbeat scripts gwydion. (like giving a throne an onbeat to add a clolor to it :blink: )
I use a very small script on the onbeat to check for hide. It just check if the player is in duel, and if it's hided. If so it unhides. That's all and takes 1 if statement and 1 command to unhide.
For the truesee, just make that the truesee gets removed and replace it by 6 darkvisions. And when someone equips a item with 6 darkvision make that they get a supernatural effect with see invisi and ultrvision. Same goes for unequiping, remove those then. (this makes it gs/arivs compatible too, I recommend you work that way)
-Mel
[snapback]15479[/snapback]
I first used the OnHeartbeat to give effects to objects yes because I didn't know of another way. Now since you told me how to change that I use the OnModuleLoad to give effects to objects :D
but this loop stuff isn't working out... :crash: :glare:
[snapback]15486[/snapback]
Loop, you don't need a loop for the hiding stuff. You may need a few for the truesee fix, but if that's what doesn't works, can you give a bit more info?
-Mel
this hiding stuff isn't so important right now. If you can spare a little time I would like you to help me with this:
This is a section of the script where I want all objects with the tag "VIT"
to get a LocalInt:
object oVIT = GetObjectByTag("VIT"); // VIT = Very Important Thing
while(GetIsObjectValid(oVIT))
{
SetLocalInt(oVIT, "NoKilling", 1);
oVIT = GetNextObjectInArea();
}
all objects that are absolutely neccessary have the tag VIT.
But still not all objects with this tag in one area are affected by that.
Is there smt wrong with this?
May be it has smt to do with GetNextObjectInArea?
How can I get an area where objects with VIT-tag are in and run this while-stuff for
that area as long as there are objects with that tag???
[snapback]15511[/snapback]
oVIT = GetNextObjectInArea(); This gets any object in the area, not just those with the tag. Also, if you get a object by tag and then starting from that one loop trought the rest, you may miss a few before the first you got with the tag.
Just get the first object in the are, then loop trought hem all and if they have the tag vit, add the local int. That only req a simple if statement in the while loop.
-Mel
this hiding stuff isn't so important right now. If you can spare a little time I would like you to help me with this:
This is a section of the script where I want all objects with the tag "VIT"
to get a LocalInt:
object oVIT = GetObjectByTag("VIT"); // VIT = Very Important Thing
while(GetIsObjectValid(oVIT))
{
SetLocalInt(oVIT, "NoKilling", 1);
oVIT = GetNextObjectInArea();
}
all objects that are absolutely neccessary have the tag VIT.
But still not all objects with this tag in one area are affected by that.
Is there smt wrong with this?
May be it has smt to do with GetNextObjectInArea?
How can I get an area where objects with VIT-tag are in and run this while-stuff for
that area as long as there are objects with that tag???
[snapback]15511[/snapback]
oVIT = GetNextObjectInArea(); This gets any object in the area, not just those with the tag. Also, if you get a object by tag and then starting from that one loop trought the rest, you may miss a few before the first you got with the tag.
Just get the first object in the are, then loop trought hem all and if they have the tag vit, add the local int. That only req a simple if statement in the while loop.
-Mel
[snapback]15520[/snapback]
okay now I changed it to this:
object oItem = GetFirstObjectInArea();
while(GetIsObjectValid(oItem))
{
object oVIT = GetObjectByTag("VIT");
if(GetIsObjectValid(oVIT))
{
SetLocalInt(oVIT, "NoKilling", 1);
oVIT = GetNextObjectInArea();
}
}
but it still doesn't work for every item in an area. I'm giving up :(
I'm too dumb to do handle this loop stuff :glare:
object oItem = GetFirstObjectInArea();
while(GetIsObjectValid(oItem))
{
if(GetTag(oItem) == "VIT")
{
SetLocalInt(oItem, "NoKilling", 1);
}
oItem = GetNextObjectInArea();
}
Maybe it's a good idea to pass the area to the area functions, to be sure :closedeyes:
-Mel
[snapback]15536[/snapback]
I don't like to say this but its still not working. Even yet it only affects one single item in an area. I need a big holiday from NWN :blink: :blink:
These things are making me crazy :crash:
object oItem = GetFirstObjectInArea();
while(GetIsObjectValid(oItem))
{
if(GetTag(oItem) == "VIT")
{
SetLocalInt(oItem, "NoKilling", 1);
}
oItem = GetNextObjectInArea();
}
Maybe it's a good idea to pass the area to the area functions, to be sure :closedeyes:
-Mel
[snapback]15536[/snapback]
I don't like to say this but its still not working. Even yet it only affects one single item in an area. I need a big holiday from NWN :blink: :blink:
These things are making me crazy :crash:
[snapback]15541[/snapback]
The error still may be somewhere else in the script. At least the part I posted should work (even if it's a 1 minute post :P)
-Mel