Healing Chickens? : the chicken or the egg

Discussion in 'General Modification' started by XVicious, Sep 23, 2013.

Remove all ads!
  1. XVicious

    XVicious Established Member

    Joined:
    Jun 21, 2013
    Messages:
    427
    Likes Received:
    8
    Chickens Lay EGGS for food and heath.

    Hello,
    I decided to create this mod for fun.

    no doubt the title may hint to the purpose.

    new model for EGGS
    new python script control


    so the idea would be that you can harvest these chicken eggs as a food
    source much like the druides can get good berries for healing,
    thee eggs would do the same.

    so this may also suggest that, if you take care of the chickens (by healing them)they can lay more eggs.

    example pic:
    eggs are over sized for initial proto-typing
    they are scaled to like 500%

    [​IMG]

    eXplain:
    so the chicken lay 3 eggs and take 3 damage for controlling the script specifically.
    this is so the chickens dont lay eggs for infinite time, plus I don't want the chicken too die
    so they instead take a 1 damage point per egg they lay, up too a max of 3 damage points.

    so PY script says i.e. the chicken needs to do a DC: 16 (random number > 15) to lay the egg and this is so that the eggs are not created every heartbeat, its more random; givin also that it would not be too hard or difficult for a chicken to do what comes natural (laying an egg), and that a chicken does not do this all the time, but proves too be maybe a task in itself naturally.

    here is the PY SCRIPT
    file: py00280chickenegg.py


    Code:
    from utilities import *
    
    from toee import *
    
    
    def san_heartbeat( attachee, triggerer ):
    	if(game.random_range(1,20) > 15): 
    		if(attachee.obj_get_int(obj_f_hp_damage) < 3):
    			game.obj_create(16001,attachee.location+game.random_range(0,4))
    			attachee.obj_set_int( obj_f_hp_damage, attachee.obj_get_int(obj_f_hp_damage)+1)
    	return RUN_DEFAULT
    
    

    edit notes: subject to change for spelling, form, thesis, appearances.
     

    Attached Files:

    Last edited: Sep 23, 2013
  2. XVicious

    XVicious Established Member

    Joined:
    Jun 21, 2013
    Messages:
    427
    Likes Received:
    8
    ...
     

    Attached Files:

    Last edited: Sep 26, 2013
  3. Zoltec

    Zoltec Pгōdigium

    Joined:
    Apr 22, 2012
    Messages:
    547
    Likes Received:
    16
    How bout' an farmer who likes to farm chicky eggs then drops em' @ Gundigoots' tavern? And then a new meal will appear on Glorias' menu! I say more interactiveness in Hommlet. :p

    And then when the chiken is too old, the chicken name is changed to dying chicken and then die... :zap:

    DIE by laying eggs or DIE by preying cat!? High level quest!

    Kantrip the farmer will only move in hommlet after you've hired darley in the fire node.

    Maybe add a quest on why the chikcen are dying and nowhere to be found... lure the beastie name Gala the wild cat to its death (only ranged attack, has very high ac, can escape, no worries it can comback anytime(two shots only))... trhen quest completed. Uncle Kantrips' Missing chickens :poke:

    Though you must do it carefully since, you are just helping him w/o his permission/concern (because he's not requiring your help), if he found out that there's an arrow lying on the ground (because you missed aim the damn shot on the fuzzy cat_), then seen you then he might kill you not knowingly that he's a mighty bizzare wizardd ... and in the end after you defeat him, he will change into a mighty demon, which just killin time in harvesting eggs for funsake! :smarty:

    A demoin living in hommlet? Awesome and weird. Lest I might able to foretell darleys' reaction if she sees him... {Darley: Oh did I just saw a hot guy overthere?} Yikes! :eek:mg: She might even teamed up with him, if he attacks your party! hehe :thumbsup:

    Two endings: If you with darley, darley might team up with the guy... cat AC 40
    If you not with darley, then the ac of gala the cat will dropped to 35 AC

    If the demon escapes, darley escapes too with him, will not make revenge or will revenge depends on the setting...

    this make darley existence fruitful since she is dying for the demon hotguy... since staying in fire node forever or killing her is not making anysense for me...



    Also, make an item that will able to make Darleys'/Scorpps' existence gone (Demonic Stench Removal - If its being worn [Theres a dialog option for it.] [Change everyscript on ToEE don't know if that handles it, or its subrace]), since you won't be able to talk with the townsfolk which is very cumbersome!
     
    Last edited: Sep 26, 2013
  4. XVicious

    XVicious Established Member

    Joined:
    Jun 21, 2013
    Messages:
    427
    Likes Received:
    8
    interesting idea zoltec.

    so is this cat like part demon?
    or does this cat have natural armor, or magic items to raise its ac to 40?

    or does this cat have like +30 dex (65 dex score)
    and not forgetting its size of course +4 AC
     
  5. Zoltec

    Zoltec Pгōdigium

    Joined:
    Apr 22, 2012
    Messages:
    547
    Likes Received:
    16
    Just for fun though. Still if you're interested with this, I can help you in someway if you want to include this in your module. Anyway, the cat will have an artificial AC boost up using a temporary item, which can be interchanged using a .py script (35~ or 40~).

    No the cat isn't a demon, but only a wild one preying on Kantrips' chickens. Kantrip is the actual demon who only moved after you hired Darley in the fire node. You know Kantrip is kinda barbarous leaving the chickens on the outside, because naturally, he's an ignorant demon yearning for a simple farmer life (he is doing that because he is just bored in the nine hells).

    Scenario

    You must be around 22 meters to 25 meters, or the cat will sense you and run off (kinda fun to me) if gala preyed on the chicken and successfully killed it, he will walk for merely 2 seconds on the spot, now aim for him, you have only two shots of arrow (depending on your skills of course). Now, for his hp he only has 11 hp. So it's easy right? but you need to have high initiative, kinda a special ranger who has a specialty for bows. If you killed gala, Kantrip will thank you and will reward you a kind of reputation "Marksman", and the scenario will repeat since wild cats are coming to Hommlet your reputation will rise up from "Marksman" to "Sniper" but sniper needs to have the cat a 50 AC. The problem is if you have Darley with you, and you leave evidences on the ground, Kantrip will look for the culprit who have bows equipped (attacking you of course), now Darley will initiate a dialogue on how she feels for the demon (love at first-sight, well don't know the demonic term for that? lust?), and will take his side. Of course, you will found out that Kantrip is a demon, and he will transformed into one with Darley. Now the battle begins. There can be many endings for it, which is the FUN part. :p

    Just a few

    Like! Your reputation will drop down by -2 because, Gloria's affordable supplier is gone as well as the fried egg meal! (well that creeps me out).

    Or Kantrip and Darley will take revenge on you, having many demons at their side.

    Or Kantrip and Darley will live in Hommlet happily forever, if you didn't tipped off the combat. (Jaroo will sure understand, since, his normalizing the Good & Evil in town).
     
  6. Zoltec

    Zoltec Pгōdigium

    Joined:
    Apr 22, 2012
    Messages:
    547
    Likes Received:
    16
    Kantrip may even cursed you and after two days you become one of the chickens... Surely, Jaroo's spell can re-animate you back into your former yourself. But first we need to decipher where the model entry lies.

    Lookup the model entry of this file. <ws.ToEEPC> here's a dump reference, it's generated from TCE after its saved.

    Here's another. This kinda leads to the actual, modification of model.
     

    Attached Files:

  7. Zoltec

    Zoltec Pгōdigium

    Joined:
    Apr 22, 2012
    Messages:
    547
    Likes Received:
    16
    Okay, as per sir_ToEEjam instructions, ws was a Hafling Male race, which in protos.tab numbered as 13012 which can also be found in meshes.mes. Now I convert 13012 to hex which is 32 D4, reverse 32 D4 and we get D4 32. Look for the chicken entry in the meshes.mes, and do what I did to Hafling male entry. Interchanged the values of ws and the chicken, viola, as per sir_jam instr. it works.

    Now, we only need a .py script that can hex edit entries of .ToEEPC to succesfully change the model into a different one. Remember, you need to go indoors first before the actual curse can occur i.e. going inside to Hommlet Inn (through doors).

    I don't know if the actual term is re-animate must be typo ("reincarnate"), we can use the reincarnate feature at its best, if we can tell the reincarnate spell to change some bits on the .ToEEPC file it can actually change models and do its purpose.
     
  8. Zoltec

    Zoltec Pгōdigium

    Joined:
    Apr 22, 2012
    Messages:
    547
    Likes Received:
    16
    I need to retract this, actually this is description.mes to avoid unnecessary confusion.

    Anyway, adding feats through .ToEEPC, we can even revert levels using TCE (but its not in the program, and need to hex edit it manually).

    I'm now researching (again!) on how a particular spell (sleep), can actually change the animation stance of the creature (instantly), like a knocked down animation, whilst not triggering a negative hp (maybe it's hardcoded but let's see).

    Back to Behold NPC

    I have to note this or I might forget it;

    .ToEEPC is still a paradigm to me, but if it contains 13000 for example it might also contain the materials.mes entry... which is a good call.
     
  9. Zoltec

    Zoltec Pгōdigium

    Joined:
    Apr 22, 2012
    Messages:
    547
    Likes Received:
    16
    Back to Behold NPC

    Step-by-step

    human.ToEEPC

    _> 13000 entry (in hex)

    description.mes

    _> {13000}{Human Male}

    meshes.mes

    _> model id # 100 {PCs\PC_Human_Male\PC_Human_Male}

    PC_Human_Male.SKM

    _> PC_Human_Male.SKM; inside mes path/texture path

    protos.tab

    _> race type : <human_race>
    _> model mesh id : 100

    So description.mes is not just a reference and protos entries like 13000 is not merely a placeholder but a connected one.

    If I create a new protos pertaining in the stat.mes races like a new entry for Derro_Male which we can also call as derro_race, and we can actually connect it in .ToEEPC file. Of course I haven't tried this yet and looking forward in making one. Now I can conclude that NPCs cannot call such entries in stat.mes, because, they are hard-coded and no link available for them such as .ToEEPC file to bypass race entries, which makes protos.tab (NPCs) immune to race changes, since, it is looking for the default one i.e. derro to dwarf.
     
  10. XVicious

    XVicious Established Member

    Joined:
    Jun 21, 2013
    Messages:
    427
    Likes Received:
    8
    Yea Zoltec,

    I am familiar with the HACK you are referencing with the character and save file

    configs.


    My question would be, does hacking this during run-time of game actual change the model

    in real time?

    example: Im running the game, I change the model of PC to chicken ref: via districption.mes (id model tag #): IN -> ToEEpc

    would this change the PC to a chicken the moment I change it?


    could we change the model of PC via python instead?
     
    Last edited: Sep 28, 2013
  11. Zoltec

    Zoltec Pгōdigium

    Joined:
    Apr 22, 2012
    Messages:
    547
    Likes Received:
    16
    Real-time? No, it doesn't. But it does change when you go past through portals(doors) i.e. Inn of the Welcome Wench <Door>; See what I'm talking about on the second qoute.

    Well, this is really undeniably hard question, since, I need to decipher yet on how the spells actually change the animation i.e. cast sleep spell -> "sleep animation". So we can get it all in real-time.

    Yes, its possible. The in-game console actually changes the experience of PCs or NPCs through editing of .ToEEPC file. This would be the same for scripts of course...
     
  12. XVicious

    XVicious Established Member

    Joined:
    Jun 21, 2013
    Messages:
    427
    Likes Received:
    8
    Interesting...


    [​IMG]
     
Our Host!