Castle Paradox Forum Index Castle Paradox

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Gamelist   Review List   Song List   All Journals   Site Stats   Search Gamelist   IRC Chat Room

Switching on and off the caterpillar mode

 
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP!
View previous topic :: View next topic  
Author Message
Dan the Man Entertainment




Joined: 31 May 2003
Posts: 204

PostPosted: Tue Aug 17, 2004 9:27 am    Post subject: Switching on and off the caterpillar mode Reply with quote

What does this do? My game is a non-caterpillar
game, but when I need to switch on the
caterpillar mode, it jumbles everyone up. How
does putting the caterpillar mode back on
affect the characters in the caterpillar
besides the leader?
Back to top
View user's profile Send private message
Moogle1
Scourge of the Seas
Halloween 2006 Creativity Winner
Halloween 2006 Creativity Winner



Joined: 15 Jul 2004
Posts: 3377
Location: Seattle, WA

PostPosted: Tue Aug 17, 2004 9:37 am    Post subject: Reply with quote

I don't do a lot of work with the caterpillar, but I do know the following:

1. If you start walking (either with the player's movement or "walk hero"), they'll appear behind you.

2. When you turn on the caterpillar, you can set the position of the other heroes onscreen. It's probably a good idea to do so.
_________________
Back to top
View user's profile Send private message Visit poster's website AIM Address
Dan the Man Entertainment




Joined: 31 May 2003
Posts: 204

PostPosted: Tue Aug 17, 2004 10:08 am    Post subject: Reply with quote

That's what I'm having problems with! When I try to set the
position for the people on the screen, it turns to a horrible
mess. Where does the problem lie?

Code:
suspend player
suspend obstruction
wait (15)
set caterpillar mode (on)
saveall
find hero (hamfluxposition)
set hero position (hamfluxposition, herox(me), heroy(me))
wait (5)
walk hero (find hero(hamfluxposition), up, 1)
set hero position (pieraposition, herox(me), heroy(me))
wait (5)
walk hero (find hero (pieraposition), down, 1)
wait for all
set hero direction (pieraposition, left)
set hero direction (hamfluxposition, left)
wait (30)
showtextbox (180)
wait for text box
walk hero (find hero (pieraposition), up, 1)
walk hero (find hero (hamfluxposition), down, 1)
wait for all
set caterpillar mode (off)
resume player
resume obstruction
Back to top
View user's profile Send private message
msw188




Joined: 02 Jul 2003
Posts: 1041

PostPosted: Tue Aug 17, 2004 10:27 am    Post subject: Reply with quote

What is the command

find hero (hamfluxposition)

supposed to be doing exactly? find hero (*) is only a function that returns the value of the position of a hero; it does not set anything. Thus this command is doing nothing as of now. Is hamfluxposition a variable? If so, then you should type something like

hamfluxposition:=find hero (hero:name)

and then you can use this variable in all of your commands. If hamfluxposition is the hero's name, then it needs hero: in front of it, and you should not have this extraneous 'find hero' command at all, but use the 'find hero' command everytime you have to reference this hero, including in your 'set hero position' commands.

Oh, just noticed another thing. Setting caterpillar mode on makes the other heroes appear, but puts them in caterpillar mode; that is to say, they will be trying their hardest to follow the leader. To make this do what you want, you need to turn caterpillar mode on AND use the 'suspend caterpillar' command (it mentions this in the plotscript dictionary under the 'walk hero (***)' entry)
Back to top
View user's profile Send private message Visit poster's website
Dan the Man Entertainment




Joined: 31 May 2003
Posts: 204

PostPosted: Tue Aug 17, 2004 12:29 pm    Post subject: Reply with quote

Yes, hamfluxposition is a variable for hamflux. It is saved when the autorun comand "saveall" is called. And perhaps you are right about the
suspend caterpillar. Not working with caterpillar in this game, I never took
that into consideration. I will try this when I get home tonight.

Edit: nope, didn't work. Maybe I should study over the script a
bit more (and the switching hero commands).
Back to top
View user's profile Send private message
Moogle1
Scourge of the Seas
Halloween 2006 Creativity Winner
Halloween 2006 Creativity Winner



Joined: 15 Jul 2004
Posts: 3377
Location: Seattle, WA

PostPosted: Tue Aug 17, 2004 9:21 pm    Post subject: Reply with quote

The problem is almost definitely in your find hero command. You normally say something like "findhero(hero:Bob the Hamster)". If you want to set the heroes without caring who they are, you can call them by their number: 0, 1, 2, or 3.

Wait -- that line "find hero (hamfluxposition)" doesn't do anything. You know that, right?

Try something more like this:

Code:

suspend player
suspend obstruction
wait (15)
set caterpillar mode (on)
suspend caterpillar
saveall
set hero position (find hero(hero:hamflux), herox(me), heroy(me))
walk hero (find hero(hero:hamflux), up, 1)
set hero position (pieraposition, herox(me), heroy(me))
walk hero (find hero (hero:piera), down, 1)
wait for all
set hero direction (pieraposition, left)
set hero direction (hamfluxposition, left)
wait (30)
showtextbox (180)
wait for text box
walk hero (find hero (pieraposition), up, 1)
walk hero (find hero (hamfluxposition), down, 1)
wait for all
set caterpillar mode (off)
resume player
resume obstruction


Assuming you want the heroes to "come out of each other", a la Final Fantasy 4-6 (among others), that's about what it should look like.
_________________
Back to top
View user's profile Send private message Visit poster's website AIM Address
Flamer
The last guy on earth...




Joined: 04 Feb 2003
Posts: 725
Location: New Zealand (newly discovered)

PostPosted: Wed Aug 18, 2004 2:58 am    Post subject: Reply with quote

or... if you really want to be lazy, you can use an NPC to fake the hero.
That's what I did before I learned how to use if statements in plotscripting.
_________________
If we were a pack of dogs, IM would be a grand Hound, CN would be a very ficious little pitball, and Giz...well, it doesn't matter breed he is, he'd still be a bitch Raspberry!
(no offense to anyone that was mentioned)
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address MSN Messenger
Dan the Man Entertainment




Joined: 31 May 2003
Posts: 204

PostPosted: Wed Aug 18, 2004 8:11 am    Post subject: Reply with quote

1) That way didn't work. I can't use find hero (hero: hamflux) because hamflux, piera, and all other people have seven classes (including their starters) and each of these classes have different names (each class is a different hero). This is where the position variables come through. When saveall is called, it checks the tag of the hero (I.E. Beefzok-SM (tag:swordsman), Piera-VK (tag:Valkyrie), Hamflux-AR (tag:Archer) ) so each hero will be called forth from the tag. The tag checked is the "have hero" tag.

2) Using NPCs would barely be lazy. I only did this once, but if you give piera a class change, she is still wearing the outfit from her starter class. Using npcs would require tons of checking code as well as using 42 npcs per map (each person has seven classes and there will be six people in total), not to mention, checking to see if it works correctly would probably take weeks (or even longer since I'll be in college tomorrow).

3) This is my last day on the computer at my house, so I HAVE to get the game uploaded today so I can download it when my laptop comes in two weeks. That way, I can further work on my game in college.

Edit: D'oh! I forgot about Alter NPC!!!!
Back to top
View user's profile Send private message
Moogle1
Scourge of the Seas
Halloween 2006 Creativity Winner
Halloween 2006 Creativity Winner



Joined: 15 Jul 2004
Posts: 3377
Location: Seattle, WA

PostPosted: Wed Aug 18, 2004 8:15 am    Post subject: Reply with quote

Then replace hero:hamflux with your hamfluxposition variable, assuming that variable is the hero ID (and not position) of the real Hamflux.
_________________
Back to top
View user's profile Send private message Visit poster's website AIM Address
Display posts from previous:   
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP! All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group