Hi people I worked on my AI for the pre-implemented text module so I encounter a problem I was not sure how to fix
so here the way normally you call text
call_dialogues(buy_goods_dialogues)if you go see in the module for hte buy good dialogues it's simply that :
#----------------------------------------------------------------------------# ○ new method: vendor_graphics#---------------------------------------------------------------------------- def self.vendor_graphics @vendor_graphics = default_AI[:vendor_graphics]end#----------------------------------------------------------------------------# ○ new method: greeting#---------------------------------------------------------------------------- def self.greeting @greeting = default_AI[:greeting_dialogues] end#----------------------------------------------------------------------------# ○ new method: goodbye#---------------------------------------------------------------------------- def self.goodbye @goodbye = default_AI[:goodbye_dialogues] end#----------------------------------------------------------------------------# ○ new method: buy_goods_dialogues#---------------------------------------------------------------------------- def self.buy_goods_dialogues @buy_goods_dialogues = default_AI[:buy_goods_dialogues] end#----------------------------------------------------------------------------# ○ new method: sell_goods_dialogues#---------------------------------------------------------------------------- def self.sell_goods_dialogues @sell_goods_dialogues = default_AI[:sell_goods_dialogues] end#----------------------------------------------------------------------------# ○ new method: not_buying_dialogues#---------------------------------------------------------------------------- def self.not_buying_dialogues @not_buying_dialogues = default_AI[:not_buying_dialogues] end#----------------------------------------------------------------------------# ○ new method: not_selling_dialogues#---------------------------------------------------------------------------- def self.not_selling_dialogues @not_selling_dialogues = default_AI[:not_selling_dialogues] endbut at this moment I am not sure how to make my method call_dialogues to recognize the method when you put them into parentheses...
mostly the message system would be a child class of window_message but I am a little block on this part ...if you have better idea to suggest me HOW to create the message system I would gladly accept them :/
but take in note I want to make it easy to people to use and less time com summing
so here the way normally you call text
call_dialogues(buy_goods_dialogues)if you go see in the module for hte buy good dialogues it's simply that :
#----------------------------------------------------------------------------# ○ new method: vendor_graphics#---------------------------------------------------------------------------- def self.vendor_graphics @vendor_graphics = default_AI[:vendor_graphics]end#----------------------------------------------------------------------------# ○ new method: greeting#---------------------------------------------------------------------------- def self.greeting @greeting = default_AI[:greeting_dialogues] end#----------------------------------------------------------------------------# ○ new method: goodbye#---------------------------------------------------------------------------- def self.goodbye @goodbye = default_AI[:goodbye_dialogues] end#----------------------------------------------------------------------------# ○ new method: buy_goods_dialogues#---------------------------------------------------------------------------- def self.buy_goods_dialogues @buy_goods_dialogues = default_AI[:buy_goods_dialogues] end#----------------------------------------------------------------------------# ○ new method: sell_goods_dialogues#---------------------------------------------------------------------------- def self.sell_goods_dialogues @sell_goods_dialogues = default_AI[:sell_goods_dialogues] end#----------------------------------------------------------------------------# ○ new method: not_buying_dialogues#---------------------------------------------------------------------------- def self.not_buying_dialogues @not_buying_dialogues = default_AI[:not_buying_dialogues] end#----------------------------------------------------------------------------# ○ new method: not_selling_dialogues#---------------------------------------------------------------------------- def self.not_selling_dialogues @not_selling_dialogues = default_AI[:not_selling_dialogues] endbut at this moment I am not sure how to make my method call_dialogues to recognize the method when you put them into parentheses...
mostly the message system would be a child class of window_message but I am a little block on this part ...if you have better idea to suggest me HOW to create the message system I would gladly accept them :/
but take in note I want to make it easy to people to use and less time com summing
Last edited by a moderator:
