Ok, got it. I was expecting the values i put in would cause the checkbox to stay checked, but when i put in 0 and 1 and saved it, it did come back up as unchecked. Odd one but got it.
Thanks!
Thanks!
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
module RPG
class Enemy
class Action
def initialize
@kind = 0
@basic = 0
@skill_id = 1
@condition_turn_a = 0
@condition_turn_b = 1
@condition_hp = 100
@condition_level = 1
@condition_switch_id = 0
@rating = 5
end
attr_accessor :kind
attr_accessor :basic
attr_accessor :skill_id
attr_accessor :condition_turn_a
attr_accessor :condition_turn_b
attr_accessor :condition_hp
attr_accessor :condition_level
attr_accessor :condition_switch_id
attr_accessor :rating
end
end
end
Quotecondition_turn_a
condition_turn_b
a and b values specified in the [Turn] condition. To be input in the form a + bx.
When the turn is not specified as a condition, a = 0 and b = 1.
Quote from: Blizzard on May 25, 2022, 04:10:24 amThe formula I came up with for my script isn't 100% accurate, but I could never figure out why. It might be possible that it just comes down to some mathematical accuracy/rounding issues or something like that. But I think you can still rely on the formula being 99%+ accurate.
Quote from: Ssinssrigg on April 19, 2021, 09:01:15 amWow! This is amazing!
What is the license/copyright of that scripts?
Is it not forbidden to modify them and use in any production (including commercial) as long as authors will be included in credits? Or I should feel free to do so as long as I credit everyone
class MyClass {
constructor(name, value){
this.name = name;
this.value = value;
}
}
const foo = new MyClass("bob", 123);
window.postMessage( { myMsg : foo });
function messageListener(msg){
console.log(msg.data.myMsg instanceof MyClass); // Always returns false
}
...
audio.preservesPitch = false;
audio.mozPreservesPitch = false;
audio.webkitPreservesPitch = false;
...
function graphAnimator(){
requestAnimationFrame(graphAnimator);
let fbc_array = new Uint8Array(analyzer.frequencyBinCount);
analyzer.getByteFrequencyData(fbc_array);
ctx.clearRect(0, 0, graph.width, graph.height);
ctx.fillStyle = "#00FFAA";
for (let i = 0; i < 100; i++){
let x = i * 3;
let h = -(fbc_array[i * 8] / 12);
ctx.fillRect(x, 20, 2, h);
}
}
function setupGraph(){
graph.width = 222;
graph.height = 20;
ctx = graph.getContext('2d');
aCtx = new window.AudioContext();
analyzer = aCtx.createAnalyser();
audio_source = aCtx.createMediaElementSource(audio);
audio_source.connect(analyzer);
analyzer.connect(aCtx.destination);
graphAnimator();
}
module RPG
class Troop
def initialize
@id = 0
@name = ""
@members = []
@pages = [RPG::BattleEventPage.new]
end
attr_accessor :id
attr_accessor :name
attr_accessor :members
attr_accessor :pages
end
end