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

Swapping out automatically

 
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP!
View previous topic :: View next topic  
Author Message
RedMaverickZero
Three pointed, red disaster!
Halloween 2006 Creativity Winner
Halloween 2006 Creativity Winner



Joined: 12 Jul 2003
Posts: 1459

PostPosted: Sun Feb 20, 2005 6:28 pm    Post subject: Swapping out automatically Reply with quote

I have a feature in my game in which it needs there to only be two heroes at all times. However, my supposed simple script, isn't working.
Here's the script I used.

script, twoteamparty,begin
swap out hero (hero by rank (2))
swap out hero (hero by rank (3))
end

By the way it's an On Key Press script.
_________________
---------------Projects----
Mr.Triangle's Maze: 70%
Takoyaki Surprise: 70%
Back to top
View user's profile Send private message Send e-mail AIM Address
Moogle1
Scourge of the Seas
Halloween 2006 Creativity Winner
Halloween 2006 Creativity Winner



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

PostPosted: Mon Feb 21, 2005 9:14 am    Post subject: Reply with quote

What does happen? Anything?

Without knowing more about your problem, here's my advice:

* You should check how many people are in the party before you perform the swaps. (room in active party should return 0 or 1 to indicate that there are 3 or 4 heroes in the party.)

* Don't try to swap out empty hero slots. I'm not really sure what that would do. (hero by slot returns -1 for an empty slot.)

* Make sure the heroes aren't locked. (Duh.) Remember that the player can still change the party position of locked heroes.
_________________
Back to top
View user's profile Send private message Visit poster's website AIM Address
RedMaverickZero
Three pointed, red disaster!
Halloween 2006 Creativity Winner
Halloween 2006 Creativity Winner



Joined: 12 Jul 2003
Posts: 1459

PostPosted: Mon Feb 21, 2005 1:28 pm    Post subject: Reply with quote

I sort of experiment, by moving one of the 2 heroes into the 3rd slot or the 4th slot and nothing happens. It's just the same as a normal system. Do you think perphaps if there were more than 2 heroes this would be any different?
_________________
---------------Projects----
Mr.Triangle's Maze: 70%
Takoyaki Surprise: 70%
Back to top
View user's profile Send private message Send e-mail AIM Address
Moogle1
Scourge of the Seas
Halloween 2006 Creativity Winner
Halloween 2006 Creativity Winner



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

PostPosted: Mon Feb 21, 2005 7:35 pm    Post subject: Reply with quote

You haven't tried it with more than two heroes? That's your problem, kid.
Back to top
View user's profile Send private message Visit poster's website AIM Address
TMC
On the Verge of Insanity




Joined: 05 Apr 2003
Posts: 3240
Location: Matakana

PostPosted: Mon Feb 21, 2005 10:36 pm    Post subject: Reply with quote

Notice that 'hero by rank' returns the nth person in the caterpillar- no matter where the two heros actually in the first 4 slots, they will only fill slots 0 and 1 in the caterpillar.

Prehaps you wanted 'hero by slot', not 'hero by rank'
_________________
"It is so great it is insanely great."
Back to top
View user's profile Send private message Send e-mail
Moogle1
Scourge of the Seas
Halloween 2006 Creativity Winner
Halloween 2006 Creativity Winner



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

PostPosted: Mon Feb 21, 2005 10:43 pm    Post subject: Reply with quote

Actually, even though he probably meant "hero by slot," "hero by rank" really does work better for his purposes.
_________________
Back to top
View user's profile Send private message Visit poster's website AIM Address
TMC
On the Verge of Insanity




Joined: 05 Apr 2003
Posts: 3240
Location: Matakana

PostPosted: Mon Feb 21, 2005 10:56 pm    Post subject: Reply with quote

Not if he wants his heroes in the first two physical slots, rather than the first two caterpillar slots.
_________________
"It is so great it is insanely great."
Back to top
View user's profile Send private message Send e-mail
RedMaverickZero
Three pointed, red disaster!
Halloween 2006 Creativity Winner
Halloween 2006 Creativity Winner



Joined: 12 Jul 2003
Posts: 1459

PostPosted: Tue Feb 22, 2005 1:30 pm    Post subject: Reply with quote

I have to work now (I am probally late) but I will try that whenever I get home and get back to you guys on it. And to Moogle, I only haven't used three heroes yet because I haven't programmed the scene quite yet. Heh.
_________________
---------------Projects----
Mr.Triangle's Maze: 70%
Takoyaki Surprise: 70%
Back to top
View user's profile Send private message Send e-mail AIM Address
RedMaverickZero
Three pointed, red disaster!
Halloween 2006 Creativity Winner
Halloween 2006 Creativity Winner



Joined: 12 Jul 2003
Posts: 1459

PostPosted: Wed Feb 23, 2005 1:10 pm    Post subject: Reply with quote

It worked! Thank you so much, I am so very appreciative!
_________________
---------------Projects----
Mr.Triangle's Maze: 70%
Takoyaki Surprise: 70%
Back to top
View user's profile Send private message Send e-mail 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