[SELF-SOLVED]Help for making skills for rpg frame thats the player learn in mid-game

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
leoxhurt
Regular
Posts: 34
Joined: Fri Aug 04, 2017 6:25 pm
Contact:

[SELF-SOLVED]Help for making skills for rpg frame thats the player learn in mid-game

#1 Post by leoxhurt »

i dont know much about python so i got a rpg frame script and edit it, and want to make simple skills like double attack, heal, etc, but it appears only in mid-game i got one that i made as a example, i know property things is defeault, but i don't know how to make in another way

Code: Select all

@property
        def secondAttacking(self):
            addedAttack = self.attack
            minAtk= addedAttack + addedAttack
            maxAtk= addedAttack + addedAttack + addedAttack
            strength = random.randint(minAtk,maxAtk)
            if strength is 0:
                strength = 1
            return int( math.ceil( strength * addedAttack) )

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot], IrisColt, Yohru