General advice needed

Started by Tyler, May 26, 2014, 07:47:03 pm

Previous topic - Next topic

Tyler

May 28, 2014, 10:25:20 am #20 Last Edit: May 28, 2014, 10:29:31 am by Tyler
Success! finally, I knew it would be something stupid - I did say I am a total novice  :facepalm:

Thanks all you guys, happy birthday to whoever s birthday it was, I'm sure I'll be back soon with another stupid problem

Edit: is there a way I can make a new enemy appear? in this case it would appear as if the ghost is coming from the npcs corpse


Zexion

Here you go, I quoted this directly from the manual including the section incase you want to read more.
Quote4.5.1. Creating an Event
Event creation is possible by the following script call:

$BlizzABS.create_event(X, Y, 'NAME', [PAGE_DATA])

X and Y are the x and y coordinates of the event on the map, NAME is the name of the event, and PAGE_DATA is an array of page data arrays (see Creating an Event Page). PAGE_DATA can be left as an empty array [] if no special event programming is required.

Using this script call will return the ID of the newly created event. The event is automatically added to the current map.

Tyler

Thanks again, I'll get to work on putting that into effect.

Tyler

Ok, I don't want you to think I'm not reading the manual but it's not entirely clear to me

since i want to make the new event appear on top of the current event and I want it to be a enemy with the graphic a ghost of I entered this into the script command

$BlizzABS.create_event(97, 83, '\e
[1]', [[True,False, False, False, 1,
0, 0, 0, "]], [0, 'Undead01', 0, 2,
0, ,0, 0]])

when I try to test it I get a Syntax Error

I figure I'm filling in the [PAGE_DATA] part wrong

Zexion

I think you can leave that part as [], because if your \e[1] is a ghost, blizz abs will handle the graphics automatically.
so: $BlizzABS.create_event(97,83,'\e[1]',[])
Also if it is going to split it up, I think it is better if you do:
$BlizzABS.create_event(97,83,
'\e[1]',[])


Tyler

I pasted what you put, but it didn't work, no errors though

I thought because it is on the second page off the event and should be reliant on a switch (I think)  I'd try to fill the data part again without any graphics

this is what I put

$BlizzABS.create_event(97, 83,
'\e[1]', [[True,False, False, False, 1, 0, 0, 0, "]]


but that didn't work either, this time I did get Syntax Error

Zexion

I think it has to do with the last quotation mark. Should be two double quations
$BlizzABS.create_event(97, 83,
'\e[1]', [[True,False, False, False, 1, 0, 0, 0, ""]])

Tyler

Now I get

NameError occurred while running script.

Uninitialized constant Interpreter:: True

G_G

Supposed to be "true" and "false" not "True" or "False". No capitilization.

Tyler

Ok, changed that now I get

Script 'Blizz2' line 3469 NoMethodError occurred.

undefined method 'size' for true;TrueClass

KK20

I think this is what you're going after.
$BlizzABS.create_event(97, 83, 
'\e[1]', [[[true,false, false, false,
1, 0, 0, 0, ''], [0, '051-Undead01',
0, 2, 0, 255, 0], 0, 3, 4, [], true,
false, false, false, false, 0, [] ]])

Other Projects
RPG Maker XP Ace  Upgrade RMXP to RMVXA performance!
XPA Tilemap  Tilemap rewrite with many features, including custom resolution!

Nintendo Switch Friend Code: 8310-1917-5318
Discord: KK20 Tyler#8901

Join the CP Discord Server!

Tyler

Still no luck, here is a screen shot again if it's any help



KK20

Works fine for me (with coordinate changes).
Spoiler: ShowHide

What do you mean by not working? Nothing happens?

Other Projects
RPG Maker XP Ace  Upgrade RMXP to RMVXA performance!
XPA Tilemap  Tilemap rewrite with many features, including custom resolution!

Nintendo Switch Friend Code: 8310-1917-5318
Discord: KK20 Tyler#8901

Join the CP Discord Server!

Tyler

May 28, 2014, 09:02:44 pm #33 Last Edit: May 28, 2014, 09:09:19 pm by Tyler
Sorry, Just double checked the ghost has appeared but in the top left of the map (tile 0,0)

Edit: It's not moving toward 97, 83, either just random movements

KK20

Wait, I just realized that's your map's dimensions. Is the location of the corpse at (77,39)?

Other Projects
RPG Maker XP Ace  Upgrade RMXP to RMVXA performance!
XPA Tilemap  Tilemap rewrite with many features, including custom resolution!

Nintendo Switch Friend Code: 8310-1917-5318
Discord: KK20 Tyler#8901

Join the CP Discord Server!

Tyler

May 28, 2014, 09:38:30 pm #35 Last Edit: May 28, 2014, 09:47:40 pm by KK20
 :facepalm: yes...

EDIT: Fully Awesome Yes! it now works perfectly! Thank all of you guys for being so very very patient