Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

> I need some help with scripting
revoke
post Jul 26 2012, 03:17 AM
Post #1



Group Icon

Group: Member
Posts: 1
Type: Developer
RM Skill: Skilled




Well, first of all my english sucks. I have a problem with a script, i have a script for shooting and its really long but this part here:

def shot
angle = (@direction == 4 ? 3.141592 : 0.0)
$game_map.screen.shot_bullet(@real_x + 128, @real_y + 128, angle, 64, 1, 40, 0, 0)
end

is where you can edit how much damage and other things. The thing is that i want to change the numbers when you have equipped, for example a different bow.

To change them like for example this:
def shot
angle = (@direction == 4 ? 3.141592 : 0.0)
$game_map.screen.shot_bullet(@real_x + 128, @real_y + 128, angle, 64, 2, 40, 0, 5)
end

But i dont really know much about scripting so if someone knows help me, must be with if command or something like that.
Go to the top of the page
 
+Quote Post
   

Posts in this topic
- revoke   I need some help with scripting   Jul 26 2012, 03:17 AM


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 23rd May 2013 - 06:26 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker