Script one is a Item Activation script, the purpose of it is that when the user activates the script on a hostile target, the item will apply dmg to the target. I have most of it workign great but its not registering that the dmg is from the user, so if the creature dies the user dosnt get any exp...
heres the bones of my script:
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//Script 1 was reposted
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Script 2 im not even sure how to realy start, but the idea is to make a spell script that when the caster sucessfully finishes the spell it creates x amount of an item and places it in the casters inventory, then after 60 seconds times x amount of time remove these items. where x = caster level
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
#include "X0_I0_SPELLS"
#include "x2_inc_spellhook"
void main(){
/* Spellcast Hook Code Added 2003-06-20 by Georg If you want to make changes to all spells, check x2_inc_spellhook.nss to find out more
*/
if (!X2PreSpellCastCode()) {
// If code within the PreSpellCastHook (i.e. UMD) reports FALSE, do not run this spell
return; }
// End of Spell Cast Hook
object oCaster = OBJECT_SELF;
//object oItem = //"item tag? but my compiler couldnt find it";
int nCasterLvl = GetCasterLevel (OBJECT_SELF);
if (nCasterLvl < 10)
{
nCasterLvl = 10;
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
this is all ive gotten so far, i've tried using their giveitem fcn but it couldnt find my item and also kept giving me a unextected end of opterations error or somthing liek that regaurdless of how i closed my }
Any help with these will be greatly appreciated, and any good sources for learngin all the commands for nwn2 would alos help a ton!
Modifié par AstoriaWMY, 15 juillet 2012 - 08:27 .





Retour en haut






