Jump to content

Recommended Posts

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

Assigning a script to run on the player is fairly easy.

Create a new quest record

Create a new reference alias that points to the player actor

Add 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.

Posted

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.

  • Recently Browsing   0 members

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