Curing system doesn't cure... Anything

Post Reply
User avatar
Jules
Posts: 118
Joined: Sun Oct 11, 2009 5:41 pm
Location: Plymouth State University - Sophomore

Curing system doesn't cure... Anything

Post by Jules »

No clue what's up with it... Especially when I try curing something that is only cured by drinking something from a vial, the script itself simply doesn't run. I'll give an example:

Code: Select all

Trigger: infected with stomach worms. (exact match)
Script: addAff_salve("worms")

Code: Select all

Name: addAff_salve()
Script: function addAff_salve(aff)
	salveQueue[aff] = true
	cureAffs_salve()
end

Code: Select all

Name: cureAffs_salve()
Script: function cureAffs_salve()
	for _,v in pairs(salveCure) do
		if salveQueue[v.name] and salveBalance == 1 then
			send(v.cure)
		end
	end
end

salveCure = {

{name = "asthma", cure = "apply melancholic to chest"},
{name = "concussion", cure = "apply regeneration to head"},
{name = "slit_throat", cure = "apply mending to head"},
{name = "burst_organs", cure = "apply regeneration to gut"},
{name = "disemboweled", cure = "apply regeneration to gut"},
{name = "chest_pain", cure = "apply regeneration to chest"},
{name = "crushed_chest", cure = "apply regeneration to chest"},
{name = "severed_leg", cure = "apply regeneration to legs"},
{name = "collapsed_lungs", cure = "apply regeneration to chest"},
{name = "short_breath", cure = "apply melancholic to chest"},
{name = "ruptured_gut", cure = "apply regeneration to gut"},
{name = "mangled_leg", cure = "apply regeneration to legs"},
{name = "severed_arm", cure = "apply regeneration to arms"},
{name = "tendon", cure = "apply regeneration to legs"},
{name = "damaged_head", cure = "apply regeneration to head"},
{name = "fractured_skull", cure = "apply mending to head"},
{name = "severed_spine", cure = "apply regeneration to gut"},
{name = "kneecap", cure = "apply regeneration to legs"},
{name = "nerve", cure = "apply regeneration to arms"},
{name = "twisted_leg", cure = "apply mending to legss"},
{name = "broken_wrist", cure = "apply mending to arms"},
{name = "broken_leg", cure = "apply mending to legss"},
{name = "punctured_lung", cure = "apply melancholic to chest"},
{name = "vapors", cure = "apply melancholic to head"},
{name = "ankle", cure = "apply regeneration to legs"},
{name = "black_lung", cure = "apply melancholic to chest"},
{name = "twisted_arm", cure = "apply mending to arms"},
{name = "shattered_jaw", cure = "apply regeneration to head"},
{name = "broken_jaw", cure = "apply mending to head"},
{name = "mangled_arm", cure = "apply regeneration to arms"},
{name = "broken_arm", cure = "apply mending to arms"},
{name = "trembling", cure = "apply melancholic to chest"},
{name = "sunallergy", cure = "apply liniment"},
{name = "scabies", cure = "apply liniment"},
{name = "pox", cure = "apply liniment"},
{name = "itch", cure = "apply liniment"},
{name = "elbow", cure = "apply mending to arms"},
{name = "lost_eye", cure = "apply regeneration to head"}

}
As you can see, I do have a queue listed here that a FOR statement runs and checks, then cures, then runs again. However... Nothing runs... Any advise?

User avatar
Vadi
Posts: 5050
Joined: Sat Mar 14, 2009 3:13 pm

Re: Curing system doesn't cure... Anything

Post by Vadi »

Anything in the debug console?

User avatar
Heiko
Site Admin
Posts: 1548
Joined: Wed Mar 11, 2009 6:26 pm

Re: Curing system doesn't cure... Anything

Post by Heiko »

There's no "worms" affliction in your cure list :D
If you want any serious help post a replay that contains a bunch of long fights to test your healing system, tell us something about how your curing is working, about your MUD fighting system and post your profile along with the replay. Then other users can help you without the need of having to log onto your MUD.

User avatar
Jules
Posts: 118
Joined: Sun Oct 11, 2009 5:41 pm
Location: Plymouth State University - Sophomore

Re: Curing system doesn't cure... Anything

Post by Jules »

Okay, I'll have to do a couple spars later after Church (/grumble). How do I enable replay?

User avatar
Heiko
Site Admin
Posts: 1548
Joined: Wed Mar 11, 2009 6:26 pm

Re: Curing system doesn't cure... Anything

Post by Heiko »

record replay button next to the command line tos start and stop the recording

User avatar
Jules
Posts: 118
Joined: Sun Oct 11, 2009 5:41 pm
Location: Plymouth State University - Sophomore

Re: Curing system doesn't cure... Anything

Post by Jules »

Okay, so I changed this up just a little bit, but it still offers the exact same problem.

I have myself blind, and the cure for it is to "apply health to head". I have the appropriate trigger to capture the affliction, then add it to the queue (to test this, blindness is at the top of the queue). However it spits back an error message to me... Here are the pictures below:

http://i991.photobucket.com/albums/af40 ... rigger.jpg - Prompt Trigger (Blindness is captured here)
http://i991.photobucket.com/albums/af40 ... /Blind.jpg - The Blind trigger
http://i991.photobucket.com/albums/af40 ... elixir.jpg - addAffs_elixir()
http://i991.photobucket.com/albums/af40 ... rqueue.jpg - elixirQueue()
http://i991.photobucket.com/albums/af40 ... rqueue.jpg - Mudlet Window
http://i991.photobucket.com/albums/af40 ... rqueue.jpg - Debug Window

User avatar
Heiko
Site Admin
Posts: 1548
Joined: Wed Mar 11, 2009 6:26 pm

Re: Curing system doesn't cure... Anything

Post by Heiko »

Heiko wrote:If you want any serious help post a replay that contains a bunch of long fights to test your healing system, tell us something about how your curing is working, about your MUD fighting system and post your profile along with the replay. Then other users can help you without the need of having to log onto your MUD.

Post Reply