Charas-Project

Game Creation => Requests => RPG Maker Programming => Topic started by: SilverLightning on April 11, 2006, 08:14:57 PM

Title: Help please
Post by: SilverLightning on April 11, 2006, 08:14:57 PM
OKay i need help,theres a part in my game that you can make a weapon and it's kinda boggin me that if you have the weapon equiped and it does take away that weapon but if its equiped the item stays there so is there any way to stop this?
Title:
Post by: Shadowless1 on April 11, 2006, 09:30:15 PM
um, i dont really understand what you mean, you've typed it all in jibberish, do you mean that when your doing something and the item is equipped you want it to stay there but if its not it removes it?
Title:
Post by: SilverLightning on April 11, 2006, 09:43:06 PM
okay the weapon he has equip doesent go a way when the weapon is made
Title:
Post by: Shadowless1 on April 11, 2006, 09:44:34 PM
the hell, i dont understand, explain in detail please the hole thing, what your trying to do
Title:
Post by: SilverLightning on April 11, 2006, 09:55:06 PM
okay Theres a part when i can make a weapon but you need 2 items "Soul Stone" and "Old Sword" and i have the old sword equiped and then i go to make the item the sword stays in the weapon slot and the soul stone is gone what am i doing wrong
Title:
Post by: Ruler of the Dark on April 11, 2006, 10:01:36 PM
What do you mean "weapon is made"?

Do you mean you're makings something where you combine weapons to make a new one?

If you want to remove a weapon that's equipped, first check if the weapon is equipped, then if it is, unequip it.  After that, remove the item.

For some script reference...

<>Branch if *Bob* *Sword* Equipped
-<>Change Equipmnt: *Bob* Weapon Unequip
-<>Change Items: *Sword* 1 Remove
-<>
:Else Handler
-<>Change Items: *Sword* 1Remove
-<>
:End
<>
Title:
Post by: SilverLightning on April 11, 2006, 10:06:13 PM
Quote
Originally posted by Ruler of the Dark
What do you mean "weapon is made"?

Do you mean you're makings something where you combine weapons to make a new one?

If you want to remove a weapon that's equipped, first check if the weapon is equipped, then if it is, unequip it.  After that, remove the item.

For some script reference...

<>Branch if *Bob* *Sword* Equipped
-<>Change Equipmnt: *Bob* Weapon Unequip
-<>Change Items: *Sword* 1 Remove
-<>
:Else Handler
-<>Change Items: *Sword* 1Remove
-<>
:End
<>

thank you if roget about that botten >.>
Title:
Post by: Ruler of the Dark on April 11, 2006, 10:17:37 PM
^_^
No problem.

Feel free to ask me if you have any more coding difficulties.
Though maybe look around the program before asking one as basic as that.  :D
Title:
Post by: SilverLightning on April 11, 2006, 10:24:00 PM
okay new problem im trying to make an item to teleaport to a place but how do i return the the spot where i used that item?
Title:
Post by: Moosetroop11 on April 11, 2006, 10:29:53 PM
Memorise position, then recall to memorise position. 'Bout half way down the second event page.
Title:
Post by: SilverLightning on April 11, 2006, 11:14:26 PM
Quote
Originally posted by Moosetroop11
Memorise position, then recall to memorise position. 'Bout half way down the second event page.

okay thanks for the help
Title:
Post by: SilverLightning on April 11, 2006, 11:25:00 PM
okay for the telaporting item heres the detales

Item
Telaport gate1
Switch

Commen Event

<>Memorize Location
<>Teleport

Event Location
<>Recall To location

so when i use the item the screen turns black so i need help
Title:
Post by: Sephiroth rocks on April 12, 2006, 01:31:42 PM
Just make the common event like this:

(Precondition: Switch [####: Teleport Item] is on)
Branch: If switch [####:Teleporting] is off
<>Memorize position var[####: mapID], var [####: posx],  var [#### posy]
<>switch operation: turn switch [####: Teleporting] on
<>Teleport
:Else Handler
<>Recall to memorized position var[####: mapID], var [####: posx],  var [#### posy]
<>switch operation: turn switch [####: Teleporting] off
End
Title:
Post by: Sephiroth rocks on April 12, 2006, 01:33:46 PM
And BTW remember to turn the Teleport Item switch off at the end of the common event and make it parallel process.
Title:
Post by: SilverLightning on April 12, 2006, 09:06:58 PM
okay when i use the item it ses Event scrip referenced a map that does not exist what am i doing worng now?
Title:
Post by: WarxePB on April 12, 2006, 09:09:24 PM
You're teleporting to a map that doesn't exist anymore, or to a place on a map that isn't there. Check all the teleport events in your map and common events, and make sure that they're all correct.
Title:
Post by: SilverLightning on April 12, 2006, 09:13:30 PM
this is weird every thing is fine can any one post a tut for a telaporting item to see if im doing anything worng