[XP] Easy Overdrive System

Started by Blizzard, March 07, 2009, 09:54:55 am

Previous topic - Next topic

mongoosezxc

February 09, 2011, 07:39:48 pm #60 Last Edit: February 09, 2011, 07:44:59 pm by mongoosezxc
so I the first script a seperate script page in the script editor

and then put the second script in an event using the "script" command (third tab of options) at the very beggining of the game?

and what does parralell process even mean? I havn't used it before. Does the event have to activated by a switch at all?

Sorry, but i didn't fully understand ur first response...

Sacred Nym

You got the first part right.

As for the second, not quite. What you have to do is go to the second to last tab of the regular database (called Common Events) and in an empty event slot, add the second script in a call script. Set the trigger to Parallel Process (meaning it'll run in the background), set an activation switch (meaning it'll only run when the switch is turned on) and make sure that switch is turned on at the start of the game.
Quote昨日の自分に「さようなら」
Say "Goodbye" to who you were yesterday.

mongoosezxc

February 10, 2011, 05:59:41 pm #62 Last Edit: February 10, 2011, 06:11:13 pm by mongoosezxc
THANKS!
But why not just have the event run without needing a switch? (EDIT: because you literally cannot!) :wacko:

Oh, also, when I paste the first scipt below EOS and above MAIN it wont let me playtest becuz it says syntax error in line 1 of that script... :P

Blizzard

February 11, 2011, 02:17:39 am #63 Last Edit: February 11, 2011, 02:18:41 am by Blizzard
If this script is giving you syntax errors, you haven't set it up properly.

OVERDRIVE_SKILLS = [2, 3, 4]


You are supposed to separate skill IDs with commas, make sure of that.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

mongoosezxc

hmm....yes comma and then a space in between each
also I get syntax errorts wether it is all one line (past the edge I might add) or a new line.
Is there a special inention rule or something?

Blizzard

Well, you should end a line with a comma and begin it with the next number. That shouldn't give you a syntax error.

OVERDRIVE_SKILLS = [1, 2,
3,4,
5]


Spaces aren't actually necessary, but you will thank yourself later when you have to edit it.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

mongoosezxc

well, I'm at a loss. The script you have there and the one in my editor are identical.

Blizzard

And it gives you a syntax error at exactly that line? O_o
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

mongoosezxc

yup, syntax error for that script (which i called overdrive skills) and in line 1. The problem isnt that my name for the script is the same as the first words IN the script, is it :P :huh:

Blizzard

No, there shouldn't be a problem with that.
Upload your scripts.rxdata somewhere and post a link. I can take a quick look at it.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

mongoosezxc

February 11, 2011, 06:53:01 pm #70 Last Edit: February 11, 2011, 07:33:55 pm by mongoosezxc
are you talking about the file called scripts in the data folder of my game folder?
And thank you SO much for all your help...sorry for any incovenience, but man I want this to work!

Just realized that actual Overdrive script doesnt work either, quits out game when battle is initiated:


Script 'Overdrive' line 252: NoMethodError occurred.
   
undefined method `/' for nil:NilClass


thats the error message
it might be interesting to note that i could NEVER get ANY script to work with RMXP permanantly...even a simple caterpillar script messed up over time  :P i dont get it :???:

Blizzard

Eh...
Quote from: Blizzard on March 07, 2009, 09:54:55 am
Compatibility

99% compatible with SDK 1.x. 90% compatible with SDK 2.x. WILL corrupt your old savegames. Can cause incompatibilty issues with following scripts and/or systems:
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

mongoosezxc

i still dont know how to send you the scripts...but that probably wont help anyway

any other script similar to your overdrive one u may suggest?

Blizzard

Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.


Blizzard

But these are just the default scripts.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

mongoosezxc

ya im sorry i forgot i deleted the two add ons becuz i wanted to playtest a dungeon :roll:

here it is with the scripts:

http://www.sendspace.com/file/vol66c

sry about that :^_^':

Blizzard

No, the file still looks like the default file. Did you save the project before you uploaded the file?
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.


tanzen

hi, well first i like your system easy  to config :D but i'v a lil' problem xD
for my game i did a job-change system ( not a script just with many many hero + class) and my problem is that when i config the hero with the overdrive bar, ( yup they got it) but only the first hero of my party gain acces to the overdrive option while a fight.


the part where i did my change:



OVERDRIVE_RATE = 1000
  DRAW_OVERDRIVE = true
  DRAW_OVERDRIVE_BAR = true
  OVERDRIVE_ENABLED = [13, 14, 15, 16, 18, 19,20 ,21, 23, 24, 25, 26, 28, 29, 30, 31,
   33, 34, 35, 36, 38, 39, 40, 41, 43, 44, 45, 46, 48, 49, 50, 51, 53, 54, 55, 56,
   58, 59, 60, 61, 63, 64, 65, 66, 68, 69, 70, 71, 73, 74, 75, 76, 78, 79, 80, 81,
   83, 84, 85, 86, 88, 89, 90, 91, 93, 94, 95, 96]
  OVERDRIVE_USERS = [13]#, 14, 15, 16, 18, 19,20 ,21, 23, 24, 25, 26, 28, 29, 30, 31,
#33, 34, 35, 36, 38, 39, 40, 41, 43, 44, 45, 46, 48, 49, 50, 51, 53, 54, 55, 56,
#58, 59, 60, 61, 63, 64, 65, 66, 68, 69, 70, 71, 73, 74, 75, 76, 78, 79, 80, 81,
#83, 84, 85, 86, 88, 89, 90, 91, 93, 94, 95, 96]
  OVERDRIVE_NAME = 'OD'
  OVERDRIVE_COMMAND_NAME = 'Overdrive'
  OVERDRIVE_COLOR = Color.new(0, 128, 255)
  RTAB_ACTIVE = false


if i did something wrong if the script isn't done for too many  hero, i dunno cuz i haven't any syntax error message when i launch

(i'm maybe chaotic when i try to explain my prob, sry for that ^^')