View previous topic :: View next topic |
Author |
Message |
Guest
|
Posted: Tue Jun 08, 2004 12:43 am Post subject: switch |
|
|
How do you switch from one character to another character who is in another place? |
|
Back to top |
|
 |
Leonhart

Joined: 25 Feb 2004 Posts: 383 Location: Philippines
|
Posted: Tue Jun 08, 2004 2:00 am Post subject: |
|
|
I forgot to log in!!!!  _________________ The man who smiles when things go wrong has thought of someone to blame it on.
- Robert Bloch |
|
Back to top |
|
 |
junahu Custom Title: 45 character limit

Joined: 13 Jan 2004 Posts: 369 Location: Hull, England
|
Posted: Tue Jun 08, 2004 3:16 am Post subject: |
|
|
you have two options;
1)pray to god for the answer
2)define your question more specifically
here's a very sketchy idea
1) have catapillar party bitset active
2) disable catapillar party using plotscripting (autorun script)
3) when a key is pressed make the camera follow the next hero in your party
4) swap the position coordinates of that hero and the party leader
5) swap the order of that hero and the party leader
6) make the camera follow the party leader again
for this to work you would have to find a way of preventing the player from using the order option on the menu _________________
 |
|
Back to top |
|
 |
Flamer The last guy on earth...

Joined: 04 Feb 2003 Posts: 725 Location: New Zealand (newly discovered)
|
Posted: Tue Jun 08, 2004 4:24 am Post subject: |
|
|
specific details will be needed for a more descriptive outline... which shouldn't be necessary...
here's a general run down on what you need to do.
you'll need global variables to store values like team1X, team1Y, team1Map...
next, you'll need to store who's in which party. there are many ways to do this one, but i'm no good at telling anyone how to do this part.
umm... yeah, moral of the story... break this task into small parts instead of always looking at it as a whole big picture.
if you break it down to little sections, it's actually a lot easier. _________________ 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
(no offense to anyone that was mentioned) |
|
Back to top |
|
 |
rpgspotKahn Lets see...

Joined: 16 May 2004 Posts: 720 Location: South Africa
|
Posted: Tue Jun 08, 2004 11:29 am Post subject: |
|
|
Umm... are you talking about NPC's or HERO's... ? because NPC's could be a whole lot harder to do if you wanted to change scene onto another map with an assigned NPC.
Please define your question more clearly.  _________________
2nd Edition out now! |
|
Back to top |
|
 |
LeRoy_Leo Project manager Class S Minstrel

Joined: 24 Sep 2003 Posts: 2683 Location: The dead-center of your brain!
|
Posted: Tue Jun 08, 2004 12:11 pm Post subject: |
|
|
Flamer wrote: | specific details will be needed for a more descriptive outline... which shouldn't be necessary...
here's a general run down on what you need to do.
you'll need global variables to store values like team1X, team1Y, team1Map...
next, you'll need to store who's in which party. |
yea. I saw this last night REALLY late. That's probobly what you should do, lionheart. Good luck.
*teleport to map or set hero position might do the trick to move heros around. Is that what you wanted to do?* _________________ Planning Project Blood Summons, an MMORPG which will incinerate all of the others with it's sheer brilliance...
---msw188 ---
"Seriously James, you keep rolling out the awesome like gingerbread men on a horror-movie assembly line. " |
|
Back to top |
|
 |
Leonhart

Joined: 25 Feb 2004 Posts: 383 Location: Philippines
|
Posted: Tue Jun 08, 2004 9:53 pm Post subject: |
|
|
I just want to know how to play a completely different character if the main character, for example, got hit on the head and is unable to continue. _________________ The man who smiles when things go wrong has thought of someone to blame it on.
- Robert Bloch |
|
Back to top |
|
 |
LeRoy_Leo Project manager Class S Minstrel

Joined: 24 Sep 2003 Posts: 2683 Location: The dead-center of your brain!
|
Posted: Wed Jun 09, 2004 12:13 am Post subject: |
|
|
Swap in and out hero... Right guys?
PS: Lock hero too if you want him to stay out till later. Then unlock and swap or add to party. _________________ Planning Project Blood Summons, an MMORPG which will incinerate all of the others with it's sheer brilliance...
---msw188 ---
"Seriously James, you keep rolling out the awesome like gingerbread men on a horror-movie assembly line. " |
|
Back to top |
|
 |
TMC On the Verge of Insanity
Joined: 05 Apr 2003 Posts: 3240 Location: Matakana
|
Posted: Wed Jun 09, 2004 2:46 am Post subject: |
|
|
You are all insane.
If you want to change the active hero, use:
swap in hero (who)
swap out hero (who)
lock hero (who)
unlock hero (who)
Add, if you haven't already added the hero, use
add hero (who)
So lets say hero A is in the party, and B is locked in the reserve
Code: |
unlock hero (hero: B)
swap in hero (hero: B)
swap out hero (hero: A)
lock hero (hero: A)
|
I think. I'm not really good at this stuff.
If you also want the location to change, use
teleport to map (map,x,y) _________________ "It is so great it is insanely great." |
|
Back to top |
|
 |
junahu Custom Title: 45 character limit

Joined: 13 Jan 2004 Posts: 369 Location: Hull, England
|
Posted: Wed Jun 09, 2004 3:13 am Post subject: |
|
|
But... does he want this to happen at will? Or is this just some cutscene where we end up playing as a different character?
Why do I always overthink these things? _________________
 |
|
Back to top |
|
 |
Flamer The last guy on earth...

Joined: 04 Feb 2003 Posts: 725 Location: New Zealand (newly discovered)
|
Posted: Wed Jun 09, 2004 6:00 am Post subject: |
|
|
ok, think of what you want, think of how you want to do it...
and IF you're STUCK... then and ONLY THEN post about how you should've done it, what have done on the issue....
and MAYBE then people will give you a straight answer, because right now... i feel like ignoring your posts.... (i'm tired as well, but i would at least keep a straight mind and NOT post about half a thought... if even that) _________________ 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
(no offense to anyone that was mentioned) |
|
Back to top |
|
 |
LeRoy_Leo Project manager Class S Minstrel

Joined: 24 Sep 2003 Posts: 2683 Location: The dead-center of your brain!
|
Posted: Wed Jun 09, 2004 1:02 pm Post subject: |
|
|
The Mad Cacti wrote: |
If you want to change the active hero, use:
swap in hero (who)
swap out hero (who)
lock hero (who)
unlock hero (who)
Add, if you haven't already added the hero, use
add hero (who)
So lets say hero A is in the party, and B is locked in the reserve
Code: |
unlock hero (hero: B)
swap in hero (hero: B)
swap out hero (hero: A)
lock hero (hero: A)
|
If you also want the location to change, use
teleport to map (map,x,y) |
Precisely what I meant to say... Thank you for clarifying, TMC.  _________________ Planning Project Blood Summons, an MMORPG which will incinerate all of the others with it's sheer brilliance...
---msw188 ---
"Seriously James, you keep rolling out the awesome like gingerbread men on a horror-movie assembly line. " |
|
Back to top |
|
 |
Leonhart

Joined: 25 Feb 2004 Posts: 383 Location: Philippines
|
Posted: Wed Jun 09, 2004 8:20 pm Post subject: |
|
|
Boy, I'm being a pain in the...neck! Sorry I can't find the right words to clarify this whole thing.
Anyway, you know in Resident Evil 1,2,3 when you always get to play as the other character so that you can get something in a particular place that the other one can't reach (ex. Sherry in RE2)?
That's what I want. I have no experience in plotscripting and that's the reason why I'm asking that question. Is MAd Cacti's idea good enough? It kinda makes sense to me. What do you all think? _________________ The man who smiles when things go wrong has thought of someone to blame it on.
- Robert Bloch |
|
Back to top |
|
 |
RedMaverickZero Three pointed, red disaster! Halloween 2006 Creativity Winner


Joined: 12 Jul 2003 Posts: 1459
|
Posted: Wed Jun 09, 2004 9:40 pm Post subject: |
|
|
Hey, that's the name of the thread. Plotscripting help. It's what we're all here for. _________________ ---------------Projects----
Mr.Triangle's Maze: 70%
Takoyaki Surprise: 70% |
|
Back to top |
|
 |
Shadowiii It's been real.

Joined: 14 Feb 2003 Posts: 2460
|
Posted: Wed Jun 09, 2004 9:50 pm Post subject: |
|
|
Do you mean, switch characters at any time?
If so, your script would be something like this. You'd assign it for "on keypress"
if (keyispressed(*putwhateverkeyitishere*))
swap by name (hero:*nameofherox*, hero:*nameofheroy*)
end
#to reverse the swap
if (keyispressed(*putadifferentkeyitishere*))
swap by name (hero:*nameofheroy*, hero:*nameofherox*)
end
Put this on "when key is pressed" on the maps you want this optiont o be available. As a good idea, you may want to lock and unlock the heroes each time, as then the person can't go into "Party" or whatever that command is and manually get them himself.
You could add on to this for as many heroes as you need. You'll probably need a "find hero" before each one just to check which hero is being swapped, but that's really easy.
Also, if you, say, wanted NPCs to day different things depending on which hero you had, this could be simply altered by useing tags on each command.
Oh yeah, my code isn't perfect, so dont' cut and paste (I forgot ends and then,begins for the ifs and stuff).
Hope that's what you ment, as I have never played RE. _________________ But enough talk, have at you! |
|
Back to top |
|
 |
|