View previous topic :: View next topic |
Author |
Message |
Chaotix Has a fan!

Joined: 03 Oct 2006 Posts: 205 Location: That one place
|
Posted: Mon Jan 15, 2007 10:39 am Post subject: Hero graphical change |
|
|
I am trying to figure this out. I am making a game to where the hero starts off young, but gets older,(look changes) and still keeps his old level and stat.
Any Idea? _________________ I drew my Icon!
My forums:
http://www.freeforum101.com/*coming soon* |
|
Back to top |
|
 |
TwinHamster ♫ Furious souls, burn eternally! ♫

Joined: 07 Mar 2004 Posts: 1352
|
|
Back to top |
|
 |
Chaotix Has a fan!

Joined: 03 Oct 2006 Posts: 205 Location: That one place
|
Posted: Mon Jan 15, 2007 11:31 am Post subject: |
|
|
I'm not sure I get it... _________________ I drew my Icon!
My forums:
http://www.freeforum101.com/*coming soon* |
|
Back to top |
|
 |
TwinHamster ♫ Furious souls, burn eternally! ♫

Joined: 07 Mar 2004 Posts: 1352
|
Posted: Mon Jan 15, 2007 11:37 am Post subject: |
|
|
Okay..When you go into the walkabout and hero picture editors, you can see their set numbers, right? Those are the IDs of the sprite sets.
So let's say you want your hero, named 'Hero Dude', to change his walkabout sprite to set 4.
You would simply use the command;
Code: | set hero picture (hero:Hero Dude, 4, outside battle) |
And to change his battle pictures, just replace 'outside battle' with 'inside battle'. |
|
Back to top |
|
 |
Chaotix Has a fan!

Joined: 03 Oct 2006 Posts: 205 Location: That one place
|
Posted: Mon Jan 15, 2007 11:45 am Post subject: |
|
|
I think I get it. He will stay that way for good right? _________________ I drew my Icon!
My forums:
http://www.freeforum101.com/*coming soon* |
|
Back to top |
|
 |
TwinHamster ♫ Furious souls, burn eternally! ♫

Joined: 07 Mar 2004 Posts: 1352
|
Posted: Mon Jan 15, 2007 11:58 am Post subject: |
|
|
That is correct. Unlike the maptile-altering command, this one is permanant (Until you change it again). |
|
Back to top |
|
 |
TMC On the Verge of Insanity
Joined: 05 Apr 2003 Posts: 3240 Location: Matakana
|
Posted: Mon Jan 15, 2007 4:31 pm Post subject: |
|
|
You need to use 'plot:find hero' to get the position of the hero in the party : most hero commands operate on this because you might have several copies of a hero in the party (even though findhero only lets you look for the first copy, yeah, confusing).
Code: | set hero picture (find hero(hero:Hero Dude), 4, outside battle) |
Also, use 'plot:set hero palette' if required. _________________ "It is so great it is insanely great." |
|
Back to top |
|
 |
Chaotix Has a fan!

Joined: 03 Oct 2006 Posts: 205 Location: That one place
|
Posted: Mon Jan 15, 2007 4:36 pm Post subject: |
|
|
Thank you all very much. I really think I get it now!
Thanks! _________________ I drew my Icon!
My forums:
http://www.freeforum101.com/*coming soon* |
|
Back to top |
|
 |
Chaotix Has a fan!

Joined: 03 Oct 2006 Posts: 205 Location: That one place
|
Posted: Sat Jan 20, 2007 1:49 pm Post subject: |
|
|
Uhh, what about changeing the color also, even though his sprit changes, I need his color to change also. _________________ I drew my Icon!
My forums:
http://www.freeforum101.com/*coming soon* |
|
Back to top |
|
 |
TwinHamster ♫ Furious souls, burn eternally! ♫

Joined: 07 Mar 2004 Posts: 1352
|
Posted: Sat Jan 20, 2007 1:58 pm Post subject: |
|
|
The Cacti gave you a link to the command that changes the hero's palette. |
|
Back to top |
|
 |
Chaotix Has a fan!

Joined: 03 Oct 2006 Posts: 205 Location: That one place
|
Posted: Sat Jan 20, 2007 2:28 pm Post subject: |
|
|
Okay. To give me an idea, to change Hero "Indego," from walkabout 0 to walkabout 2, and change pallet from pallet 1 to 2, what would it look like in all.
(If i can get a glimps, I can figure the rest on my own I am sure...) _________________ I drew my Icon!
My forums:
http://www.freeforum101.com/*coming soon* |
|
Back to top |
|
 |
Chaotix Has a fan!

Joined: 03 Oct 2006 Posts: 205 Location: That one place
|
Posted: Sat Jan 20, 2007 7:58 pm Post subject: |
|
|
I tryed and I still can not get it to work...
Please help... _________________ I drew my Icon!
My forums:
http://www.freeforum101.com/*coming soon* |
|
Back to top |
|
 |
TwinHamster ♫ Furious souls, burn eternally! ♫

Joined: 07 Mar 2004 Posts: 1352
|
Posted: Sat Jan 20, 2007 8:02 pm Post subject: |
|
|
Chaotix wrote: | Okay. To give me an idea, to change Hero "Indego," from walkabout 0 to walkabout 2, and change pallet from pallet 1 to 2, what would it look like in all.
(If i can get a glimps, I can figure the rest on my own I am sure...) |
Code: |
set hero picture (find hero (hero:Indego), 2, outside battle)
set hero palette (find hero (hero:Indego), 2, outside battle)
|
Both commands assume that you are changing the image and palette of the walkabout sprites, so you don't even have to write the 'outside battle' part. However, it's necessary to specify 'inside battle' if you want to change the battle sprite. |
|
Back to top |
|
 |
Chaotix Has a fan!

Joined: 03 Oct 2006 Posts: 205 Location: That one place
|
Posted: Sat Jan 20, 2007 8:12 pm Post subject: |
|
|
That is it? I do not have to put any other stuff before or after it?[/code] _________________ I drew my Icon!
My forums:
http://www.freeforum101.com/*coming soon* |
|
Back to top |
|
 |
msw188
Joined: 02 Jul 2003 Posts: 1041
|
Posted: Sat Jan 20, 2007 11:24 pm Post subject: |
|
|
Is this your first ever script? There are several things that need to go into a script file in order for it to be recognized correctly, and to recognize the commands you're throwing at it, before you even start telling it what you want it to do. If you are unaware of these things (include statements, script definitions, etc), you really should go and look at the tutorial first.
If you are asking about your specific script needing more commands to accomplish your desired effect, well, those two lines will change the hero's appearance. Now if you want this to only happen at certain times, or after a certain time, etc, then you will need more. Furthermore, if you want it to happen, the script must be called (activated) by something in the game. Can you give us a little more detail on what you have tried, and how it has failed? _________________ My first completed OHR game, Tales of the New World:
http://castleparadox.com/gamelist-display.php?game=161
This website link is for my funk/rock band, Euphonic Brew:
www.euphonicbrew.com |
|
Back to top |
|
 |
|