Hi people I work on my AI and this begin to works wells
just for not confuse people this not a Battle AI but a Scene AI who create a character who react on your action
here the thread :
http://forums.rpgmakerweb.com/index.php?/topic/40656-nkea-basic-ai-module-v01-beta/#entry405217
now I work on the multiple personality
if I explain each "ai" can have is own personality and each dialogues
when a ai_id is not define it will take in consideration the default dialogues :
now everything's works fine just I stuck is the Personality parts I can't retrieve the text it's always stuck to say "nil" when I msgbox_p
I will show the part I used to create the personality stuff but I will still send you the complete scripts link
http://pastebin.com/PHwAF8MY
so here the section I used for program
the configuration zone in waht I want to look like :
and what I programmed by getting refference to venka crafting script :
def self.setup @ai_id = ai_id @ai_personality = AI_Personality[@ai_id] end def self.buy_goods_dialogues # if !as_personality? # @buy_goods_dialogues = default_AI[:buy_goods_dialogues] # else @buy_goods_dialogues = @ai_personality[:buy_goods_dialogues]# endendstrangely it's always show "nil" when I try to output the text with a msgbox_p (I still work on the message system)
so I hope people will be able to help me out because I really block on this part and this somewhat a important part of my script
thanks for any further answer!
just for not confuse people this not a Battle AI but a Scene AI who create a character who react on your action
here the thread :
http://forums.rpgmakerweb.com/index.php?/topic/40656-nkea-basic-ai-module-v01-beta/#entry405217
now I work on the multiple personality
if I explain each "ai" can have is own personality and each dialogues
when a ai_id is not define it will take in consideration the default dialogues :
AIV_Default ={ :vendor_graphics => "", :greeting => "", :good_bye => "", :buy_goods_dialogues => "what you want to buy?", :sell_goods_dialogues => "", :not_buying_dialogues => "", :not_selling_dialogues => "", #not yet :haggle_goods_dialogues => "", :suceed_haggles_dialogues => "", :fail_haggles_dialogues => "", #not yet implemented :good_reputation_greeting => "", :bad_reputation_greeting => "", :kick_out_shop_dialogues => "",
atience => 100 }
I will show the part I used to create the personality stuff but I will still send you the complete scripts link
http://pastebin.com/PHwAF8MY
so here the section I used for program
the configuration zone in waht I want to look like :
AI_Personality ||= { } # do not touch! AI_Personality[1] ={ :vendor_graphics => "", :greeting => "", :good_bye => "", :buy_goods_dialogues => "text", :sell_goods_dialogues => "", :not_buying_dialogues => "", :not_selling_dialogues => "", #not yet :haggle_goods_dialogues => "", :suceed_haggles_dialogues => "", :fail_haggles_dialogues => "", #not yet implemented :good_reputation_greeting => "", :bad_reputation_greeting => "", :kick_out_shop_dialogues => "",
atience => 100 }
def self.setup @ai_id = ai_id @ai_personality = AI_Personality[@ai_id] end def self.buy_goods_dialogues # if !as_personality? # @buy_goods_dialogues = default_AI[:buy_goods_dialogues] # else @buy_goods_dialogues = @ai_personality[:buy_goods_dialogues]# endendstrangely it's always show "nil" when I try to output the text with a msgbox_p (I still work on the message system)
so I hope people will be able to help me out because I really block on this part and this somewhat a important part of my script
thanks for any further answer!
Last edited by a moderator:

