Chaos Project

RPG Maker => RPG Maker Scripts => Script Requests => Topic started by: Holyrapid on March 22, 2009, 12:06:14 pm

Title: Change battle floor in VX
Post by: Holyrapid on March 22, 2009, 12:06:14 pm
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
Title: Re: Change battle floor
Post by: Aqua on March 22, 2009, 12:08:44 pm
Do you mean the battleback?

And when do you wish to change it...

Be more specific with your requests
Title: Re: Change battle floor in VX
Post by: Tazero on March 22, 2009, 12:19:41 pm
Isn't there a condition thing like in XP? Couldn't you change the map settings and have the Battle Back change?
Title: Re: Change battle floor in VX
Post by: Aqua on March 22, 2009, 12:21:58 pm
Ah... it's for VX...

That woulda helped in the beginning...
Title: Re: Change battle floor in VX
Post by: Tazero on March 22, 2009, 12:24:29 pm
There should still be the Event iun battle option....
Title: Re: Change battle floor in VX
Post by: Holyrapid on March 22, 2009, 12:34:59 pm
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...
Title: Re: Change battle floor in VX
Post by: Starrodkirby86 on March 22, 2009, 01:19:12 pm
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.
Title: Re: Change battle floor in VX
Post by: Holyrapid on March 29, 2009, 06:05:27 am
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
Title: Re: Change battle floor in VX
Post by: Starrodkirby86 on March 29, 2009, 12:02:37 pm
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 >_>;)
Title: Re: Change battle floor in VX
Post by: Holyrapid on April 15, 2009, 08:03:48 am
Oh, i had forgotten this thing... I just tried it again but it didn´t do a thing to the battle floor...