Hi there,
I am not a pro scripter, I learn as I test things. However, I have been scripting with Bioware's aurora engine for a few years with their NWN game editor. AM is a bit different although they share some similarities and looks easy. I do not have the full version yet and I would like to know if some random scripts were created and posted for AM yet?
Random scripts similar to the one I did with the Aurora engine. See below?
////////////////////////////////////////////////////////////////////////////////////
//ZeornWarlock
//Part of random weapon generation script?
int nint = d6(1);
if(nint==1)
{
CreateItemOnObject("nw_wpltr001",OBJECT_SELF);//Trident
SetLocalInt(OBJECT_SELF,"WEAPON_TREASURE1",1);
}
else if (nint==2)
{
CreateItemOnObject("nw_wswsc001",OBJECT_SELF); //Scimitar
SetLocalInt(OBJECT_SELF,"WEAPON_TREASURE1",1);
}
else if (nint==3)
{
CreateItemOnObject("nw_wspku001",OBJECT_SELF); //Kukri
SetLocalInt(OBJECT_SELF,"WEAPON_TREASURE1",1);
}
else if (nint==4)
{
CreateItemOnObject("zep_falchion",OBJECT_SELF); //Falchion
SetLocalInt(OBJECT_SELF,"WEAPON_TREASURE1",1);
}
else if (nint==5)
{
CreateItemOnObject("zep_xdbsc_001",OBJECT_SELF); //Double Scimitar
SetLocalInt(OBJECT_SELF,"WEAPON_TREASURE1",1);
}
else if (nint==6)
{
CreateItemOnObject("zep_katar",OBJECT_SELF); //Katar
SetLocalInt(OBJECT_SELF,"WEAPON_TREASURE1",1);
}
/////////////////////////////////////////////////////////////////////////////////////
I am looking for scripts dealing with random events or effects. In my example above I would like to create an AM random item given to the Player, how would I do that?
Thanks.
ZW.