Jump to content

Recommended Posts

Posted (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

 

greetings

kaetzer

Edited by kaetzer
Posted

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

Posted

woohoo :laugh:

 

everything works fine now, thanks a lot for the help

 

man, i love this forum^^ mostly replys come that fast :biggrin:

Posted

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 XP

everything 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?

Posted

thanks a lot

 

seems to work now, but i will keep an eye on it... because of "seems"

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...