Dylak Posted June 12, 2013 Share Posted June 12, 2013 HelloCan someone check what is wrong with my script.I can save it but it isn't have any effect in game scn qsz1 Begin gamemode if (aaqszaa.getdead == 1) rewardxp 500 endif endIn attach i pointed what could I have done wrong Link to comment Share on other sites More sharing options...
blove Posted June 12, 2013 Share Posted June 12, 2013 Have you created a start game enabled quest and attached this script to it? Link to comment Share on other sites More sharing options...
prensa Posted June 12, 2013 Share Posted June 12, 2013 Dylak - Hello!As blove asks, what have you attached the script to?If you made a unique copy of that LvlRaiderGun that must be killed for the XP points, you could attach an OnDeath script directly to them.Something like:scn qsz1Begin ondeathrewardxp 500endTha would award the player 500 XP on the LvlRaiderGun death.Make sure, if you do attach the script to them, that it's your own unique copy of LvlRaiderGun or else the script will be on all of them. :)Call your version something new like LvlRaiderGunBrucieBonus or something.You could even use aIf IsKiller playerIn there if you wanted to only give XP if the player kills them, like so:scn qsz1Begin ondeathIf IsKiller playerrewardxp 500endifendYou can also attach your version of the script to a quest as blove says, I've not done that myself so I'll leave explaining that to blove. :)Information on creating quests here:http://geck.bethsoft.com/index.php/Bethsoft_Tutorial_Basic_QuestIt depends on what you want to do.Hope this helps!Prensa Link to comment Share on other sites More sharing options...
Dylak Posted June 12, 2013 Author Share Posted June 12, 2013 (edited) -Blove -I created quest but I could forgot to attach this script to it. I will check it tomorrow because i don't have access to my computer with g.e.c.k. -Prensa - I made that script because i was trying to make script with more conditions and it din't work correctly. I found out it is fault of that part and i remove rest to check what is wrong with it. I used rewardxp because it seams to be one of the easiest functions. And i have another question. I have to create a quest and attach the script to it even if i want to write a simple script which add some xp or items when all conditions are completed ? Thanks both of you for quick answers Edited June 12, 2013 by Dylak Link to comment Share on other sites More sharing options...
blove Posted June 13, 2013 Share Posted June 13, 2013 You have to have something call the script else it never runs. Link to comment Share on other sites More sharing options...
Dylak Posted June 13, 2013 Author Share Posted June 13, 2013 Yes i forgot to attach script to quest. Now it working correctly.Thanks both of you for help. Link to comment Share on other sites More sharing options...
Recommended Posts