View previous topic :: View next topic |
Author |
Message |
Bob the Hamster OHRRPGCE Developer

Joined: 22 Feb 2003 Posts: 2526 Location: Hamster Republic (Southern California Enclave)
|
Posted: Wed Nov 11, 2009 10:52 am Post subject: |
|
|
There is no way to change equipment in battle right now, but that is something I would like to add in the future. |
|
Back to top |
|
 |
BlastedEarth

Joined: 05 Oct 2009 Posts: 243
|
Posted: Wed Nov 11, 2009 11:25 am Post subject: |
|
|
Hehe, thanks for pointing that out, I have a lot of details to iron out... Btw, caps are what they call droids or robots in blasted earth^^
@james, hmm, ok il just hold on for updates, thank you |
|
Back to top |
|
 |
NeoSpade Of course!

Joined: 23 Sep 2008 Posts: 249 Location: Wales GB
|
Posted: Wed Nov 11, 2009 12:14 pm Post subject: |
|
|
BlastedEarth wrote: | Hehe, thanks for pointing that out, I have a lot of details to iron out... Btw, caps are what they call droids or robots in blasted earth^^ |
Heh, I think my britishness just shone through then, assuming the word chap. Glad I could of been of help old bean! |
|
Back to top |
|
 |
BlastedEarth

Joined: 05 Oct 2009 Posts: 243
|
Posted: Wed Nov 11, 2009 2:12 pm Post subject: |
|
|
NeoSpade wrote: | BlastedEarth wrote: | Hehe, thanks for pointing that out, I have a lot of details to iron out... Btw, caps are what they call droids or robots in blasted earth^^ |
Heh, I think my britishness just shone through then, assuming the word chap. Glad I could of been of help old bean! |
Much appreciated mate! |
|
Back to top |
|
 |
BlastedEarth

Joined: 05 Oct 2009 Posts: 243
|
Posted: Thu Nov 12, 2009 2:14 am Post subject: |
|
|
Hmmm i'm thinking could this work?
1. Make an attack called "weaponchange"(relative to each weapon), it does nothing but sets a tag.
2. Upon using a weapon as an item in battle it uses the "weaponchange" attack.
3. When tag is set, a plotscrip will unequip the current weapon and replace it with the ID of the chosen weapon and clear the tag.
4. Next turn the character weilds that weapon...
What do you think?
edit: i'll try this out myself but i still dont understand writing an if-then script... |
|
Back to top |
|
 |
Raekuul Delicious!

Joined: 31 Mar 2004 Posts: 641 Location: Nowhere
|
Posted: Thu Nov 12, 2009 4:49 am Post subject: |
|
|
Unfortunately, there's still no way to call scripts in battle, and I don't think that it'll be ready for Ypsiliform, no matter how long that release gets put off. _________________ A broken clock is still right twice a day. |
|
Back to top |
|
 |
Bagne ALL YOUR NUDIBRANCH ARE BELONG TO GASTROPODA

Joined: 19 Feb 2003 Posts: 518 Location: Halifax
|
Posted: Thu Nov 12, 2009 5:23 am Post subject: |
|
|
Question:
What happens when there are two scripts running on two different threads (is that the right word?), and one calls a battle?
Do they both get suspended?
Like, I talk to one NPC who starts a script in the background, and then talk to another which initiates a fight?
EDIT:
Is there a PS command that splits one thread into two? I remember wanting to do this many years ago, and I ended up including an invisible-step on NPC upon which I walked the hero ... something like that. _________________ Working on rain and cloud formation |
|
Back to top |
|
 |
Pumpkinbot Rock beats scissors! >:D

Joined: 22 Apr 2009 Posts: 106 Location: Megaman, Cutman's level.
|
Posted: Thu Nov 12, 2009 6:55 am Post subject: |
|
|
Not that I know anything about plotscripting, but can't you make the gun an equipment item that uses a magic attack that has item cost set to 1 bullet, then use a plotscript to change the character with the gun's battle picture so he hits someone with the gun to attack when he's out of bullets?
...Does that make sense? xD |
|
Back to top |
|
 |
Moogle1 Scourge of the Seas Halloween 2006 Creativity Winner


Joined: 15 Jul 2004 Posts: 3377 Location: Seattle, WA
|
Posted: Thu Nov 12, 2009 8:22 am Post subject: |
|
|
Raekuul wrote: | Unfortunately, there's still no way to call scripts in battle, and I don't think that it'll be ready for Ypsiliform, no matter how long that release gets put off. |
_________________
|
|
Back to top |
|
 |
BlastedEarth

Joined: 05 Oct 2009 Posts: 243
|
Posted: Thu Nov 12, 2009 8:29 am Post subject: |
|
|
Pumpkinbot wrote: | Not that I know anything about plotscripting, but can't you make the gun an equipment item that uses a magic attack that has item cost set to 1 bullet, then use a plotscript to change the character with the gun's battle picture so he hits someone with the gun to attack when he's out of bullets?
...Does that make sense? xD |
Thats the inititial idea... like instead-chain the gun to a ranged attack when the bullets are existent but there was a bug that does not turn the tag off when the bullets run out so having the a bullet in an inventory would make your range rounds infinite. Im still waiting for the bug to be fixed... Oh an james advised to have the bitset that checks costs to be turned on but the problem with this is the character can't attack if he runs out of bullets...
@moogle1, ah so we cant call scripts in battle, too bad, i got to think of another idea to make the battles move even when the bullets are out. if all things fail il just make a side story about "Shock" technology where bullets are force impacts not really solid shells... aww man... |
|
Back to top |
|
 |
Pumpkinbot Rock beats scissors! >:D

Joined: 22 Apr 2009 Posts: 106 Location: Megaman, Cutman's level.
|
Posted: Thu Nov 12, 2009 3:41 pm Post subject: |
|
|
BlastedEarth wrote: | Thats the inititial idea... like instead-chain the gun to a ranged attack when the bullets are existent but there was a bug that does not turn the tag off when the bullets run out so having the a bullet in an inventory would make your range rounds infinite. Im still waiting for the bug to be fixed... Oh an james advised to have the bitset that checks costs to be turned on but the problem with this is the character can't attack if he runs out of bullets...
@moogle1, ah so we cant call scripts in battle, too bad, i got to think of another idea to make the battles move even when the bullets are out. if all things fail il just make a side story about "Shock" technology where bullets are force impacts not really solid shells... aww man... |
What I'm saying is make a second battle sprite for the guy with the gun where, instead of holding the gun out to shoot, he's hitting someone with the gun. Pistolwhip. Speaking of which, "I swear to God I'll pistolwhip the next guy that says 'shenanagins'". [/supertroopers] |
|
Back to top |
|
 |
Raekuul Delicious!

Joined: 31 Mar 2004 Posts: 641 Location: Nowhere
|
Posted: Thu Nov 12, 2009 4:38 pm Post subject: |
|
|
What you do there is set the shooting frame as your cast/use, and set the shooting attack to use the cast/use frame. That frees you up to set the melee attack for the regular attack frames.
Or vice-versa, as the case may be. _________________ A broken clock is still right twice a day. |
|
Back to top |
|
 |
TMC On the Verge of Insanity
Joined: 05 Apr 2003 Posts: 3240 Location: Matakana
|
Posted: Fri Nov 13, 2009 1:54 am Post subject: |
|
|
BlastedEarth wrote: | Im still waiting for the bug to be fixed... |
It was fixed a couple days ago; you should have recieved an email when the bug was closed. Download a new nightly.
BlastedEarth wrote: | Hmmm i'm thinking could this work?
1. Make an attack called "weaponchange"(relative to each weapon), it does nothing but sets a tag.
2. Upon using a weapon as an item in battle it uses the "weaponchange" attack.
3. When tag is set, a plotscrip will unequip the current weapon and replace it with the ID of the chosen weapon and clear the tag.
4. Next turn the character weilds that weapon...
What do you think? |
You can make this idea work without using scripts in battle, but it's not so simple:
-Set aside a bunch of tags, "weapon A", "weapon B", etc. Don't actually set these as the "Using weapon A" tags, instead we'll update them manually.
-Give all weapons the same attack. Unfortunately this means they all have the same name, "Attack". Using instead chains, chain to the real attack for weapon A if tag "weapon A" is set, otherwise check if "weapon B" is set, and so on.
-Also give each weapon a "when used as item" attack which sets the relevant "weapon X" tag so that that weapon appears to become the equipped one (you can even update the hero's stats if you want you). You also need to clear all the other tags! And that's not so simple. It can be done with just one extra attack and tag per weapon.
-You need to wrap the Equip menu in a script which updates the tags after the player changes weapon, and to give the player an extra copy of a weapon when they equip it so that it'll still appear in the Item menu; otherwise they won't be able to switch back to their original weapon in battle. But this is bad if two heroes can equip the same weapon...
Bagne wrote: | Question:
What happens when there are two scripts running on two different threads (is that the right word?), and one calls a battle?
Do they both get suspended?
Like, I talk to one NPC who starts a script in the background, and then talk to another which initiates a fight?
EDIT:
Is there a PS command that splits one thread into two? I remember wanting to do this many years ago, and I ended up including an invisible-step on NPC upon which I walked the hero ... something like that. |
Only one "thread" can run at a time. As soon as another script is triggered, the active script is suspended, and it is not resumed until the triggered script finishes.
We have a plan to let a script continue to run even when another is triggered: 'Plan for script multitasking'. I plan to start on it fairly soon, actually.
If you don't want to wait, there is a workaround: use timers. You can write one script normally, and others broken up into pieces, so that every time the script wants to do a wait, it instead sets a timer to start the next piece in however-many ticks. _________________ "It is so great it is insanely great." |
|
Back to top |
|
 |
BlastedEarth

Joined: 05 Oct 2009 Posts: 243
|
Posted: Fri Nov 13, 2009 3:04 am Post subject: |
|
|
@mad cacti: Hmmm sounds complicated, but i'll definitely look at it, I'm definitely developing courage in plotscripting...
Thanks for your advice all of you :-) |
|
Back to top |
|
 |
Bagne ALL YOUR NUDIBRANCH ARE BELONG TO GASTROPODA

Joined: 19 Feb 2003 Posts: 518 Location: Halifax
|
Posted: Fri Nov 13, 2009 5:01 am Post subject: |
|
|
Quote: | As soon as another script is triggered, the active script is suspended.
You can write one script normally, and others broken up into pieces, so that every time the script wants to do a wait, it instead sets a timer to start the next piece in however-many ticks.
|
Is this correct:
Two scripts can't run at once (one of them must be suspended), although it is possible for one to run while the other is "waiting"?
This is actually relevant, because I had a "beginning" script which didn't seem to run so long as I had a "always running in the background" script for the starting map.
I've since figured out a work-around, but this sort of thing will be good to know for future plans. _________________ Working on rain and cloud formation
Last edited by Bagne on Fri Nov 13, 2009 5:03 am; edited 1 time in total |
|
Back to top |
|
 |
|