Ulysses

Ulysses Stuff => Suggestions => Topic started by: Griff on March 11, 2006, 09:20:28 AM

Title: Gimp sayings...
Post by: Griff on March 11, 2006, 09:20:28 AM
ok, i had a look at mani and that lets you add your own gimp sayings... i found the part about gimped users in the ulx file, and its just peices of code etc, could it be easyer for ulx to do the same as mani and have a totaly different file for the gimped sayings?
Title: Re: Gimp sayings...
Post by: Golden-Death on March 11, 2006, 11:08:45 AM
Yeah, you could open ulx_fun.lua and find the part that says

Code: [Select]
table.insert( gimp_say, "" )
and add after that

Code: [Select]
_OpenScript("ulx/ulx_gimpsays.lua")

Copy a lua file to the ULX folder and rename it to gimpsays with the extension .lua
Open it, and put this in there, replacing everything else:
Code: [Select]
table.insert( gimp_say, "INSERT THING TO SAY HERE" )
and put one of those things on every line for every new thing you want to say, EX:

Code: [Select]
table.insert( gimp_say, "weeee" )
table.insert( gimp_say, "circles" )
table.insert( gimp_say, "yay" )
table.insert( gimp_say, "helooo im nigel thornberreeey" )
Title: Re: Gimp sayings...
Post by: Megiddo on March 11, 2006, 01:27:15 PM
It's not necessary to keep this in:
Code: [Select]
table.insert( gimp_say, "" )
Title: Re: Gimp sayings...
Post by: Griff on June 09, 2006, 11:53:28 AM
Code: [Select]
table.insert( gimp_say, "Liek Oh, mai, GAWD!!! taht is soooo seks3!" )
table.insert( gimp_say, "ohh, ahhh, oohhh, ahhhhhh" )
table.insert( gimp_say, "I like to be a mingebag" )
table.insert( gimp_say, "" )

function cc_ulxGimp( userid, args, argv, argc )
local target = getUser( userid, argv[ 1 ] )
if target == nil then
return
end

ok, so all those tableinserts i can wipe out, and add in that little line. i.e.

Code: [Select]

_OpenScript("ulx/ulx_gimpsays.lua")

function cc_ulxGimp( userid, args, argv, argc )
local target = getUser( userid, argv[ 1 ] )
if target == nil then
return
end


and then in the gimpsay lua file just have
Code: [Select]
table.insert( gimp_say, "" )
table.insert( gimp_say, "" )
table.insert( gimp_say, "" )
table.insert( gimp_say, "" )
table.insert( gimp_say, "" )
etc...

is this right, or can you correct me?

Edit: ok, i have done this and it works perfectly, thansk so much ULX once again! ur much better than mani, you actualy let users see the code :)