Search found 56 matches

by tarrant
Sat Jun 18, 2011 10:26 pm
Forum: Scripts & Packages
Topic: cMud Map Importer
Replies: 91
Views: 58603

Re: cMud Map Importer

After running the commands cmud makedb and cmud importmap, i get this:

null roomdesc:27967
cMud map successfully imported.

but when i open map up, there's nothing there. how do i get the map to display?
by tarrant
Fri Dec 03, 2010 1:30 am
Forum: Help Forum
Topic: trigger help
Replies: 1
Views: 847

trigger help

J~<rNukes: [0/3]> <vAir Drop: [3/3]> Reset: [63%] Suit: Salamander if x.value:find("J~<rNukes: [(%d+)/(%d+)]> <vAir Drop: [(%d+)/(%d+)]> Reset: [(%d+)%] Suit: (%w+)") then nukesCur = x.value:match("<rNukes: [(%d+)") nukesMax = x.value:match("(%d+)]> <vAir Drop:") adropCur = x.value:match("<vAir Dro...
by tarrant
Wed Dec 01, 2010 11:15 pm
Forum: Howtos, FAQs and Tips & Tricks
Topic: saving variables
Replies: 17
Views: 4017

Re: Weird errors

do you mean that i don't need to manually create my own table and add my variables in?
by tarrant
Wed Dec 01, 2010 11:15 pm
Forum: Help Forum
Topic: saving variables
Replies: 17
Views: 3562

Re: Weird errors

do you mean that i don't need to manually create my own table and add my variables in?
by tarrant
Wed Dec 01, 2010 7:54 pm
Forum: Howtos, FAQs and Tips & Tricks
Topic: saving variables
Replies: 17
Views: 4017

Re: Weird errors

Ah, i see. Ok thanks for clarifying.

How do i create this table to save?
by tarrant
Wed Dec 01, 2010 7:54 pm
Forum: Help Forum
Topic: saving variables
Replies: 17
Views: 3562

Re: Weird errors

Ah, i see. Ok thanks for clarifying.

How do i create this table to save?
by tarrant
Wed Dec 01, 2010 8:30 am
Forum: Help Forum
Topic: Function within a function
Replies: 13
Views: 2562

Re: Function within a function

thanks!! i haven't had the chance to try it yet but it looks awesome.

although, i need to ask, why did you set the local variable to -1 at the start? is it just an arbitrary number?
by tarrant
Tue Nov 30, 2010 9:59 pm
Forum: Howtos, FAQs and Tips & Tricks
Topic: saving variables
Replies: 17
Views: 4017

Re: Weird errors

You forgot to specify which table you want to save. The syntax is: table.save( path, myTableThatIwantToSerialize ) The same applies to table.load(). Those are general functions that can be used to serialize any Lua table or restore the data from a file to any given table. When restoring a table fro...
by tarrant
Tue Nov 30, 2010 9:59 pm
Forum: Help Forum
Topic: saving variables
Replies: 17
Views: 3562

Re: Weird errors

You forgot to specify which table you want to save. The syntax is: table.save( path, myTableThatIwantToSerialize ) The same applies to table.load(). Those are general functions that can be used to serialize any Lua table or restore the data from a file to any given table. When restoring a table fro...
by tarrant
Tue Nov 30, 2010 4:39 pm
Forum: Help Forum
Topic: Function within a function
Replies: 13
Views: 2562

Re: Function within a function

Ah, can only have 1 type of ammo at once, so don't need to keep track of anything. Moved alias into a script like so: function stbfire() ammoToBuy = ammoUpperLimit - ammo if manualammoToBuy == nil and ammo <= ammoLowerLimit then echo("\nstbuyfire " .. ammoToBuy .. "\n") end if manualammoToBuy and am...