i´m looking for a list of "Script Calls" (command in the event...) for the rpg maker xp.
at the moment i need script calls that:
- change players movespeed, equipment, item, state, parameters and skills
- change enemys speed (Blizz Abs)
- change position, zoom and opacity of pictures
i had something in mind like the "script referenc" in the "babs-user manual" but with additional calls for the standard maker script.
ps: the calls should be compatible with the babs.
i hope i got it across.
- change players movespeed,equipment, item, state, parameters and skills
and
- change position, zoom and opacity of pictures
You can do all that with normal events. You don't need script calls for that.
For the player move speed, use the Move Route command. Equipment, items and skills all have a special command.
State and parameters I'm unsure. Don't have RMXP on this PC so I can't check.
For changing the pictures, just use the Move Picture event command
i know that but i need this as a call script for make this changes based on variables. an example: movespeed + 1
also i need the call script commands in the combo system of the babs
edit: if it is to much work, the most importen call script command for me is "movespeed for the player" and "zoom, position and opacity of a picture"
Then I'm sorry, but I can't help you with that.. :(
But I can help you with the script call to change images.
$game_screen.pictures[picture_id].move(duration in frames, origin, x, y, zoom_x, zoom_y, opacity, blending)
origin can be 0 or 1. If it's 0, then ox and oy = 0. If it's 1 the ox and oy are equal to the half of the pictures width and height.
With
zoom_x and
zoom_y, 100.0 means 100%.
Great. That´s exactly what was looking for. Thanks! :haha:
Just the call for the movespeed are left.
I'll see if I have time tomorrow. Then maybe I can figure it out. If no one beats me to it, that is.
Thanks. :)
Just for addition. I allready tried the following calls. Non of them works:
$game_player.move_speed
$game_player.@move_speed
$game_character.move_speed
$game_character.@move_speed
and other crazy combinations
I also made a method in which i tried to set the variable @move_speed but the speed must be depended by something else.
Anyway. My knowlege about scripting is hardly limited. :/
class Interpreter
def speed=(speed)
@event.move_speed = speed
end
end
class Game_Character
attr_accessor :move_speed # Not sure if his needed, check if it already exists first
end
In a script call, just type this:
It will change the move speed of the event it is called from.
I haven't tested this it all, just see if it works or not. I don't remember if Game_Character already has an accessor for move_speed or not. If it doesn't, this will also allow you to use the $game_player.move_speed = SPEED. If it does, likely none of this will work. Let me know, I can make this real quick sometime tonight if I mess around with RMXP.
Sorry, it doesn´t work. Even though there isn´t an accessor.
By the way. What is the [Level++] and [Level--] for? Is this something like a reward for someone who helped me?
I honestly have never known. What is it for? Anybody?
You can level people up or down if you have at least 10 posts. You can pretty much use it as you please, but people usually use it for rewarding for help, etc. since it is some kind of reputation system. I personally give it out for well done work or being really helpful to others or posting something hilarious. But you shouldn't get too much into it, it's not good if people start caring about it too much because it can cause problems.
Ok, thanks for the explanation. I think its a good idea.
@ ForeverZero: After all your suggestion works. But sadly not with the BlizzABS what im gonna to use.
Thanks for the help so far stripe103 and ForeverZer0. I hope you like your new level... :P
Just one point is left. What should i do to chance "NORMAL_SPEED" in the blizz-abs with a call script? Should i make a accessor and how can i call the variable ($BlizzABS.NORMAL_SPEED?)?
Use
BlizzABS::Config::NORMAL_SPEED
Wow, quick reply.
This works just fine. But sadly again, it doesn´t change the speed ingame even if the NORMAL_SPEED is changed. But if i change NORMAL_SPEED before i run the game the speed is change.
So i think the BlizzABS::Config need a refresh after changing NORMAL_SPEED. How can i call this?
NORMAL_SPEED is a constant.
Constants are, as the name implies, constant. They are not meant to be changed.
$game_player.normal_speed should work just for the player character. You would have to loop through every character in the party to do it for the whole party.
Finaly its solved. Thank you a lot for the explanation and the help. :D
I have a new question about script call commands.
I get with "$game_map.events[ID].x" the x-position of the event with the ID in the brackets.
I don´t want to use the ID the whole time so i´m looking for something like that: "$game_map.events[SELF].x"
I´m pretty sure there is somethink like that, but i can´t find it.
You can simply use :
The @event variable is in the interpreter where the script call is evaluated, so it will not throw a NoMethod error. This way will only work for the event that the script call is in.
Quote from: ForeverZer0 on December 08, 2010, 12:07:08 pm
The @event variable is in the interpreter where the script call is evaluated, so it will not throw a NoMethod error. This way will only work for the event that the script call is in.
That´s exactly what i want. Thanks. :)
Edit: But it doesn´t work. Maybe i missunderstood you. This way only works for the event that is using this script call. Right?
I may be wrong about @event. Look in the Interpreter (part 1), and look for an instance variable in the intialize or setup method that defines either "@event" or "@event_id". I can't remember off the top of my head which one it is. If it is "@event_id", use this script call to reference the event:
$game_map.events[@event_id]
or if is "@event", try:
$game_map.events[@event.id]
I can't see why that wouldn't work, unless it is something to do with BABS that I'm unaware of.
The first one works. It works as well with the BABS.
Thanks. :)
Oh dear, i need another call script or something similar.
How can i disable the arrow buttons?
In the blizz-abs settings there are an option called like "Disable RMXP Controls" or "Disable default controls. Set that to true.
Sorry, by arrow buttons i mean the direction buttons. I wish to make it impossible to move for the player like the command in the combo settings "freeze input" it do.