Need help here!!

Blade_Masta

New Member
Reaction score
0
hey guys i got prob with my quest trigger!!
1.When i complete my quest it doesnt show any message saying that ive completed(but when i check quest it's marked complete)
2.When ive done my quest that is killing 10 kobold,after the 10th kill it goes to -1 why??
3.When ive finished complete quest i want to give reward to my guy:D,(i want him to go near my quest give and then he receive the reward+mark quest complete :),hope not asking for the impossible lol)

For my triggers here they are

My first trigger
Give Quest
Events
Unit - A unit enters Area1 <gen>
Conditions
Actions
Quest - Create a Optional quest titled The Human Outpost with the description The Human Outpost h..., using icon path ReplaceableTextures\CommandButtons\BTNKobold.blp
Quest - Disable (Last created quest)
Custom script: if GetLocalPlayer() == GetOwningPlayer(GetTriggerUnit()) then
Quest - Enable (Last created quest)
Quest - Flash the quest dialog button
Custom script: endif
Quest - Display to (Player group((Owner of (Triggering unit)))) the Quest Discovered message: |cffffcc00Quest|r -...
Quest - Create a quest requirement for (Last created quest) with the description Kill 10 Kobolds
Trigger - Turn off (This trigger)

And for my 2cd trigger
Quest Update
Events
Unit - A unit owned by Neutral Hostile Dies
Conditions
(Unit-type of (Dying unit)) Equal to Kobold
Actions
Set Quest_Kobold_Integer = (Quest_Kobold_Integer + 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Quest_Kobold_Integer Equal to 10
Then - Actions
Quest - Mark (Last created quest) as Completed
Quest - Change the description of (Last created quest requirement) to <Empty String>
Else - Actions
Quest - Change the description of (Last created quest requirement) to (Kill + ((String((10 - Quest_Kobold_Integer))) + Kobolds))


Ty to answer my question :D
 

foodflare

You can change this now in User CP.
Reaction score
32
In the then area of 2nd trigger ad
Game - Display to (All players) the text: Completed Quest!
or something of that sort to show completed quest
 

xfirenzx

New Member
Reaction score
7
1. Add this to your 2nd trigger under actions

Code:
Quest - Display to (All players) the Quest Update message: Quest Complete!

2. Don't know

3. Use this to give gold

Code:
Player - Add 100 to (Owner of (Entering unit)) Current gold

and this to give experience to the hero
Code:
Hero - Add 150 experience to (Entering unit), Show level-up graphics
 

foodflare

You can change this now in User CP.
Reaction score
32
try changing from 'equal to' to 'greater than or equal to'

and try setting it to a quest variable so that if you make a new quest it wont screw up. Also, that could help with the -1 problem
 

Blade_Masta

New Member
Reaction score
0
Yea i understand that and i added it to my triggers,but is there a way to show that ..you received 100 gold and 150 exp or something like that...?
see my trigger
The 2cd one
Quest Update
Events
Unit - A unit owned by Neutral Hostile Dies
Conditions
(Unit-type of (Dying unit)) Equal to Kobold
Actions
Set Quest_Kobold_Integer = (Quest_Kobold_Integer + 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Quest_Kobold_Integer Equal to 10
Then - Actions
Quest - Mark (Last created quest) as Completed
Quest - Change the description of (Last created quest requirement) to <Empty String>
Quest - Display to (All players) the Quest Update message: Quest Completed
Player - Add 200 to (Owner of (Entering unit)) Current gold
Hero - Add 150 experience to (Hero manipulating item), Show
level-up graphics
Else - Actions
Quest - Change the description of (Last created quest requirement) to (Kill + ((String((10 - Quest_Kobold_Integer))) + Kobolds))
 

xfirenzx

New Member
Reaction score
7
Quest - Display to (All players) the Quest Update message: Quest Completed

Just add: You have been awarded 100 gold and 150 experience.

Something like that. ^
 

Blade_Masta

New Member
Reaction score
0
lol but i want to be a text message saying near my quest giver guy,so that way they know what they get :) i think you understand me?
 

PurgeandFire

zxcvmkgdfg
Reaction score
509
Turn off the trigger in the "Then" actions. Otherwise, if you attack another kobold it will start over and go to 1. Then 2 and so on because Kobold integer becomes 11 and up. You can either do that or put:

Code:
Quest_Kobold_Integer [B]Greater Than[/B] or Equal to 10

But either way, then it will just keep marking the quest as complete and stuff. It doesn't really make a difference though. :p
 

Blade_Masta

New Member
Reaction score
0
There a probleme with my exp and gold trigger
Quest Update
Events
Unit - A unit owned by Neutral Hostile Dies
Conditions
(Unit-type of (Dying unit)) Equal to Kobold
Actions
Set Quest_Kobold_Integer = (Quest_Kobold_Integer + 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Quest_Kobold_Integer Equal to 10
Then - Actions
Quest - Mark (Last created quest) as Completed
Quest - Change the description of (Last created quest requirement) to <Empty String>
Quest - Display to (All players) the Quest Update message: Quest Completed
Player - Add 200 to (Owner of (Entering unit)) Current gold
Hero - Add 150 experience to (Hero manipulating item), Show level-up
graphics
Trigger - Turn off (This trigger)
Else - Actions
Quest - Change the description of (Last created quest requirement) to (Kill + ((String((10 - Quest_Kobold_Integer))) + Kobolds))

they dont seems to work is there something wrong??
 

Knight7770

Hippopotomonstrosesquiped aliophobia
Reaction score
187
There is no entering unit or hero manipulation item.
 

Sooda

Diversity enchants
Reaction score
318
Next time right click on your trigger and choose save as text. Then paste your triggers between [noparse]
Code:
your GUI triggers
[/noparse] tags, these tags looks like
code.gif

Firstly I assume in your heart you want this quest to be multi player usable (otherwise there would not be point to use local player neither). I tell you quickly that your so far local player custom script will desync in multiplayer for sure.
Lets start by creating player variable array and name it 'koboldQuestPlayer'
'koboldQuestPlayer' is player variable array and starts with default starting values.
Also you want to approaches to quest giver to receive reward. For that we need first unit into who' s range our adventurer comes. For that we create one unit variable and name it.
'koboldQuestGiver' is a unit variable and starts with default values.
Now we need integer array for each player to keep track of killed Kobolds.
'koboldQuestKills' is a integer variable array and starts with default values.
As a side not I have to tell you that memory leaks are from evil, avoid them when ever possible. I teach you some basics. Removing location leaks is most important and removing special effect leaks also.
We create one point variable and name it temporarily so we know it isn' t something important and will be used for most of our location actions. When you use custom script then all your made variables from Variable Editor has 'udg_' prefix. For example 'tempPoint' becomes 'udg_tempPoint' (without '').
'tempPoint' is point variable and starts with default values.
'kobaldQuestEffect' is special effect variable and starts with default values.
Firstly lets initialize quest:
Code:
Init Kobold Quest
    Events
        Map initialization
    Conditions
    Actions
        -------- Where ever you would like to create it. --------
        -------- X, Y and Z coordinates are your friends. --------
        Set tempPoint = (Point(0.00, 0.00))
        Set tempPoint = (Center of (Playable map area))
        Unit - Create 1 Paladin for Neutral Passive at tempPoint facing Default building facing degrees
        Special Effect - Create a special effect attached to the overhead of koboldQuestGiver using Abilities\Spells\Other\TalkToMe\TalkToMe.mdl
        Set koboldQuestEffect = (Last created special effect)
        -------- We don' t need anymore our temporary point, lets remove it. --------
        Custom script:   call RemoveLocation(udg_tempPoint)
        -------- You can' t start Kobold quest while you are already doing that quest. Initialize boolean values for players. --------
        For each (Integer A) from 1 to 12, do (Actions)
            Loop - Actions
                Set koboldQuestActive[(Integer A)] = False
        -------- We add new event to our quest start trigger what detects units in range. --------
        Trigger - Add to Start Kobold Quest <gen> the event (Unit - A unit comes within 256.00 of koboldQuestGiver)
We also need to know what unit is matching unit to kill our Kobolds.
'koboldQuestUnit' is unit variable array and stars with default values.
'tempPlayer' is a player variable and starts with default values.
'tempUnit' is a unit variable and starts with default values.
'tempQuest' is quest variable and starts with default values.
'tempForce' is player group variable and starts with default values.
'koboldQuestActive' is boolean array variable and starts with default values.
Code:
Start Kobold Quest
    Events
    Conditions
    Actions
        -------- Declaring locals needs to be first thing in trigger. --------
        Custom script:       local player whichPlayer = null
        Custom script:       local quest whichQuest = null
        -------- Though you don' t see events they were added there by our Init Kobold Quest trigger. --------
        -------- Now the fun part. --------
        -------- Hint use one temp integer variable to store player index and use that integer variable instead my mindless conerting. --------
        Set tempUnit = (Triggering unit)
        Set tempPlayer = (Owner of tempUnit)
        -------- Already doing quest? End it first! --------
        If (koboldQuestActive[(Player number of tempPlayer)] Equal to True) then do (Skip remaining actions) else do (Do nothing)
        Set koboldQuestUnit[(Player number of tempPlayer)] = tempUnit
        Set tempForce = (Player group(tempPlayer))
        -------- Remember 'udg_' prefix! --------
        Custom script:       set whichPlayer = udg_tempPlayer
        Quest - Create a Optional quest titled Kobold feaver with the description Kingdom needs you, ..., using icon path ReplaceableTextures\CommandButtons\BTNAmbush.blp
        Custom script:       set whichQuest = bj_lastCreatedQuest
        -------- Now there is high risk that you desync game even when all is done right what can be done. --------
        -------- To remind NEVER create, destroy for only one player. Using only local code and natives is a must. --------
        Custom script:       if whichPlayer == GetLocalPlayer() then
        Custom script:           call QuestSetEnabled(whichQuest, true)
        Custom script:           call FlashQuestDialogButton()
        Custom script:       endif
        Quest - Display to (Player group(tempPlayer)) the Quest Discovered message: Kill 10 Kobolds who...
        Quest - Create a quest requirement for tempQuest with the description -- Kill 10 Kobolds
        Set koboldQuestActive[(Player number of tempPlayer)] = True
        -------- All local variables needs to be nulled in the end. Though to native locals like booleans, integers, reals, players it dosn' t apply. There are special cases also with units and more. --------
        -------- Removing force (in GUI Player Group) leaks. --------
        Custom script:       call DestroyForce(udg_tempForce)
        Custom script:       set whichPlayer = null
        Custom script:       set whichQuest = null
We are almost done:
'tempIndex' is integer variable and starts with default values.
'koboldQuestPlayerScore' is integer variable array and starts with default values.
Code:
Kobold Quest Award
    Events
        Unit - A unit Dies
    Conditions
        (Unit-type of (Triggering unit)) Equal to Kobold Geomancer
    Actions
        Set tempUnit = (Killing unit)
        Set tempPlayer = (Owner of tempUnit)
        Set tempIndex = (Player number of tempPlayer)
        -------- Is our player doing Kobold Quest? --------
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                koboldQuestActive[tempIndex] Equal to True
            Then - Actions
                -------- Lets add to counter. --------
                Set koboldQuestPlayerScore[tempIndex] = (koboldQuestPlayerScore[tempIndex] + 1)
            Else - Actions
        -------- This thing isn' t in 'ELSE' actions so be careful, --------
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                koboldQuestPlayerScore[tempIndex] Greater than or equal to 10
            Then - Actions
                -------- Can' t be finally our quest is complited. --------
                Player - Add 100 to tempPlayer Current gold
                -------- It isn' t tempQuest anymore, better get for it quest variable what is safe from overwriting. --------
                Hero - Add 100 experience to tempUnit, Show level-up graphics
                Quest - Mark tempQuest as Completed
            Else - Actions
Doing quests needs thinking before then thinking again and much practice. For future reference 'LastCreayedWhatever' changes pretty fast. If you need to store something for later use save it to your made variable. As you can see I never destroyed our special effect. It can be done with script:
JASS:
    call DestroyEffect(udg_koboldQuestEffect)

Aww, sleepy, read quest making tutorials to get better.

EDIT:
Please read: Quest Tutorial by Husky
 

Blade_Masta

New Member
Reaction score
0
Code:
Quest Update
    Events
        Unit - A unit owned by Neutral Hostile Dies
    Conditions
        (Unit-type of (Dying unit)) Equal to Kobold
    Actions
        Set Quest_Kobold_Integer = (Quest_Kobold_Integer + 1)
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                Quest_Kobold_Integer Equal to 10
            Then - Actions
                Quest - Mark (Last created quest) as Completed
                Quest - Change the description of (Last created quest requirement) to <Empty String>
                Quest - Display to (All players) the Quest Update message: Quest Completed
                Player - Add 200 to (Owner of (Entering unit)) Current gold
                Hero - Add 150 experience to (Hero manipulating item), Show level-up graphics
                Trigger - Turn off (This trigger)
            Else - Actions
                Quest - Change the description of (Last created quest requirement) to (Kill  + ((String((10 - Quest_Kobold_Integer))) +  Kobolds))

like this??
 

Blade_Masta

New Member
Reaction score
0
Umm rhanks alot for your hard work sooda,but my prob is that i needed to look at the map :( anyways if you could put those triggers together and post a map for or any1 else it will b really kool ty :)
 

Blade_Masta

New Member
Reaction score
0
Ywa so dark here were i get stuck
Code:
Init Kobold Quest
    Events
        Map initialization
    Conditions
    Actions
        [COLOR="Red"]Set tempPoint = ((Center of (Playable map area)) offset by (0.00, 0.00))[/COLOR]        Set tempPoint = (Center of (Playable map area))
        Unit - Create 1 Paladin for Neutral Passive at tempPoint facing Default building facing degrees
        Special Effect - Create a special effect attached to the overhead of koboldQuestGiver using Abilities\Spells\Other\TalkToMe\TalkToMe.mdl
        Set kobaldQuestEffect = (Last created special effect)
        Custom script:   call RemoveLocation(udg_tempPoint)
        For each (Integer A) from 1 to 12, do (Actions)
            [COLOR="Red"]Loop - Actions[/COLOR]
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    Actually I was just playing with having some kind of mention of the food forum and recipes on the main page to test and see if it would engage some of those people to post something. It is just weird to get so much traffic and no engagement
  • The Helper The Helper:
    So what it really is me trying to implement some kind of better site navigation not change the whole theme of the site
  • Varine Varine:
    How can you tell the difference between real traffic and indexing or AI generation bots?
  • The Helper The Helper:
    The bots will show up as users online in the forum software but they do not show up in my stats tracking. I am sure there are bots in the stats but the way alot of the bots treat the site do not show up on the stats
  • Varine Varine:
    I want to build a filtration system for my 3d printer, and that shit is so much more complicated than I thought it would be
  • Varine Varine:
    Apparently ABS emits styrene particulates which can be like .2 micrometers, which idk if the VOC detectors I have can even catch that
  • Varine Varine:
    Anyway I need to get some of those sensors and two air pressure sensors installed before an after the filters, which I need to figure out how to calculate the necessary pressure for and I have yet to find anything that tells me how to actually do that, just the cfm ratings
  • Varine Varine:
    And then I have to set up an arduino board to read those sensors, which I also don't know very much about but I have a whole bunch of crash course things for that
  • Varine Varine:
    These sensors are also a lot more than I thought they would be. Like 5 to 10 each, idk why but I assumed they would be like 2 dollars
  • Varine Varine:
    Another issue I'm learning is that a lot of the air quality sensors don't work at very high ambient temperatures. I'm planning on heating this enclosure to like 60C or so, and that's the upper limit of their functionality
  • Varine Varine:
    Although I don't know if I need to actually actively heat it or just let the plate and hotend bring the ambient temp to whatever it will, but even then I need to figure out an exfiltration for hot air. I think I kind of know what to do but it's still fucking confusing
  • The Helper The Helper:
    Maybe you could find some of that information from AC tech - like how they detect freon and such
  • Varine Varine:
    That's mostly what I've been looking at
  • Varine Varine:
    I don't think I'm dealing with quite the same pressures though, at the very least its a significantly smaller system. For the time being I'm just going to put together a quick scrubby box though and hope it works good enough to not make my house toxic
  • Varine Varine:
    I mean I don't use this enough to pose any significant danger I don't think, but I would still rather not be throwing styrene all over the air
  • The Helper The Helper:
    New dessert added to recipes Southern Pecan Praline Cake https://www.thehelper.net/threads/recipe-southern-pecan-praline-cake.193555/
  • The Helper The Helper:
    Another bot invasion 493 members online most of them bots that do not show up on stats
  • Varine Varine:
    I'm looking at a solid 378 guests, but 3 members. Of which two are me and VSNES. The third is unlisted, which makes me think its a ghost.
    +1
  • The Helper The Helper:
    Some members choose invisibility mode
    +1
  • The Helper The Helper:
    I bitch about Xenforo sometimes but it really is full featured you just have to really know what you are doing to get the most out of it.
  • The Helper The Helper:
    It is just not easy to fix styles and customize but it definitely can be done
  • The Helper The Helper:
    I do know this - xenforo dropped the ball by not keeping the vbulletin reputation comments as a feature. The loss of the Reputation comments data when we switched to Xenforo really was the death knell for the site when it came to all the users that left. I know I missed it so much and I got way less interested in the site when that feature was gone and I run the site.
  • Blackveiled Blackveiled:
    People love rep, lol
    +1

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top