Jump to content

Script on a custom weapon with an additional spell


larrytmc

Recommended Posts

I am trying to make a gunlance

So I need to learn how to script a weapon so it can fire simple magic(later on, projectiles) while equipped

 

I have never written any script before and my knowledge of it is zero.

 

 

I believe that these are the script that I need:

 

Something that check if the player has that item equipped

Something that tell the program what button initiate the magic (IE, pressing the G key)

 

I looked at some other people's script, and dig out something that might be useful

 

Here is what I come up with

 

It is going to start like this

 

scn [script name]

[variables]

 

begin OnEquip player

if player.isKeyPressed2 G(I am not sure what I need here)

[weapon name].cast [spell name]

 

Is it just that simple?

 

and by the way this is what I am trying to make...

http://img690.imageshack.us/img690/9130/speara.jpg

Link to comment
Share on other sites

  • Recently Browsing   0 members

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