Charas-Project
Game Creation => Requests => RPG Maker Programming => Topic started 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?
-
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?
-
okay the weapon he has equip doesent go a way when the weapon is made
-
the hell, i dont understand, explain in detail please the hole thing, what your trying to do
-
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
-
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
<>
-
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 >.>
-
^_^
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
-
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?
-
Memorise position, then recall to memorise position. 'Bout half way down the second event page.
-
Originally posted by Moosetroop11
Memorise position, then recall to memorise position. 'Bout half way down the second event page.
okay thanks for the help
-
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
-
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
-
And BTW remember to turn the Teleport Item switch off at the end of the common event and make it parallel process.
-
okay when i use the item it ses Event scrip referenced a map that does not exist what am i doing worng now?
-
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.
-
this is weird every thing is fine can any one post a tut for a telaporting item to see if im doing anything worng