Skip to content

class_ramen_npc

tacoen edited this page Jun 25, 2020 · 12 revisions

ramen_npc

Base: class_ramen_extendable

create_sideimage

Syntax and default parameters:

obj.create_sideimage(img,temp_img,tag,cut=None)

define_byfile

Syntax and default parameters:

obj.define_byfile()

init

Syntax and default parameters:

obj.init(id=None,**kwargs)

reinit

Syntax and default parameters:

obj.reinit()

relation

Syntax and default parameters:

obj.relation(point=None,what=relation,force=False)

Set/get npc relation stat to main character

mia.relation(5)
mia.relation(10,'love')
mia.relation(3,'obedience')

>mia.relation()
{'love':10,'obedience':3}

relation_dict

Syntax and default parameters:

obj.relation_dict(**kwargs)

Set npc relation to main character using keyword arguments. great for mass creations.

mia.relation_dict(like=8,hate=3)

>mia.relation()
{'love':10,'obedience':3,'like':8,'hate':3}

setname

Syntax and default parameters:

obj.setname(newname)

Set npc/character new name. Great when creating a supporting/cameo. Same behaviour/personality but different name.

setup_phone

Syntax and default parameters:

obj.setup_phone(fordig=None,sideimg_dir=None)

spriteanim

Syntax and default parameters:

obj.spriteanim(name,seq,tick=1.0,transform=<ATL Transform 498f930 (u'game/ramen/000-common.rpy', 14)>)

Generated Time: 06/25/20 22:35:00

Note This files created using ramen-dev makedoc() from working ramen ren'py project, same references may become a non existent.

Made with Ren'Py 7.3.5.606