Problem creating a Quest

Sakuralein

New Member
Reaction score
0
thats still not possible... all I can do is

Set "Shimmerweed" = "Shimmerweed" + 3

There is no option for "Shimmerweed x - 1"
 

maxou

You can change this now in User CP.
Reaction score
15
Oh okay I see, in the 1st member (in "Shimmerweed + 3"), replace Shimmerweed by an other Arithmetic, and in this arithmetic, you can do "Shimmerweed x -1" (replace the "+" by "x" by clicking on it)
 

Sakuralein

New Member
Reaction score
0
ohh okay, now I got :

Set Shimmerweed = ((Shimmerweed x -1) +3)

do I need to make a 2nd integer variable for shimmerweed ?
 

maxou

You can change this now in User CP.
Reaction score
15
You don't need 2 variables, you just need the Integer-type variable, (Integer or call it whatever you want :p)
 

Sakuralein

New Member
Reaction score
0
okay this is what I got now :
125.jpg
 

maxou

You can change this now in User CP.
Reaction score
15
Change the (Item-type of (Item being manipulated)) Equal to Shimmerweed to : (Item-type of (Item carried by hero in slot Integer A)) Equal to Shimmerweed, that was my bad for this, in my 1st message I didn't write it ^.^'

And by the way, after the Display to all player 'You have completed the quest', set QuestIsCompleted to TRUE ;)
 

Sakuralein

New Member
Reaction score
0
the details for it to look "pretty" will be added later, first I just want to see if the mechanics are working now.

so now it looks like this :

126.jpg
 

maxou

You can change this now in User CP.
Reaction score
15
The first condition was good :/
(Item-type of (Item being manipulated)) Equal to Shimmerweed instead of (Item-type of (Item carried by hero in slot Integer A)) but only in the 1st conditions, not the one in the Integer A loop
 

Sakuralein

New Member
Reaction score
0
I tried all 3 things now, with both conditions being "item being manipulated", both being "slot integer A", and as you corrected 3 minutes ago...

The first try, ended up with saying the same message even after picking up all 3.
The 2nd try didnt show any message at all
the 3rd try, was the same as the first try.
 

maxou

You can change this now in User CP.
Reaction score
15
Trigger
Event
Unit- A unit acquires an item
Conditions
(Item-type of (Item being manipulated)) Equal to Shimmerweed
QUEST_IS_COMPLETED Equal to FALSE
Actions
Set SHIMMERWEED_INTEGER = 0
For each (Integer A) from 1 to 6, do (Actions)
Boucle - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to Shimmerweed
Then - Actions
Set SHIMMERWEED_INTEGER = (SHIMMERWEED_INTEGER + 1)
Else - Actions
Set SHIMMERWEED_INTEGER = ((SHIMMERWEED_INTEGER x -1) + 3)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
SHIMMERWEED_INTEGER Equal to 0
Then - Actions
Game - Display to (Player group((Owner of (Hero manipulating item)))) for 10.00 seconds the text: You have completed the quest!
Set QUEST_IS_COMPLETED = TRUE
Else - Actions
Game - Display to (Player group((Owner of (Hero manipulating item)))) for 10.00 seconds the text: (You still need + ((String(SHIMMERWEED_INTEGER)) + Shimmerweed!)))


This works well with me
 

maxou

You can change this now in User CP.
Reaction score
15
Oh no man! You put "Set Shimmerweed = ((Shimmerweed x -1) + 3)" in the Else - Actions!
You have to put it between the Integer A loop and the If-Then-Else ;)
 

maxou

You can change this now in User CP.
Reaction score
15
Your trigger have to do in this order : Loop Integer A > Formula of Integer > If-Then-Else
 

maxou

You can change this now in User CP.
Reaction score
15
Are you sure ?...
Be sure of the place of the formula for the Integer :/
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top