Jump to content
⚠ Known Issue: Media on User Profiles ×

Scripts18

Members
  • Posts

    57
  • Joined

  • Last visited

Nexus Mods Profile

About Scripts18

Scripts18's Achievements

Enthusiast

Enthusiast (6/14)

  • First Post
  • Collaborator Rare
  • Conversation Starter
  • Week One Done
  • One Month Later

Recent Badges

0

Reputation

  1. Ya looks high poly, hw many does it have?
  2. Maybe but once the get it done, its gonna be so awesome
  3. Go check morroblivion web site lol, they are or want to port their mod to skyrim
  4. So basicly you cast a spell and the npc does an animation?
  5. The OnDeath event doesnt work since its a objectreference script any one can help me on this? ScriptName LevelingUpWeapon extends ObjectReference int property xp auto ObjectReference property LevelingUpWeapon01 auto ObjectReference property LevelingUpWeapon02 auto ObjectReference property LevelingUpWeapon03 auto Event OnEquipped(Actor AkActor ) If akActor == Game.GetPlayer() if (xp < 10) Debug.notification("Level 1 Up Weapon Was Equiped") elseif (xp >= 10) && (xp <25) Debug.notification("Level 2 Up Weapon Was Equiped") elseif (25 <= xp) Debug.notification("Level 3 Up Weapon Was Equiped") endIf EndIf EndEvent Event OnDeath(Actor akKiller) If (akKiller == game.getplayer()) Debug.Notification("You Killed An Enemy") Debug.notification("Your Weapon Gained 1 xp") xp += 1 if xp < 10 Game.GetPlayer().RemoveItem(LevelingUpWeapon01,1,true) Game.GetPlayer().AddItem(LevelingUpWeapon02,1,true) Game.GetPlayer().EquipItem(LevelingUpWeapon02,false,true) elseif xp >= 25 Game.GetPlayer().RemoveItem(LevelingUpWeapon02,1,true) Game.GetPlayer().AddItem(LevelingUpWeapon03,1,true) Game.GetPlayer().EquipItem(LevelingUpWeapon03,false,true) endif Endif EndEvent Event OnUnEquipped(Actor AkActor ) If akActor == Game.GetPlayer() if (xp < 10) Debug.notification("Level 1 Up Weapon Was UnEquiped") elseif (xp >= 10) && (xp <25) Debug.notification("Level 2 Up Weapon Was UnEquiped") elseif (25 <= xp) Debug.notification("Level 3 Up Weapon Was UnEquiped") endIf EndIf EndEvent
  6. I found better than that ScriptName LevelingUpWeapon extends ObjectReference int property xp auto Event OnObjectEquipped( Form Weapon, ObjectReference akReference ) Debug.notification("Leveling Up Weapon Was Equiped") EndEvent Event OnDeath(Actor akKiller) If Game.GetPlayer().getEquippedWeapon() == LevelinUpWeapon If (akKiller == game.getplayer()) Debug.Notification("You Killed An Enemy") Debug.notification("Your Weapon Gained 1 xp") xp += 1 Endif Endif EndEvent Event OnObjectUnEquipped( Form Weapon, ObjectReference akReference ) Debug.notification("Leveling Up Weapon Was UnEquiped") EndEvent
  7. Actually that line didnt give me errors it is something with the x.getkiller and some other stuff , I continued working on my version and I have only 1 problem now ScriptName LevelingUpWeapon extends ObjectReference int property xp auto Event OnObjectEquipped( Form Weapon, ObjectReference akReference ) If game.getplayer().IsInCombat() == True Actor x = Game.GetPlayer().GetCombatTarget() Debug.notification("You Are In Combat With " + x + ".") Endif EndEvent Event OnDeath(Actor akKiller) If (akKiller == game.getplayer()) Debug.Notification("You Killed An Enemy") Debug.notification("Your Weapon Gained 1 xp") xp += 1 Endif EndEvent If I use the OnDeaht Event I cant find out who was the npc killed.... and I dont know how to combine those 2 events into 1 (must have the weapon equiped and kill somebody with it to get the xp) Nvm for the event thingy I found out how to
  8. I get some other errors now, I think I will go back at doing some tutorials
  9. x = game.getplayer() .getcombattarget() <------------------------ the = gives this error : no viable alternative input '=' Also @ mansh ... I know will probably put loops , but wanted to test it how it was right now
  10. Im using notepad++ heres what I was getting xp undefined heres how I fixed it int xp = 0 and also fixed the x = stuff now its ok
  11. Just cant understand how to do math and compare stuff with papyrus scripting :s Take a look at this .... and theres probably errors ScriptName LevelingUpWeapon extends ObjectReference Event OnObjectEquipped( Form Weapon, ObjectReference akReference ) <----------------- Note: akReference gonna be something else later (This note isnt in the script its just so you can understand a bit more) xp = 0 If Game.getplayer().IsInCombat() == true x = game.getplayer().getcombattarget() Debug.notification("You Are In Combat With" + x) if x.getkiller() == game.getplayer() Debug.Notification("You Killed An Ennemy") Debug.notification("Your Weapon Gained 1 xp") xp + 1 endif EndIf EndEvent
  12. Nvm noticed my error, took the papyrus compile instead os scriptcompile (in the run command)
  13. My game is installed on another hardrive (D:\) and doesnt start with programfiles(x86) but by steam\ , cant manage to get the scritps to compile :S http://www.creationkit.com/Notepad%2B%2B_Setup
  14. Oh nice thx a lot, time to do something cool XD 1 more thing : how do I know if it compiled?
  15. Never did scripts for any bethesda games any one can tell me where the scripts are and maybe show me some tutorials? would really appreciate it
×
×
  • Create New...