1. Find your way through the deepest dungeon in the 18th Mini Mapping Contest Poll.
    Dismiss Notice
  2. A brave new world lies beyond the seven seas. Join the 34th Modeling Contest today!
    Dismiss Notice
  3. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
Hive 3 Remoosed BETA - NOW LIVE. Go check it out at BETA Hive Workshop! Post your feedback in this new forum BETA Feedback.
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

[Trigger] Hungry, thirst, fatigue and disease sistem

Discussion in 'Triggers & Scripts' started by Leods, Dec 17, 2018.

  1. Leods

    Leods

    Joined:
    Dec 16, 2018
    Messages:
    324
    Resources:
    1
    Maps:
    1
    Resources:
    1
    Estoy creando un sistema sobre estos cuatro pilares, con uniones entre ellos. No sé si es la sección correcta (noob en Hive) Por lo tanto, si no es así, pida a los moderadores que la pasen a la sección correcta. Continuemos con esto, habiendo ya aclarado lo básico.
    1. Hambriento: esto es fácil. Cada minuto recibes 1 punto de hambre. Si grabas 10 puntos, mueres. Cada 3 puntos de hambre verá una alarma y perderá puntos de hambre al comer (sorpresa)
    2. Sed: es lo mismo que el hambre, pero recibes un punto de sed cada 40 segundos y los pierdes al beber (otra sorpresa)
    3. Fatiga: Aquí comienza la dificultad. La idea es recibir puntos de fatiga, pero algunas acciones (pelear, correr tanto, etc.) deberían darle más puntos. No se como hacerlo Si registra 500 puntos, muere y solo puede reducirlos descansando (una habilidad). Puede descansar en cualquier lugar, pero algunos lugares (su cama obviamente) reducen sus puntos de fatiga más rápido. Yo tampoco se como hacerlo
    4. Enfermedad: Aquí comienza la unión de pilares. Puede contraer una enfermedad si come o bebe algo crudo o mal preparado. Las diferentes enfermedades tienen diferentes efectos (la mayoría termina matándote) y antídotos.
    Y continuando con esto, algunos alimentos dan o reducen sus puntos de sed, y algunas bebidas descansan o le dan puntos de hambre, pero es fácil y sé cómo hacerlo (esto es extraño).
    Así que, terminando, ayúdame con esto.
     
    Last edited: Dec 18, 2018
  2. Devalut

    Devalut

    Joined:
    Feb 9, 2009
    Messages:
    1,490
    Resources:
    3
    Spells:
    2
    Tutorials:
    1
    Resources:
    3
    All three of these systems can make this easy (be sure to credit Bribe if you use them!):
    - Unit-Indexing - store fatigue information on each individual unit by their custom values
    - Is unit Moving? - track when a unit is moving to add fatigue
    - Damage Engine - track when a unit is being taking or causing to add fatigue

    Here's a short demo using those three systems:

    EDIT:

    Oh, you seem to have switched languages on me...
     

    Attached Files:

    Last edited: Dec 18, 2018
  3. Leods

    Leods

    Joined:
    Dec 16, 2018
    Messages:
    324
    Resources:
    1
    Maps:
    1
    Resources:
    1
    Oh, really thanks for the quick response and the sistem.
    The good thing is that it is a LOAP / rpg, so the most likely thing is that you only drive one unit.
    I will clearly grant the credits for Bribe, and a good extra for you
    Edit:
    No, i wasn't. Was the autocorrector (i hate it, but i can't turn off It) but it's true that my English is lousy. What's the problem?
     
    Last edited: Dec 18, 2018
  4. Devalut

    Devalut

    Joined:
    Feb 9, 2009
    Messages:
    1,490
    Resources:
    3
    Spells:
    2
    Tutorials:
    1
    Resources:
    3
    Ah I'm pleased, as for the later comment:
    After posting and seeing it changed it seemed a rude gesture as there was no following response, I'm glad to see I was mistaken.
     
  5. Leods

    Leods

    Joined:
    Dec 16, 2018
    Messages:
    324
    Resources:
    1
    Maps:
    1
    Resources:
    1
    I understand. again, thanks for the links. I'm trying to do the sistem of faitgue, but it isn't easy (I can't join them all well, having already followed the established steps)
     
  6. Devalut

    Devalut

    Joined:
    Feb 9, 2009
    Messages:
    1,490
    Resources:
    3
    Spells:
    2
    Tutorials:
    1
    Resources:
    3
    What part are you having issue with?
    Installing the systems onto your map?
     
  7. Leods

    Leods

    Joined:
    Dec 16, 2018
    Messages:
    324
    Resources:
    1
    Maps:
    1
    Resources:
    1
    I think the systems are well installed, but I'm not quite sure how to establish the connections between system and system, and I tried to do it by several methods (even tried to create triggers exclusively for that), and I don't get it. Also, it's important to keep in mind that you will only drive one unit (per player, without counting possible summons), although I do not think that is a problem. It seems to be somewhat related to the Unit Indexing, but as my knowledge of triggers of such difficulty, both in GUI and in JASS, they are practically null.
    Anyway, it isn't necessary to wring your head thinking about it, after all I asked Bribe himself, that being the creator of the system will know my error and how I can correct it.
     
  8. Devalut

    Devalut

    Joined:
    Feb 9, 2009
    Messages:
    1,490
    Resources:
    3
    Spells:
    2
    Tutorials:
    1
    Resources:
    3
    The demo I made was an example!!!

    You can upload the map here or you can send me a pastebin link of the map and I'll take a look to see.
     
  9. Leods

    Leods

    Joined:
    Dec 16, 2018
    Messages:
    324
    Resources:
    1
    Maps:
    1
    Resources:
    1
    Now i can't, and maybe i'll do more of the map before send It. First I want to see the answer of Bribe, but if he don't answer me, i'll be pleased todo send the map. Really thanks for your interest, is really good see this kind of answers
    Edit: About the demo, i can't open It because muy Warcraft version is really, really old (1.26)
    Edit 2: About the pastebein, I, like the new member that I am un Hive, I'm not sure what It is or how It works. If you explain it to me (and it's not too much trouble) I will be really grateful
     
    Last edited: Dec 22, 2018
  10. Devalut

    Devalut

    Joined:
    Feb 9, 2009
    Messages:
    1,490
    Resources:
    3
    Spells:
    2
    Tutorials:
    1
    Resources:
    3
    Paste bin allows you to post files in private, you can set if it can expire and send the link in a private message.
    Example, here's my chicken, don't look him in the eye

    Honestly though I would suggest just simply posting it and anyone who might be able to help can give you some pointers
     
  11. Bribe

    Bribe

    Joined:
    Sep 26, 2009
    Messages:
    8,398
    Resources:
    25
    Maps:
    3
    Spells:
    10
    Tutorials:
    3
    JASS:
    9
    Resources:
    25
    If their map is using Damage Engine 3.8 and no 1.29+ triggers, it should run fine on 1.26. I'll have a look at the demo map he published (soonest after Christmas).
     
  12. Leods

    Leods

    Joined:
    Dec 16, 2018
    Messages:
    324
    Resources:
    1
    Maps:
    1
    Resources:
    1
    I am using all the systems sent by Devalut before