Script Calls

Started by fjurio, November 24, 2010, 12:50:30 pm

Previous topic - Next topic

fjurio

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.

stripe103

- 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

fjurio

November 24, 2010, 01:57:26 pm #2 Last Edit: November 24, 2010, 02:02:46 pm by fjurio
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"

stripe103

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%.

fjurio

Great. That´s exactly what was looking for. Thanks!  :haha:

Just the call for the movespeed are left.

stripe103

I'll see if I have time tomorrow. Then maybe I can figure it out. If no one beats me to it, that is.

fjurio

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. :/

ForeverZer0

Spoiler: ShowHide
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:
speed = SPEED

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.
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

fjurio

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?

ForeverZer0

I honestly have never known. What is it for? Anybody?
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

Blizzard

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.
Check out our game brands:

Daygames
Game Night Games
Chugnar Games

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.

fjurio

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.

fjurio

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?)?

ForeverZer0

Use
BlizzABS::Config::NORMAL_SPEED
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

fjurio

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?

ForeverZer0

NORMAL_SPEED is a constant.
Constants are, as the name implies, constant. They are not meant to be changed.
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

winkio

$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.

fjurio

Finaly its solved. Thank you a lot for the explanation and the help.  :D

fjurio

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.

ForeverZer0

You can simply use :
@event.x


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.
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.