Help - Search - Members - Calendar
Full Version: Skills with Common Events via script
RPG RPG Revolution Forums > Game Engines > RPG Maker VX Discussion
Moonchaos
Hi Community, i hope you can help me.

I am using a rougelike battlesystem.
But i want to display cards (Big pictures instead of animations)
I am really bad at scripting so i need some help


- If i use common events i can display them, but it seems to fail calculating the damage, cause it schould still be a normal attack skill.
What did i need to activate or call to resume to the normal procedure?
- To make it even more complex i need to arrange the pictures to the right enemies/players

def Skill 1 (skills are used from enemies and players)

If Hero ID 1
draw picture H_1
damage
else
proceed without it
damage
end

same goes for enemies
If enemie id 1 picture 2, id 3 picture 4...

2nd smal problem
I have a big Hud for the main charakter, no problem so far but i need to have a 2nd hud but a small one.
I though about just a small hp/mp bar abouve the head of the 2nd char which is following you.

I hope you can help me to solve the problem or may have a better idea.

Thanks in advance
Moonchaos
I dropped the idea doing it via common events but instead building a script.
I want to activate the script if a skill is called.

I managed to build a part of the code but i dont really know if it works just like that...

CODE
class target_skill (skill, target, graphic)

def initialize(skill, target, graphic)
@skill = skill
@target = target
@graphic = graphic
end

def target

if $game_party.members[0].id
@target = 1

if else $game_party.members[1].id
@target = 2

if else $game_party.members[2].id
@target = 3

if else $game_party.members[3].id
@target = 4

else
@target = 5

end

def skill

return @skill_id

end

def graphic

case @target
when 1
show.graphic/picture/pic001
position (x,y)

when 2
show.graphic/picture/pic002
...
else
show.graphic/picture/pic100
...
end

#for call
$target_skill (82,1,1)
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.