Ranking
Original Post
[REQ] Color BoilBlood
so... yeah, i have the boilblood.lua script and it's so cool.
but i want to change the colors.
like others scripts i want to write /ec COLOR and i want the blood turn that colour.

i want to do it with every color in toribash, but dont worry.
you do the script and then i change the colour.

Script code:
run_cmd("option blood 0")
local function get_joint_3d()
--blood
set_color(1, 0, 0, 1)
--Big Blood
for i=0,get_num_blood_particles()-1 do
x,y,z = get_blood_pos(i)
R3 = math.random()
Radius = get_blood_radius(i)
draw_sphere(x, y, z, Radius+(R3/65))
end
end

add_hook("draw3d", "sphere", get_joint_3d)
add_hook("draw2d", "sphere", draw2d)

well, i configured the script like this^
but now i want the colors.
you dont have to put "set_color(0.25,1,0,1)" (example)
you just put set_color(0,0,0,0) and then i configure it.
-----
any question, please post. and thanks!
Last edited by 0rigami; Feb 21, 2011 at 09:46 PM. Reason: <24 hour edit/bump