Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

New Variable issue (I hope)

Ok this issue has been plaguing me for the past 2 days. (I am using RPGMVX by the way) I have been trying a few things now to get this to work... let me post the event I am working with up first... Take note.. The event is set to trigger when the switch [0001:collect stingers] is on (this is the quest switch that is used to activate a couple of other things that work.... (unimportant information I know sorry sorry.) And the self switch B is on. only then will this event activate... and thus far its working in that regard no problem. (hopefully you don't need me to type the full event... I am just isolating the part that I am seeing as the problem. OH OH and one more thing... I have installed the fix script (least far as I know.... this is the only error I am getting now... and I have no idea why.

Code:
@>Control Variables: [0004:Stinger Count] = [Stinger] in Inventory

@>Text

@>Conditional Branch: Variable [0004:Stinger Count] >= 10

  @>Conditional Branch: Variable [0001:Male/Female] ==1

: Else

  @>conditional Branch: Variable [0001:Male/Female] == 1

ok to explain what I did with this... I know exactly where the problem is.. I just don't know where to fix it. (happens to be in line three there of my event)
From what I can see, the first line sets the variable [stinger count] to the number in my inventory... in this case... 10 (I have tried it with more than 10 and all with the same result).

From there the text works which means that thus far the flow of the event is un-broken. Which brings us to the 3rd part of the event.

I am using this conditional branch to specify that you need to have 10 or more stingers in your inventory, and it pulls this information by taking the variable [0004:Stinger Count] and seeing if the value is 10 or more. If it grabs less than 10 it boots to the else.

I have tested this extensivly... I have shown up with 1-9 stingers and I always get brough to the else, with no problems. Hell when I changed the requirement from "greater than or equal" to just flat out "Equal" I was able to go to the else as soon as I got 11 or more stingers.

every time I meet the conditions for the condition branch the event just stops, as if a branch end happens.
I have tried adjusting the total needed to more than 10 and less than 10 and its all the same... it always ends the event as soon as you qualify for the first branch.

I think I might have made a problem for people to understand whats happening by refering to this as a script issue... I am seeing it as an actual Event issue, not sure if that will help anyone.

As mentioned before, having an event set on auto-run earlier was actually freezing the game. And I am willing to make that sacrifice (even though I would like to know how to accomplish an on the fly quest update as I was originally intending) I just want to get this to work... Any suggestions now that there is more information on the problem?
 
Could you please post a picture of this event instead? What you're showing up there makes no sense by itself. (If you're unsure how to do this, press your Print Screen button, paste it into Paint, save it, and then post it on a site like Photobucket).

Also, please try to post rephrase your problem into one little paragraph. Your explanation there is overly wordy and I have a hard time following what you're saying.
 
ok.. I will remember how to get photo's of the problems next time..
This time however... figured out what was wrong.

The part in th event that followed the variable request was a variable set to determine sex... it turns out that I didn't put a female version of the event yet....

Thus... everything died every time... I played through as a male and it worked just fine...

Problem solved... sorry to waste your time on that.

But thanks for explaining how to get more information out to the community when I hit my next snag.


*problem is now solved*
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top