[XP] Tons of Add-ons

Started by Blizzard, January 09, 2008, 08:50:47 am

Previous topic - Next topic

AerteK

Hey umm idk if i am doing something wrong or what but when i enable caterpillar in the game then try to disable it ingame all the buttons stop working like i cant walk or call up any menues or anything? :S could some one plz help me on this?  :) thx

Blizzard

Don't use this:

command = true/false


Use this instead:

command =
true/false


RMXP has a problem with one-line false assignments of variables in script calls.

@DarkOsprey: It should work with the message box if you're not using a custom message system that has it's own font handling.
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.

AerteK

THX, lol i would never have figuered that out myself

DarkOsprey

Quote from: Blizzard on January 28, 2010, 05:50:21 am
Don't use this:

command = true/false


Use this instead:

command =
true/false


RMXP has a problem with one-line false assignments of variables in script calls.

@DarkOsprey: It should work with the message box if you're not using a custom message system that has it's own font handling.


I'm not using a custom message system as far as I know, maybe I'm just setting it up incorrectly. Would you be able to tell me the correct way to set it up so it changes the message? I'd really appreciate it. :D

Blizzard

Actually this should already set it up. Are you sure you set it up right? You need to change the default ones in the script and you need to change $fontface/$defaultfonttype and $fontsize/$defaultfontsize in your main script if you are having problems. That should basically do 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.

AerteK

hey umm would it be possible to use ur key mapping part of the tons script to mace it so when i hit a certain key it will turn on and off the HUD or vice versa with catterpiller?

Blizzard

Sure. Just make a event branch condition with a script (4th tab in the condition selection window) like this:

Input.trigger?(Input::Key['T'])


You can use this piece of code for triggering:

$game_system.HUD =
!$game_system.HUD


and

$game_system.CATERPILLAR =
!$game_system.CATERPILLAR


Best you put all of this in a parallel process common event with a switch condition. Then you can disable those button controls by simply turning of the switch.
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.

Dudeidu

Idont know why but the add-ons are having an error :(
After ihave putted the add-on scripts the normal ABS script is having a problem:



Idont know whats wrong  :wacko: idid everything right! :'(

Please help me! (btw: thats the greatest ABS ever! :D)

Thanks alot, Ariel.

Landith

http://forum.chaos-project.com/index.php/topic,23.0.html
Make sure it's in the right order and make sure you configured it right

objectionlogic

February 06, 2010, 08:24:57 pm #609 Last Edit: February 06, 2010, 08:30:10 pm by objectionlogic
I'm getting a really, really weird error with this script. Otherwise it's insanely amazing.
All the add-ons I'm using work fine, however when I hit F12 to reset, it gives me the following error on line 1285...

Script 'Add-On 2' line 1285: SystemStackError occurred.
stack level too deep

See, I'm not even using the add-on on 1285. (it's the font adjuster) Again, it only happens when I reset with F12 so it's not fatal, but it's just weird and mildly annoying in playtesting. Anyone have any idea what might be causing it?



And on another note, I'm having trouble geting the Revenge skill to work. Whenever I use the skill associated with it, it always, always missed the target. Could someone help me with that possibly? Thanks.

Ryex

this is the classic F12 error known to almost every scripter. the fix is simple

create a new script at the top of the editor and paste this code into it


#==============================================================================
# F12 fix
#==============================================================================

if $game_exists
  Thread.new {system('Game')}
  exit
end

$game_exists = true

I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.<br /><br />DropBox, the best free file syncing service there is.<br />

objectionlogic

Ah thank you muchly. I'm not that well versed in scripting. Didn't know it was that easy, haha. But yeah thanks, I owe you one.

Now has anyone seen the problem with the Revenge skill missing all the time? Is there a certain setup I have to give it in the database?

Blizzard

If you set the power of a skill to 0, it will keep missing. Just set it to 1 or something.
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.

Temporal_Illusion

Hey, first of all I'd like to thank the scripters that worked on this great collection; fantastic work everyone  :)

Although I'm having a little bit of difficulty getting two of the scripts to work with each other and was hoping someone could help me out, or at least point me in the right direction.

Basically what I'm trying to do is have all magic spells in the game learned by using scrolls, I'm using "Skill Teaching Item" by game_guy to do this, and it works fine... BUT, I also want to make sure that only certain characters can use these scrolls, so I tried using "Actor-specific Item Usability" by Fantasist to prevent certain characters from using the scrolls; I've used this script before and it works fine on normal items (potions etc.) but it doesn't seem to work on any item that's been set up to teach a skill with the first script.

eg. (hypothetical for testing purposes) I set up character 1 to be unable to use potions, this works fine. but if I modify "potion" so that it teaches "cure", suddenly character 1 is able to use potions! The normal healing effect of the potion is not activated, however the potion is still consumed and the skill is still learned.  :^_^':

If anyone knows of a way to get these 2 scripts working together, or knows of another script that allows for class or character specific item based skill learning I'd really appreciate the help.

Blizzard

It should actually work. Make sure you set up the items properly in the script and in the RMXP database.
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.

Temporal_Illusion

Quote from: Blizzard on February 11, 2010, 02:23:43 am
It should actually work. Make sure you set up the items properly in the script and in the RMXP database.


I was wracking my brain for hours trying to see if I'd made any mistakes here, but in the end it turns out me problem was something totally different; it seems that the actor specific item usability was being overridden my the skill teaching item script due to the order they were in.

I was able to solve the problem by cutting the actor specific item usability script and pasting it below the skill teaching item script (I probably should have thought of that earlier XD)

Just thought I'd share that incase anyone else has simmilar issues.

Blizzard

Oh lol! You should check your script order in any case.
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.

objectionlogic

March 07, 2010, 01:43:09 am #617 Last Edit: March 07, 2010, 01:51:37 am by objectionlogic
I hate to constantly coming back asking for help, but I'm having troule getting Game Guy's 'Skill-Teching Item' script. I know one brought it up a few posts ago, so I figure why not.

In the comments it says to make a new element named Skill Item, then says "change the 17 below in the module to the id
of the element you just made."

I'm not sure if  I'm reading it wrong or theres a typo in the script, since in Game Guy's original version of it, there was a class called ElementID or something that was set to 17 default and there's nothing like that in this version. But either way, I can't get the items to work now since I couldn't figure out where to place the element's ID in the script. Would anyone be able to help me out quick?

Blizzard

I think that I removed the element ID when I reviewed his script since it was unnecessary. Best is you make a small demo and G_G takes a 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.

objectionlogic

Ah, never mind. After a day or so of fiddling around with my other scripts I was able to get it working. Thanks though!