Change battle floor in VX

Started by Holyrapid, March 22, 2009, 12:06:14 pm

Previous topic - Next topic

Holyrapid

March 22, 2009, 12:06:14 pm Last Edit: March 22, 2009, 12:07:50 pm by Pyhankoski
Could someone make me a script that could change the floor where the enemies stand in battle.
Or can it be done somehow done without script? If you dont get it, just ask. Thanks in advance.
Oh, and this is for Rpg maker VX/RGSS2

Aqua

Do you mean the battleback?

And when do you wish to change it...

Be more specific with your requests

Tazero

Isn't there a condition thing like in XP? Couldn't you change the map settings and have the Battle Back change?


If you were a fish...

Aqua

Ah... it's for VX...

That woulda helped in the beginning...

Tazero

There should still be the Event iun battle option....


If you were a fish...

Holyrapid

I don't want to change the battle back, but the black oval the enemies are located on. I'll put a screenie in a moment.
Sorry, if i'm not making sense but try to keep your nerves, because i'm from finland...

Starrodkirby86

There is an easy way to change this...but because of my inexperience at scripting, I can only hint at it and not give the solution. My apologies.

In the Graphics system, there's a file called "BattleFloor.png" . That's where you can change the Battle Floor. But if you want interchange it...chances are you need to do a Call Script and make the def create_battlefloor assign to another image in the system folder.


def create_battlefloor
    @battlefloor_sprite = Sprite.new(@viewport1)
    @battlefloor_sprite.bitmap = Cache.system("BattleFloor")
    @battlefloor_sprite.x = 0
    @battlefloor_sprite.y = 192
    @battlefloor_sprite.z = 1
    @battlefloor_sprite.opacity = 128
  end


This code

    @battlefloor_sprite.bitmap = Cache.system("BattleFloor")


is going to be changed via a Call Script command. But I don't know what this Call Script is.

What's osu!? It's a rhythm game. Thought I should have a signature with a working rank. ;P It's now clickable!
Still Aqua's biggest fan (Or am I?).




Holyrapid

March 29, 2009, 06:05:27 am #7 Last Edit: March 29, 2009, 06:42:19 am by Pyhankoski
Yea. thanks. I sorta noticed that there was the graphic for it few days ago... :P
But, i´ll try this script of yours, so thanks SRK.
I´ll tell you if imanage to do it or not :)
Well, i managed to change the battlefloor from the script editor so far...
Now all i need is to manage to use it in a battle cause it won´t copy-paste it from the script editor (or any source for that matter) to the window that pops up with the command Script...
Guess i´ll just have to type it all...
Or not, cause it now turns put it allows me to copy it from here and then paste it to there.

No, only works when i change it in the script editor.s

Starrodkirby86

Yeah, of course it only works in the Script Editor so far...  :^_^':
I didn't create any particular script or anything. All I did was give a suggestion in the Call Script command to change the Battle Floor, that's all. :P
I may research this...See how Call Script commands work or something...Just give me a moment. (Or someone can ninja me >_>;)

What's osu!? It's a rhythm game. Thought I should have a signature with a working rank. ;P It's now clickable!
Still Aqua's biggest fan (Or am I?).




Holyrapid

Oh, i had forgotten this thing... I just tried it again but it didn´t do a thing to the battle floor...