Product Chat / Triggering an imagezone / having more than one at the same spot

Author
Message
Duchenkuke
GameGuru BOTB Developer
3
Years of Service
User Offline
Joined: 7th Jun 2016
Location: Germany
Posted: 20th Sep 2019 17:54
I have the following scenario:

The player walks to a character that gives him a quest. To do this, I use a imagezone ( the imagezone displays a text and an image of the character).

Now the player does his quest. Then he returns to the quest giver.
And here comes the problem:

Since the imagezone is always there I can have only 1 imagezone active.
I'd like to be able to trigger a second imagezone when the player has finished his task and gets back for a reward.

I hope you guys can understand.. This is quite the task and I dont know if it works...
But its really cool and adds alot to the gameplay.

Anubis
6
Years of Service
User Offline
Joined: 6th Nov 2012
Location: 010011100110010101110100011010000110010101110010011011000110
Posted: 20th Sep 2019 18:59
so you want to use 2 scripts/zones on the same spot..
the quest needs to be in the first script. the reward in the second.

What i would do..
Give the first script a variable... like.. g_quest_done = 0
Whenever you leave the spot, make this variable g_quest_done = 1 and delete the first script(zone).

The second script will only get active when the variable g_quest_done = 1.
So built in a check for the second script.. quit script if the variable = 0, follow up if the variable = 1.

Hope you get my drift.
-+- There are only 10 types of people in the world. Those who understand binary, and those who don't -+-
-+-------------------[Chipset:Z390 CPU:i9.9900K GPU:R9 Fury RAM:32GB DDR4 WIN:10.x64 PRO]--------------------+-
PM
Duchenkuke
GameGuru BOTB Developer
3
Years of Service
User Offline
Joined: 7th Jun 2016
Location: Germany
Posted: 20th Sep 2019 19:06
that sounds like exactly what I need, yea! Thanks, that is a start !

Login to post a reply

Server time is: 2019-10-24 01:33:10
Your offset time is: 2019-10-24 01:33:10