GOHCM (Get Over Here Comment Module);
OmegaDev :: Coding Plaza :: RGSS2 (VX)
Page 1 of 1
GOHCM (Get Over Here Comment Module);
GOHCM
Maker: Kyle?
Made: 22/06/2010
Version: V0.1
Introduction:
This script is require for most Get Over Here Scripts
as it holds all comment pre-definitions
Set Up:
Place above all Get Over Here Scripts as this is require for most of them
Credits:
foxxer
Script
- Spoiler:
- Code:
#===============================================================================
# GOHCM (Get Over Here Comment Module)
# Maker: Kyle?
# Made: 22/06/2010
#===============================================================================
#===============================================================================
# Place above all Get Over Here Scripts as this is require for most of them
#===============================================================================
#===============================================================================
# Game_Event
#===============================================================================
class Game_Event < Game_Character
attr_reader :id
def check_value(comment)
return 0 if @list.nil? or @list.size <= 0
for item in @list
if item.code == 108 or item.code == 408
if item.parameters[0] =~ /#{comment}[ ]?(\d+)?/
return $1.to_i
end
end
end
return 0
end
def check_command(comment)
return nil if @list.nil? or @list.size <= 0
for item in @list
next unless item.code == 108 or item.code == 408
if item.parameters[0] =~ /#{comment} (.*)/
return $1.to_s
end
end
return nil
end
def check_comment(comment)
return false if @list.nil? or @list.size <= 0
for item in @list
if item.code == 108 or item.code == 408
if item.parameters[0].include?(comment)
return true
end
end
end
return false
end
end
Kyle?- Platinum Cookiez
- Posts : 500
Gald : 418
Stats
Cookies: 5
OmegaDev :: Coding Plaza :: RGSS2 (VX)
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|