Then tell us what your goal is instead of only how you plan to achieve it - there might be easier solutions.
Script Call Support Boards
RPG Maker VXAce SupportI'm considering that actually, but I haven't been able to test it out yet. I'm thinking of storing the damage formula within a variable, then using that variable within a script call via common event to alter the value with an additional formula. I do foresee potential complications with this though. It's also bit too messy for my tastes. I've also considered using a state in combination with a stacking states script, but that would probably cause memory issues as the state would need to stack many times.
I didn't want to get off-topic. If there was a simple script call the problem would be solved(maybe). Since that isn't the case, I probably will have to go into greater detail. This doesn't seem like the correct forum for that though.
To sum things up, I wanted to make alterations to the SP-Parameters based on the amount of damage dealt to the enemy. Aggression based skills would increase the value further. The goal is a system in which the defensive characters have to manage enemy aggression against high damage characters. Despite its limitations, I tried working with the default TGR feature, but I may have to resort to an enemy ai script instead.
I'll start a topic on it if further tests fail to provide a solution.
Hello, would you share the Scriptcall for the Eventcommand get Location Info?
Specialy TileID.
I want to get the TileID of a Map Tile that is not on the Curent Map. Wanted to Test if its possible with the standard Scriptcall.
Would be usefull for 1 or more Event mechanics iam toying with.
Specialy TileID.
I want to get the TileID of a Map Tile that is not on the Curent Map. Wanted to Test if its possible with the standard Scriptcall.
Would be usefull for 1 or more Event mechanics iam toying with.
@Bex: That is not easy, because only the current map exists in memory.
You would have to open and read the mapfile into a placeholder to even access data from another map than the current map.
And that means it cannot be done by a simple script call, it needs a full script.
The script call can only access the current map.
You would have to open and read the mapfile into a placeholder to even access data from another map than the current map.
And that means it cannot be done by a simple script call, it needs a full script.
The script call can only access the current map.
Edit:
@Bex: As Andar said, you'd have to load the map from its file first:
map = load_data("Data/Map001.rvdata2")
variable = map.data[x, y, z]
Replace variable by $game_variables[14] or the variable you want to store the tile ID in.
Replace x, y by the map coordinates and z by the layer index (0 => lowest layer to 2 => upper layer)
The execution comes with some overhead since you actually have to load the entire map from a file to access the map data.
@Bex: As Andar said, you'd have to load the map from its file first:
map = load_data("Data/Map001.rvdata2")
variable = map.data[x, y, z]
Replace variable by $game_variables[14] or the variable you want to store the tile ID in.
Replace x, y by the map coordinates and z by the layer index (0 => lowest layer to 2 => upper layer)
The execution comes with some overhead since you actually have to load the entire map from a file to access the map data.
Thank you very much, it works.
And aslong it causes no Bugs its all ok.
Edit:
Thought that this is also a Scriptcall/Scriptequivalent, cause its used within the Eventcommand Script without extra Script in Scriptinterpretor needed?
And aslong it causes no Bugs its all ok.
Edit:
Thought that this is also a Scriptcall/Scriptequivalent, cause its used within the Eventcommand Script without extra Script in Scriptinterpretor needed?
Hi, i was just wondering if anyone could tell me how to Script call this event correctly. (like where to place it, the syntax..etc.)
Here's the link to the post, I'm trying to do the exact same thing the OP in the link is. ( Put a light on meh fireballs :3 )
The user KilloZapit in that post, posts a full add on, 2nd post from bottom. That's the script I'm using with Khas and Xas, just like the OP is.
http://www.rpgmakerv...-on-a-fireball/
Here's the link to the post, I'm trying to do the exact same thing the OP in the link is. ( Put a light on meh fireballs :3 )
The user KilloZapit in that post, posts a full add on, 2nd post from bottom. That's the script I'm using with Khas and Xas, just like the OP is.
http://www.rpgmakerv...-on-a-fireball/
FIgured it out, if anyone else is using Xas ABs and Khas light effects With the add on in the link above, just put this in the main event of your fireball
Comment: [dlight 2] #can change this to 0,1,2,3 etc...
Script:l = $game_map.lantern
: : l.change_owner($game_map.events[8]) <------this number needs to be the id number of the fireball event
: :h = {2=>"ld",4=>"ll",6=>"lr",8=>"lu"}
: :l.set_multiple_graphics(h)
: :l.set_opacity(255,0)
: :l.show
Rhayne, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.
You are asking how to use a custom script, not how to use a script call to do something that is normally done with event commands. This question belongs in its own thread in RGSSx Script Support. Please be sure you are posting in the right place next time. Thank you.
You are asking how to use a custom script, not how to use a script call to do something that is normally done with event commands. This question belongs in its own thread in RGSSx Script Support. Please be sure you are posting in the right place next time. Thank you.
You got it Shaz 🙂
Is there a script call for acquiring the mouse location in the window?
Since RPGM has no mouse functions, no there is none.
If you're using a script to add mouse function - ask the script creator, but this topic is only for default functions.
Is there a script call to fade-out SE? I have seen script calls for BGM/BGS/ME (from here), but SE only has an immediate halt script call. There are cases when the SE can get to be more than a second or two long and may need to get faded for a smoother transition.
No. You would need to have a custom script written. SEs usually are very short anyway so no time to fade out. Search to see if one exists.
I think this specific problem hasnt been addressed yet
I am trying to make a loading screen while the game creates the data it needs. Currently, I have an autoevent like this:
Script: myObject.myfunctionin the scripts i have:
class myObject def myfunction $game_message.face_index = 0 $game_message.background = 2 $game_message.position = 1 $game_message.add(" loading...\\^ ") #a bunch of stuff happens endendhowever, the loading message is not shown until the "bunch of stuff" ends.
is there a way to "force" the game to display the message at a given time?
I am trying to make a loading screen while the game creates the data it needs. Currently, I have an autoevent like this:
Script: myObject.myfunctionin the scripts i have:
class myObject def myfunction $game_message.face_index = 0 $game_message.background = 2 $game_message.position = 1 $game_message.add(" loading...\\^ ") #a bunch of stuff happens endendhowever, the loading message is not shown until the "bunch of stuff" ends.
is there a way to "force" the game to display the message at a given time?
Do you have a wait for message in there somewhere?
No, all the message-related scripts are as shown
I have a skill that do no damage but calls a common event. This event shows a message and then he forces the user to do a action.
Everything is good so far.
The problem is when the user is a ENEMY.
I have created a copy of this skill for the enemies, but there's no way to choose the user who "called" the ability. I'm restricted only to troop member index.
So, there's a script call to choose the "user", the "skill" and the "target"?
I've search this, without success.
Appreciate the help.
Everything is good so far.
The problem is when the user is a ENEMY.
I have created a copy of this skill for the enemies, but there's no way to choose the user who "called" the ability. I'm restricted only to troop member index.
So, there's a script call to choose the "user", the "skill" and the "target"?
I've search this, without success.
Appreciate the help.
You would aply a State to the Enemie (He would do himself while using the Skill). Than find out through conditional Branch which Enemie ID is inflicted with the State (You can do that in your Common Event), than Cure the State and put the ID in a Variable.
Than use that Variable for your stuff.
Than use that Variable for your stuff.
I'm hoping someone can help me out with this. I need to get the actor of the active skill scene (if that makes any sense).
For example:
If SceneManager.scene_is?(Scene_Skill) then $game_party.battle_members[1] endWhich points to actor 1 specifically. I need it to only get the actor currently active in the skill scene. It's probably really simple, but this is new territory for me. Any assistance is much appreciated.
Edit: Just a little extra info: My skill descriptions perform damage calculations based on the actor's attributes, so the skill text box will obviously need access to the attributes of the actor in question. The bit of code above only provides the attributes of actor 1 regardless of whose skills you're looking at. I have this working properly in combat already.
For example:
If SceneManager.scene_is?(Scene_Skill) then $game_party.battle_members[1] endWhich points to actor 1 specifically. I need it to only get the actor currently active in the skill scene. It's probably really simple, but this is new territory for me. Any assistance is much appreciated.
Edit: Just a little extra info: My skill descriptions perform damage calculations based on the actor's attributes, so the skill text box will obviously need access to the attributes of the actor in question. The bit of code above only provides the attributes of actor 1 regardless of whose skills you're looking at. I have this working properly in combat already.
Original thread: https://forums.rpgmakerweb.com/threads/script-call-support-boards.25767/