Checking Actors Parameters in Conditional Branch (Solved)

Mesajia

Veteran
Veteran
Joined
Aug 14, 2014
Messages
81
Reaction score
51
First Language
German
Primarily Uses
RMMV
Hello everybody,
I want to check an actors parameter in a Conditional Branch and used a Script Call to check this. But it doesn't seem to work for me. I'm not the best in eventing, specially with Skript Calls, so it would be cool, if someone could take a look.
I also tried Variations with <=, >=, <, > and so on. So I think, that I messed up with the Script Call :/

Code:
◆If:Skript:$gameActors.actor(1).param[6]=<100
  ◆Text:000 Bettlermädchen 02(2), Fenster, Unten
  :    :Ups, sorry. Meine Schuld.
  ◆Gold ändern:- 20
  ◆Text:Keine, Durchsichtig, Mitte
  :    :Du hast plötzlich weniger Gold in der Tasche.
  ◆
:Beenden
◆If:Skript:$gameActors.actor(1).param[6]=>100
  ◆Text:000 Bettlermädchen 02(2), Fenster, Unten
  :    :Ups, sorry. Meine Schuld.
  ◆
:Beenden

The idea behind this: I want to create pickpockets, which steal some money, if your luck or agility parameter is too low. On the otherside I'm thinking about about a character who can steal too. On this try I went with AGI and my character has currently 29. But when I start the event above, nothing happens :/

Thanks a lot for your help :)
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
44,810
Reaction score
15,924
First Language
English
Primarily Uses
RMMV
Why don't you just use Control Variables to get the parameter into a variable? That's what it's there for.
 

Aloe Guvner

Walrus
Veteran
Joined
Sep 28, 2017
Messages
1,628
Reaction score
1,165
First Language
English
Primarily Uses
RMMV
The operators for "greater than or equal to" and "less than or equal to" are >= and <=, not the other way around.
=> means something very different in JavaScript!

Try this instead:
$gameActors.actor(X).agi >= 100

Edit: Ninja'd. Non script strategy works too
 

Mesajia

Veteran
Veteran
Joined
Aug 14, 2014
Messages
81
Reaction score
51
First Language
German
Primarily Uses
RMMV
Thanks to both of you. I will go with Shaz solution, because I guess I will use the other parameters for other events aswell.
 

Latest Threads

Latest Posts

Latest Profile Posts

ScreenShot_8_19_2022_2_3_18.png
FINALLY got the mood system in the game during battle. Since the game is called Panic Attack, I figured you should have certain moods present including Panic. so the main 3 or Hype, Depressed, and Anxious. Panic is only when stunned.
Red_V2.png
Red's design is finally finished (his hair is blue on purpose, it's a joke!). Out of all of the compulsory party members, he spends the most time with you. Just like the character he's based on, he presents himself as a simple person who only wants to help others, but there's obviously more to him than meets the eye.
I drew the cover for my new book. I don 't like to entrust this work to someone else )

WM8Xp2VYvg8.jpg
So if I wanted to share little video clips of my game on here... without using youtube... what would be the most ideal way to do that? FWIW, I use Mega a lot to upload videos and just share the links with my friends.

Forum statistics

Threads
124,683
Messages
1,165,223
Members
163,498
Latest member
delisyabakery
Top