Xaine

Warper
Member
Joined
Oct 15, 2014
Messages
1
Reaction score
0
First Language
English
Primarily Uses
Okay, I'm pretty stumped right now and I just can't seem to get this working as I want. I'd like to say "hey I can just make a script for this" but unfortunately I don't really know the first thing about scripting. SOOOOO long story short I'm trying to make this work in the game as it is now.


I am currently working on DEF.
I created a state called "DEF UP" which is an invisible state (player doesn't see it) that does nothing on it's own. After the state is applied, I'm trying to make it so it adds to a variable. When this variable overflows, it should increase DEF value by 1 for that actor. In theory this should be pretty simple, but States cannot call common events nor control variables by default. Upon trying to create events on enemies themselves (troops) I've found that a "turn" in the game is only over after all characters on one side have attacked. Thus, this is making it so the variable is only increased AFTER all enemies have attacked, thus instead of going up by say, 6, it goes up by 1 even if you were hit by 6 enemies.

I've tried using common events, but unfortunately, they don't run automatically in battle. You can call a common event, but due to limitations in the troop settings, this doesn't really work as it only applies at the end of the turn, all the time or once per battle.

I also tried tying the state to the 'guard' skill (which is actually kinda cool because the character does a guard animation when hit) but unfortunately it still didn't remove the state after each enemy attacks - so it went up by 1 again.

Update:
I got it to work. For anyone who has trouble figuring this out here is the solution:
1. Create a State(s)
2. Add a state(s) to the desired skill(s)
3. Add a common event call to the desired skill(s)
4. Create a common event with a switch, with no trigger.
5. In the enemy troop, make the conditions for the event page tied to the switch turned on by the common event. Make the span "moment."
6. In the troop event page, create your event then at the bottom of the event have the switch turn off.


In my case
Conditions: #0000 Switch; Span: Moment
IF: Actor is affected by State
<> Change Parameter: Actor, Defense + 1
<> Change State: Actor, - State
: End
Control Switches : #0000 Switch = OFF

So each time an enemy uses a skill, it applies a state and calls the common event to turn on the switch, so the troop event will run and turn itself back off at any moment during a battle, instead of the limited conditions available.

This would have been something extremely simple to do if states could control switches, variables and parameters.
 
Last edited:

Latest Threads

Latest Posts

Latest Profile Posts

The new Dune movie reminds me of the game Dune 2 made by Westwood. A quality product on its own, but extremely disloyal to its source of inspiration.
Terrible Writing Advice, you've done it again.
1635026211997.png
Feeling like my new profile picture is nice. Thinking of making it semi-permanent, does any one has an opinion? Does it look too evil or does it work as a public profile picture? :)
Bishiba.png
My washing machine is a supernatural being. I lost a piece of clothing in there a month ago; searched up and down, inside other clothes, nothing. It just vanished.
Today, put in a new load. When I pull it out, the missing clothing is back! And a sock was sacrificed in the process :yswt2:

Forum statistics

Threads
116,031
Messages
1,095,108
Members
151,362
Latest member
Haniel_Sword
Top