Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Question about the Chest script


Megarude
 Share

Recommended Posts

Well I just copied and pasted one of the other .ini files and renamed it Chest.  However, the chest is not working… I couldn't find where to put it in my Main script so I copied and pasted the whole thing she gave us.  I only found Sub OnAttack(Index,Damage) but I didn't find SubOnAttack(Index).  Help? D;
Link to comment
Share on other sites

Okay I already made the file and put the information in, my chest still isn't working.  Also, in her tutorial she said to replace Sub OnAttack(Index) but I searched for it in the script Main and all I found was SubOnAttack(Index,Damage) but I figured that needed to stay there so I just copied and pasted the whole code somewhere else.  Still, it's not working.  Any suggestions?
Link to comment
Share on other sites

My suggestion, would be to get the basics of sadscript down pat; it's like I said to another user earlier today:

> [A] basic understanding of scripting is required (actually, to make a **successful** game, an advanced knowledge of scripting is recommended); it took me about two days to learn scripting, and another week to be completely proficient in it (I even have where the spells level up and cause more dmg, EXP and all, for my game).
>
> Open up Notepad, grab a default main.txt with a blank install of Eclipse, and read tutorials to get the syntax down pat; you'll be facepalming yourself once you realize how simple the problems you are experiencing are, as well as you'll be able to solve your scripting problems more efficiently.
>
> Anyway, here are some tutorials; take the time to go though them all:
> http://www.touchofdeathforums.com/smf/index.php/topic,40682.0.html
> http://www.touchofdeathforums.com/smf/index.php/topic,40746.0.html
>
> http://www.touchofdeathforums.com/smf/index.php/topic,39867.0.html
> http://www.touchofdeathforums.com/smf/index.php/topic,42156.0.html
>
> And for all the scripting commands:
> http://www.touchofdeathforums.com/smf/index.php/topic,8502.0.html

With that being said, the tutorial you are reading is for an older version of Eclipse, hence an older version of the OnAttack sub; of course, the main.txt will crash if you have more than one OnAttack sub, which is a reason it's probably not working.

So still go and replace your OnAttack sub, but add the extra Damage parameter in with your new (if you call it that) version.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...