Search the Community
Showing results for tags 'scripthelp'.
-
Hello, just a quick request for some Oblivion script help. Basically, I've created a new sword, and I have it so that when the player equips it, he gets a lesser power added to his spellbook, and when the sword is unequipped, the lesser power is removed. However, my issue is that this only happens when the *player* equips the sword, and I want the spell to be available for NPCs to use as well. This is what I've got so far... scn AAFangBladeScript begin OnEquip playerplayer.addspell 0FangAbilitiesAplayer.addspell 0FangAbilitiesBplayer.addspell 0FangAbilitiesC end begin OnUnequip playerplayer.removespell 0FangAbilitiesAplayer.removespell 0FangAbilitiesBplayer.removespell 0FangAbilitiesC end Obviously, the issue is that the script is specifically targetted at the player, since it's "player.script" But how am I supposed to make it so that the script activates on a variable target? (Hopefully that makes sense) Any help is greatly appreciated, thanks in advance!
-
THIS SCRIPT WAS SENT TO ME AND I DONT KNOW MUCH ABOUT SCRIPTING TO FIX ISSUE SOMETHING IS WRONG WITH IT WONT COMPILE.... ITS POST BE A SCRIPT TO TELEPORT U TO A CELL AND LEAVE A MARKER SO YOU CAN TELEPORT BACK TO WHERE U CAST IT LAST BUT ITS NOT WORKING SO U KNOW WHATS WRONG WITH IT??? Actor Property Player Auto ObjectReference Property ReturnMarker Auto ObjectReference Property DestinationMarker Auto VisualEffect Property FX Auto Location Property Home Auto ;Teleportation script for the spell Event OnEffectStart(Actor AkTarget, Actor AkCaster) if AkCaster == Player if Player.GetInCurrentLoc(Home) == 0 ReturnMarker.MoveTo(Player) FX.Play(Player) Utility.Wait(1.0) Game.EnableFastTravel() Game.FastTravel(DestinationMarker) Utility.Wait(3.0) FX.Stop(Player) endif endif if Player.GetInCurrentLoc(Home) == 1 Debug.Notification("I'm already home.") endif EndEvent ALSO THIS WAS THE RETURN SCRIPT THAT CAME WITH IT.. I KINDA WANNA CHANGE IT TO SPELL DNT KNOW HOW Actor Property Player Auto ObjectReference Property ReturnMarker Auto VisualEffect Property FX Auto ;Return script for the door Event OnActivate(ObjectReference AkActionRef) if AkActionRef == Player FX.Play(Player) Utility.Wait(1.0) Game.EnableFastTravel() Game.FastTravel(ReturnMarker) Utility.Wait(3.0) FX.Stop(Player) endif EndEvent
-
So I recently installed the mods "Balanced Item Level Scaling" and "Better stats for Temerian and Nilfgaardian and Undvik and HoS Viper and Order of the Flaming Rose armors and swords and New Moon armors". I loaded the game with no issues but didn't really feel the need for the balancing mod because I have "Grindstone And Workbench Level Up Items" installed so I uninstalled it and got these errors (Error [mod0000_mergedfiles]game\player\r4player.ws(724): I dont know any 'ArdCloakBound' Error [mod0000_mergedfiles]game\player\r4player.ws(725): I dont know any 'ArdCloakBound'). If anyone knows how to fix this I'd really appreciate the help.
- 1 reply
-
- scripthelp
- script bug
-
(and 1 more)
Tagged with:
