kaetzer Posted August 11, 2011 Posted August 11, 2011 (edited) evening ...or morning? :ermm: i'm trying to make a new "ingestible" with the geck that awards a certain amount of XP, but i somehow cant figure out how its done :sad: so far i'm pretty sure i have to do it via script Quote scn "scriptname" begin *here i chose "onactivate", well... didnt work :confused: * player.rewardXP "value" end could someone help me with that problem, please? oh, and while im asking: is it possible to write a tiny formula that determines the amount of XP given depending on the players intelligence and/or level? thanks in advance greetingskaetzer Edited August 11, 2011 by kaetzer
rickerhk Posted August 11, 2011 Posted August 11, 2011 You have to create a base effect and put the script on that, then add the effect to the ingestible, with duration 0. scn MyEatingXPScript BEGIN ScriptEffectStart rewardXP 10 END
kaetzer Posted August 11, 2011 Author Posted August 11, 2011 woohoo :laugh: everything works fine now, thanks a lot for the help man, i love this forum^^ mostly replys come that fast :biggrin:
kaetzer Posted August 12, 2011 Author Posted August 12, 2011 well, i just got another problem... i needed that script for a mod i was making, which removes a Pre-War Book from your invetory upon picking it up and giving you another item ("Book") which can be used to get some XPeverything works fine so far, but if you loot a pre-war book from a container or buy one from a merchant the game crashes :(picking one up that's lying around works perfectly i used a script on each Pre-War Book: scn PreWarBookSwapScript(01-08) begin OnAdd player.removeitem "Pre-War Book ID" 1 1 player.additem ReadablePreWarBook 1 1 end does someone know why it tends to crash?
viennacalling Posted August 12, 2011 Posted August 12, 2011 Try this instead: begin OnAddplayer.additem ReadablePreWarBook 1 1removemeend http://geck.bethsoft.com/index.php/RemoveMe
kaetzer Posted August 13, 2011 Author Posted August 13, 2011 thanks a lot seems to work now, but i will keep an eye on it... because of "seems"
Recommended Posts