Crystal Space
Welcome, Guest. Please login or register.
April 23, 2014, 04:01:30 pm

Login with username, password and session length
Search:     Advanced search
8990 Posts in 2037 Topics by 7617 Members
Latest Member: Wschodni1989
* Home Help Search Login Register
+  Crystal Space
|-+  Associate Projects
| |-+  CrystalBlend Discussion
| | |-+  Blender2Crystal problem with quests
« previous next »
Pages: [1] Print
Author Topic: Blender2Crystal problem with quests  (Read 3772 times)
Antol
Newbie
*
Posts: 3


View Profile Email
« on: November 09, 2010, 10:22:23 am »

Hi everyone! Need your help urgently!
I want to bind the quest to one of the entities in the world. I created it in the quest manager, he has two status. In the first status is set MeshSelectTrigger and add it to the second award newstate status. Exporting. It creates an xml addon in it all as in the manual. But when I run your world application it gives error

cel.questmanager.load:  Unknown reward type 'newstate' while loading quest 'crush'!

xml entities_world

<?xml version='1.0' encoding='UTF-8'?>
<world>
  <sector name='Scene'>
    <addon plugin='cel.addons.questdef'>
      <quest name='crush'>
        <state name='celaya'>
          <trigger type='meshselect'>
            <fireon entity='$this'/>
            <reward message='first udar' type='debugprint'/>
            <reward state='polovina' type='newstate' entity='$this'/>
          </trigger>
        </state>
        <state name='polovina'>
          <trigger type='meshselect'>
            <fireon entity='$this'/>
            <reward message='second state' type='debugprint'/>
          </trigger>
        </state>
      </quest>
    </addon>
    <addon entityname='boxforcrush' plugin='cel.addons.celentity'>
      <propclass name='pcobject.mesh'>
        <action name='SetMesh'>
          <par name='name' string='boxforcrush'/>
        </action>
      </propclass>
      <propclass name='pcobject.mesh.select'>
        <property bool='1' name='sendup'/>
        <property bool='1' name='senddown'/>
        <property bool='1' name='global'/>
        <property bool='1' name='sendmove'/>
        <action name='SetCamera'>
          <par name='entity' string='camera'/>
        </action>
        <action name='SetMouseButtons'>
          <par name='buttons' long='2'/>
        </action>
      </propclass>
      <propclass name='pclogic.quest'>
        <property name='state' string='celaya'/>
        <action name='NewQuest'>
          <par name='name' string='crush'/>
        </action>
      </propclass>
      <propclass name='pclogic.quest'>
        <action name='NewQuest'>
          <par name='name' string='crush'/>
          <par name='actor' string='camera'/>
          <par name='target_op_on' string='light_on'/>
          <par name='target_op_off' string='light_off'/>
          <par name='on_distance' string='1'/>
          <par name='off_distance' string='-1'/>
        </action>
        <property name='state' string='celaya'/>
      </propclass>
      <behaviour name='level_behave'/>
    </addon>
  </sector>
</world>


why?!
sorry, my english lang is very bad.
Logged
Vincent
Full Member
***
Posts: 191


View Profile WWW
« Reply #1 on: November 23, 2010, 11:07:22 am »

Hello,

  which CS/CEL version are you using ?
I guess that by "quest manager" you mean some Blender/b2cs user interface.
If so, which Blender & b2cs versions/revision ?

Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 7.209 seconds with 16 queries.