Jump to content

ingestible (script) effect help


kaetzer

Recommended Posts

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

 

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
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

  • Recently Browsing   0 members

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