Zelaron Gaming Forum  
Stats Arcade Portal Forum FAQ Community Calendar Today's Posts Search
Go Back   Zelaron Gaming Forum > Zelaron Gaming > RPGMaker

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next

 
"Event script referenced an item which does not exist"
Reply
Posted 2005-05-04, 02:03 PM
Thanks for taking the time to read my post. First, let me say that I am a skilled event scripter, and I have managed to perform many tasks with RPGm2k3 which were not originally intended.
However, I am having trouble with the following:

I have written a script for a battle command, set to "Link to Event". The command is labeled "Run", and I used it instead of the default "Escape" command, because I need to make it so that you cannot escape from certain random monster groups.

However, whenever a different command is selected, but not executed (for example, if I select "Fight", but cancel before choosing a monster, or select "Item", but cancel before selecting one), and then select "Run", the game crashes and gives me the following error:
"Event script referenced an item that does not exist."

This occurs both in game, and in Battle Test mode. My item Array size is set to 300.
Does anyone know how to solve this problem? All I need is for certain random encounters to be "escape-proof."


For your info, here's a sample of what this Event code looks like. This one is taken from a battle with 3 "imps". (The "Dummys" are invisible throughout the battle, and are present so that this command works):

<>Variable Oper: [0071:Run Command] Set, Var [0068]'s Value
<>Variable Oper: [0071:Run Command] *, Rnd [1-8]
<>Variable Oper: [0072:Monster Level] Set, 1:IMP Max HP
<>Variable Oper: [0072:Monster Level] +, 2:IMP Max HP
<>Variable Oper: [0072:Monster Level] +, 3:IMP Max HP
<>Variable Oper: [0072:Monster Level] +, 4:(Dummy) Max HP
<>Variable Oper: [0072:Monster Level] +, 5:(Dummy) Max HP
<>Variable Oper: [0072:Monster Level] +, 6:(Dummy) Max HP
<>Variable Oper: [0072:Monster Level] +, 7:(Dummy) Max HP
<>Variable Oper: [0072:Monster Level] +, 8:(Dummy) Max HP
<>Variable Oper: [0072:Monster Level] /, 8
<>Branch if Var [0071:Run Command] is V[0072] or more
_<>Force Flee: Entire Party
_<>
_:Else Handler
_<>Message: Can't Run!
_<>
:End
<>


*NOTE: Var[0068] represents the party's current average level, unless the "FEAR" skill is used, in which 15 is added to this number.

Last edited by mihalis; 2005-05-04 at 02:42 PM. Reason: title change (i hope it works)
Old
Profile PM WWW Search
mihalis is neither ape nor machine; has so far settled for the in-betweenmihalis is neither ape nor machine; has so far settled for the in-between
 
mihalis
 



 

Bookmarks

« Previous Thread | Next Thread »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules [Forum Rules]
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 12:12 PM.
'Synthesis 2' vBulletin 3.x styles and 'x79' derivative
by WetWired the Unbound and Chruser
Copyright ©2002-2008 zelaron.com
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
This site is best seen with your eyes open.