Aller au contenu

Photo

Scripting World Map


1 réponse à ce sujet

#1
Dragon-Slayer

Dragon-Slayer
  • Members
  • 8 messages
I am new to dragon age scripting here is my broken placeable script


#include "log_h"
#include "utility_h"
#include "wrappers_h"
#include "events_h"

void main()
{
    event ev = GetCurrentEvent();
    int nEventType = GetEventType(ev);
    string sDebug;

    switch(nEventType)
    {
        ////////////////////////////////////////////////////////////////////////
        // Sent by: The engine
        // When: A creature has clicked on this placeable
        ////////////////////////////////////////////////////////////////////////
        case EVENT_TYPE_USE:
        {
            object oUser = GetEventCreator(ev);
            DisplayFloatyMessage(oUser, "Used object!");

            object oMap = GetObjectByTag("map_resourcesov");
            WR_SetWorldMapPrimary(oMap);
            OpenPrimaryWorldMap();
            break;
        }
    }
}

I want the script to open the word map when they use my object.  The script changes the active world map which is half of what I want it to do but it never opens the world map.  Can some one please point me in the right direction.

Thanks

Modifié par Dragon-Slayer, 20 décembre 2009 - 06:35 .


#2
DavidSims

DavidSims
  • BioWare Employees
  • 196 messages
Is the script assigned to the placeable?