Deafrunner Posted January 27, 2016 Posted January 27, 2016 (edited) I was originally going to make a mod for new starter zones for each race. but then I figured I would need to script those zones to work with the story. which could be insanely hard. So I thought I would try and make an action bar mod instead. Something like a ui where you can press hotkeys to equip and then cast spells.maybe something where you could equip them to the slot. I am very new to scripting with skyrim. In fact I just made my first armor and weapon mod. So I'm really new to all of it actually. I was wondering if someone could give me pointers on how to attach a script to players so when you get online you have a ui at the bottom of your screen. so I can start working on a hud for the action bar. Any tips otherwise are welcome.I would love to get help with this if anyone is willing to help :smile: EDIT: I just realized skyrim uses flash ... I am actually very familure with actionscript ...Where can I find how to assign spells to a action? Edited January 28, 2016 by Deafrunner
IsharaMeradin Posted January 28, 2016 Posted January 28, 2016 Assigning a script to run on the player is fairly easy. Create a new quest recordCreate a new reference alias that points to the player actorAdd script to the player reference alias ******************************************Closest thing I can think of to figure out how to assign a spell or other item to something in the UI system would be to look at the quick list features. However, that only lets you equip rather than cast.
Deafrunner Posted January 28, 2016 Author Posted January 28, 2016 thanx soo much. I think you replied to my other post.So thank you again :)
erratichippo Posted January 29, 2016 Posted January 29, 2016 Never tried to make a UI, dont know whats involved in that process. There is a mod that already does what you are trying to do.http://www.nexusmods.com/skyrim/mods/43123/? You dont need to use a player alias to accomplish what you want. I am pretty sure you can just write a script to cast a spell on the player then attach that script to an object that the player can equip. Your script would look something like this. Event OnEquipped(Actor akActor)Yourspell.cast(Sourceofspell, Targetofspell)endEvent If the player is equipping the item then akActor will be the player. You can then add the player as the target or the source of the spell. Depending on what you want to do. Dont forget to add a line up unequip the item if you want to cast it again. To get the effect you want you could hotkey the item to the existing hotkeys in the game.
Recommended Posts